|
|
1.1 ! root 1: # Makefile for the f77 I/O library ! 2: # @(#)Makefile 1.7 2/27/81 ! 3: # Originally written by P. Weinberger, Bell Labs, Murray Hill, N.J. ! 4: # Modified by D. Wasley, Univ of California, Berkeley, Calif. ! 5: ! 6: ! 7: MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR} ! 8: ! 9: LIBDIR = $(DESTDIR)/usr/lib ! 10: ! 11: LIB = libI77.a ! 12: LIB66 = libI66.a ! 13: CFLAGS = -O ! 14: TAPE = ${DESTDIR}/dev/rnmt0.16 ! 15: ! 16: SOURCES = backspace.c close.c dballoc.c dfe.c due.c endfile.c err.c fmt.c \ ! 17: fmtlib.c iio.c inquire.c lwrite.c lread.c dolio.c open.c \ ! 18: rdfmt.c rewind.c sfe.c sue.c douio.c util.c wrtfmt.c \ ! 19: dofio.c f_errlist.c f_errno.h fiodefs.h fio.h format.h lio.h \ ! 20: yes_66.c no_66.c ! 21: ! 22: OBJECTS = dfe.o due.o iio.o sue.o sfe.o lread.o lwrite.o \ ! 23: dofio.o douio.o dolio.o \ ! 24: rdfmt.o wrtfmt.o fmt.o fmtlib.o \ ! 25: backspace.o rewind.o open.o close.o endfile.o inquire.o \ ! 26: dballoc.o err.o util.o f_errlist.o ! 27: ! 28: all: $(LIB) $(LIB66) ! 29: $(LIB): $(OBJECTS) Version no_66.o ! 30: @echo Loading ! 31: @rm -f $(LIB) ! 32: @ar rc $(LIB) $(OBJECTS) Version no_66.o ! 33: @chmod 664 $(LIB) ! 34: @echo "" > /dev/tty ! 35: ! 36: $(LIB66): $(OBJECTS) yes_66.o ! 37: @rm -f $(LIB66) ! 38: @mv yes_66.o $(LIB66) ! 39: ! 40: install: ! 41: cp $(LIB) $(LIBDIR)/$(LIB) ! 42: cp $(LIB66) $(LIBDIR)/$(LIB66) ! 43: ranlib $(LIBDIR)/$(LIB) ! 44: ! 45: backspace.o: fio.h backspace.c ! 46: dfe.o: fio.h dfe.c ! 47: due.o: fio.h due.c ! 48: iio.o: fio.h lio.h iio.c ! 49: inquire.o: fio.h inquire.c ! 50: rewind.o: fio.h rewind.c ! 51: rdfmt.o: fio.h format.h rdfmt.c ! 52: sue.o: fio.h sue.c ! 53: douio.o: fio.h douio.c ! 54: sfe.o: fio.h sfe.c ! 55: fmt.o: fio.h format.h fmt.c ! 56: dofio.o: fio.h format.h dofio.c ! 57: lwrite.o: fio.h lio.h lwrite.c ! 58: lread.o: fio.h lio.h lread.c ! 59: dolio.o: fio.h lio.h dolio.c ! 60: open.o: fio.h open.c ! 61: close.o: fio.h close.c ! 62: util.o: fio.h util.c ! 63: endfile.o: fio.h endfile.c ! 64: wrtfmt.o: fio.h format.h wrtfmt.c ! 65: err.o: fiodefs.h err.c ! 66: fmtlib.o: fio.h fmtlib.c ! 67: dballoc.o: dballoc.c ! 68: fio.h: fiodefs.h ! 69: #fiodefs.h: f_errno.h ! 70: ! 71: # compile, then strip unnecessary symbols ! 72: .c.o: ! 73: ${CC} $(CFLAGS) -c $*.c ! 74: -${LD} -r -x $*.o ! 75: mv a.out $*.o ! 76: ! 77: f_errlist.o: f_errlist.c ! 78: ${CC} $(CFLAGS) -c f_errlist.c ! 79: ! 80: Version: $(SOURCES) mkvers ! 81: @rm -f Version.c ! 82: mkvers $(LIB) $(SOURCES) > Version.c ! 83: ${CC} -c Version.c ! 84: mv Version.o Version ! 85: ! 86: mkvers: mkvers.c ! 87: @${CC} mkvers.c -o mkvers ! 88: ! 89: clean: ! 90: rm -f *.o $(LIB) tags mkvers Version ! 91: ! 92: cleansrc: ! 93: ! 94: rm -f *.[cha] NEWS *.tx READ_ME ! 95: ! 96: ! 97: index: $(SOURCES) mkindx ! 98: @mkindx "f77 libI77.a Source Listing " Makefile $(SOURCES) ! 99: ! 100: print: index ! 101: @pr index Makefile `ls $(SOURCES)` | lpr ! 102: ! 103: mkindx: mkindx.c ! 104: @${CC} mkindx.c -o mkindx ! 105: ! 106: writeup: writeup.tx ! 107: @-rm writeup ! 108: @nroff -ms writeup.tx > writeup ! 109: ! 110: wup: writeup.tx ! 111: @nroff -ms writeup.tx | ul | more ! 112: ! 113: tape: ! 114: @tar cbf 20 $(TAPE) mkvers.c mkindx.c \ ! 115: Makefile READ_ME NEWS writeup.tx writeup $(SOURCES) ! 116: ! 117: order: ! 118: @rm -f order ! 119: @lorder $(OBJECTS) | tsort >order ! 120: ! 121: tags: $(SOURCES) ! 122: @ctags $(SOURCES) ! 123:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.