|
|
1.1 root 1: # 1.1.1.2 ! root 2: # Copyright (c) 1980 Regents of the University of California. ! 3: # All rights reserved. The Berkeley software License Agreement ! 4: # specifies the terms and conditions for redistribution. ! 5: # ! 6: # @(#)Makefile 5.1 (Berkeley) 6/7/85 ! 7: # ! 8: ! 9: # Makefile for f77 I/O lib, libI77.a ! 10: ! 11: DESTDIR = ! 12: INCLDIR = ! 13: ! 14: CFLAGS = -O -Dpower6 -I$(INCLDIR)/usr/include ! 15: ! 16: DEST = $(DESTDIR)/usr/lib ! 17: ! 18: EXTHDRS = ! 19: ! 20: FFLAGS = -O ! 21: ! 22: HDRS = f_errno.h \ ! 23: fio.h \ ! 24: fiodefs.h \ ! 25: format.h \ ! 26: lio.h ! 27: ! 28: LIBRARY = libI77.a ! 29: ! 30: LIBRARY_P = libI77_p.a ! 31: ! 32: MAKEFILE = Makefile ! 33: ! 34: OBJS = backspace.o \ ! 35: c_dfe.o \ ! 36: c_iio.o \ ! 37: c_sfe.o \ ! 38: close.o \ ! 39: dofio.o \ ! 40: dolio.o \ ! 41: douio.o \ ! 42: due.o \ ! 43: endfile.o \ ! 44: err.o \ ! 45: f_errlist.o \ ! 46: fmt.o \ ! 47: fmtlib.o \ ! 48: inquire.o \ ! 49: lread.o \ ! 50: lwrite.o \ ! 51: open.o \ ! 52: rdfe.o \ ! 53: rdfmt.o \ ! 54: rewind.o \ ! 55: rfi.o \ ! 56: rsfe.o \ ! 57: rsli.o \ ! 58: sue.o \ ! 59: util.o \ ! 60: wdfe.o \ ! 61: wfi.o \ ! 62: wrtfmt.o \ ! 63: wsfe.o \ ! 64: wsli.o ! 65: ! 66: PRINT = pr ! 67: ! 68: SRCS = backspace.c \ ! 69: c_dfe.c \ ! 70: c_iio.c \ ! 71: c_sfe.c \ ! 72: close.c \ ! 73: dofio.c \ ! 74: dolio.c \ ! 75: douio.c \ ! 76: due.c \ ! 77: endfile.c \ ! 78: err.c \ ! 79: f_errlist.c \ ! 80: fmt.c \ ! 81: fmtlib.c \ ! 82: inquire.c \ ! 83: lread.c \ ! 84: lwrite.c \ ! 85: open.c \ ! 86: rdfe.c \ ! 87: rdfmt.c \ ! 88: rewind.c \ ! 89: rfi.c \ ! 90: rsfe.c \ ! 91: rsli.c \ ! 92: sue.c \ ! 93: util.c \ ! 94: wdfe.c \ ! 95: wfi.c \ ! 96: wrtfmt.c \ ! 97: wsfe.c \ ! 98: wsli.c ! 99: ! 100: all: $(LIBRARY) $(LIBRARY_P) libI66.o ! 101: ! 102: $(LIBRARY): $(OBJS) ! 103: @echo -n "Loading $(LIBRARY) ... " ! 104: @ar cru $(LIBRARY) $(OBJS) ! 105: @ranlib $(LIBRARY) ! 106: @echo "done" ! 107: ! 108: $(LIBRARY_P): $(OBJS) ! 109: @echo -n "Loading $(LIBRARY_P) ... " ! 110: @cd profiled; ar cru ../$(LIBRARY_P) $(OBJS) ! 111: @ranlib $(LIBRARY_P) ! 112: @echo "done" ! 113: ! 114: clean:; @rm -f $(OBJS) profiled/*.o $(LIBRARY) $(LIBRARY_P) ! 115: ! 116: depend:; @echo Construct dependencies manually ! 117: ! 118: extract:; @ar xo $(DEST)/$(LIBRARY); rm -f __.SYMDEF ! 119: @cd profiled; -ar xo $(DEST)/$(LIBRARY_P); rm -f __.SYMDEF ! 120: ! 121: index:; @ctags -wx $(HDRS) $(SRCS) ! 122: ! 123: install: $(LIBRARY) $(LIBRARY_P) libI66.o ! 124: install -m 644 $(LIBRARY) $(DEST)/$(LIBRARY) ! 125: ranlib $(DEST)/$(LIBRARY) ! 126: install -m 644 $(LIBRARY_P) $(DEST)/$(LIBRARY_P) ! 127: ranlib $(DEST)/$(LIBRARY_P) ! 128: install -m 644 -c libI66.o $(DEST)/libI66.a ! 129: ! 130: library: $(LIBRARY) $(LIBRARY_P) ! 131: ! 132: print:; @$(PRINT) $(HDRS) $(SRCS) ! 133: ! 134: tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS) ! 135: ! 136: update: $(DEST)/$(LIBRARY) ! 137: ! 138: $(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS) ! 139: @-ar xo $(DEST)/$(LIBRARY) ! 140: @cd profiled; -ar xo $(DEST)/$(LIBRARY_P) ! 141: @make -f $(MAKEFILE) DEST=$(DEST) install clean ! 142: ! 143: f_errlist.o: f_errlist.c ! 144: $(CC) $(CFLAGS) -c f_errlist.c ! 145: @rm -f profiled/f_errlist.o ! 146: ln f_errlist.o profiled/f_errlist.o ! 147: .c.o: ! 148: $(CC) -p $(CFLAGS) -c $*.c ! 149: -ld -x -r $*.o ! 150: mv a.out profiled/$*.o ! 151: $(CC) $(CFLAGS) -c $*.c ! 152: -ld -x -r $*.o ! 153: mv a.out $*.o ! 154: ! 155: backspace.o: fio.h f_errno.h fiodefs.h backspace.c ! 156: c_dfe.o: fio.h f_errno.h fiodefs.h c_dfe.c ! 157: rdfe.o: fio.h f_errno.h fiodefs.h rdfe.c ! 158: wdfe.o: fio.h f_errno.h fiodefs.h wdfe.c ! 159: due.o: fio.h f_errno.h fiodefs.h due.c ! 160: rfi.o: fio.h f_errno.h fiodefs.h rfi.c ! 161: wfi.o: fio.h f_errno.h fiodefs.h wfi.c ! 162: rsli.o: fio.h f_errno.h fiodefs.h lio.h rsli.c ! 163: wsli.o: fio.h f_errno.h fiodefs.h lio.h wsli.c ! 164: c_iio.o: fio.h f_errno.h fiodefs.h lio.h c_iio.c ! 165: inquire.o: fio.h f_errno.h fiodefs.h inquire.c ! 166: rewind.o: fio.h f_errno.h fiodefs.h rewind.c ! 167: rdfmt.o: fio.h f_errno.h fiodefs.h format.h rdfmt.c ! 168: sue.o: fio.h f_errno.h fiodefs.h sue.c ! 169: douio.o: fio.h f_errno.h fiodefs.h douio.c ! 170: rsfe.o: fio.h f_errno.h fiodefs.h rsfe.c ! 171: wsfe.o: fio.h f_errno.h fiodefs.h wsfe.c ! 172: c_sfe.o: fio.h f_errno.h fiodefs.h c_sfe.c ! 173: fmt.o: fio.h f_errno.h fiodefs.h format.h fmt.c ! 174: dofio.o: fio.h f_errno.h fiodefs.h format.h dofio.c ! 175: lwrite.o: fio.h f_errno.h fiodefs.h lio.h lwrite.c ! 176: lread.o: fio.h f_errno.h fiodefs.h lio.h lread.c ! 177: dolio.o: fio.h f_errno.h fiodefs.h lio.h dolio.c ! 178: open.o: fio.h f_errno.h fiodefs.h open.c ! 179: close.o: fio.h f_errno.h fiodefs.h close.c ! 180: util.o: fio.h f_errno.h fiodefs.h util.c ! 181: endfile.o: fio.h f_errno.h fiodefs.h endfile.c ! 182: wrtfmt.o: fio.h f_errno.h fiodefs.h format.h wrtfmt.c ! 183: err.o: fio.h f_errno.h fiodefs.h err.c ! 184: fmtlib.o: fio.h f_errno.h fiodefs.h fmtlib.c
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.