|
|
1.1 ! root 1: # Makefile 4.10 83/07/09 ! 2: # ! 3: AS=/bin/as ! 4: CC=/bin/cc ! 5: LD=/bin/ld ! 6: INCLDIR=/usr/src/include ! 7: LIBDIR=/lib ! 8: ULIBDIR=/usr/lib ! 9: DESTDIR= ! 10: MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR} ! 11: ! 12: CFLAGS= -O -I${INCLDIR} ! 13: ! 14: # Programs that live in subdirectories, and have makefiles of their own. ! 15: # ! 16: # To make them all, use the next 'SUBDIR': ! 17: # SUBDIR= learn libcurses libdbm libln \ ! 18: # libm libmp libplot libtermlib lpr sendmail ! 19: SUBDIR= learn libF77 libI77 libU77 libcurses libdbm libg libln libm libM libmp libtermlib libsys5 lpr sendmail tmac ! 20: ! 21: # Shell scripts that need only be installed and are never removed. ! 22: # ! 23: SCRIPT= makewhatis ! 24: ! 25: # C programs that live in the current directory and do not need ! 26: # explicit make lines. ! 27: # ! 28: STD= atrun getNAME makekey ! 29: ! 30: # C programs that live in the current directory and need explicit make lines. ! 31: # ! 32: NSTD= ! 33: ! 34: all: ! 35: for i in ${SUBDIR}; do \ ! 36: (cd $$i; make ${MFLAGS} ${MAKEPARAM} ); done ! 37: make ${STD} ${MFLAG} ${MAKEPARAM} ! 38: ! 39: ! 40: ${STD}: ! 41: ${CC} ${CFLAGS} -o $@ [email protected] ${DESTDIR}/lib/libc.a ! 42: ! 43: install: ! 44: for i in ${SUBDIR}; do \ ! 45: (cd $$i; make ${MFLAGS} ${MAKEPARAM}; \ ! 46: make ${MFLAGS} ${MAKEPARAM} install); done ! 47: make ${STD} ${MFLAG} ${MAKEPARAM} ! 48: for i in ${SCRIPT}; do (install -c $$i.sh ${DESTDIR}/usr/lib/$$i); done ! 49: for i in ${STD} ${NSTD}; do (install $$i ${DESTDIR}/usr/lib/$$i); done ! 50: install -c lib.b ${DESTDIR}/usr/lib/lib.b ! 51: install -c crontab ${DESTDIR}/usr/lib/crontab ! 52: ! 53: clean: ! 54: rm -f a.out core *.s *.o ! 55: for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done ! 56: rm -f ${STD} ${NSTD} ! 57: ! 58: cleansrc: ! 59: ! 60: rm -f *.[cb] *.sh getNAME* makekey* atrun Makefile ! 61: ! 62: depend: ! 63: cat </dev/null >x.c ! 64: for i in ${STD} ${NSTD}; do \ ! 65: (echo $$i: $$i.c >>makedep; \ ! 66: /bin/grep '^#[ ]*include' x.c $$i.c | sed \ ! 67: -e '/\.\.\/h/d' \ ! 68: -e 's,<\(.*\)>,"/usr/include/\1",' \ ! 69: -e 's/:[^"]*"\([^"]*\)".*/: \1/' \ ! 70: -e 's/\.c//' >>makedep); done ! 71: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep ! 72: echo '$$r makedep' >>eddep ! 73: echo 'w' >>eddep ! 74: cp Makefile Makefile.bak ! 75: ed - Makefile < eddep ! 76: rm eddep makedep x.c ! 77: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile ! 78: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile ! 79: echo '# see make depend above' >> Makefile ! 80: ! 81: # Files listed in ${NSTD} have explicit make lines given below. ! 82: ! 83: # DO NOT DELETE THIS LINE -- make depend uses it ! 84: ! 85: atrun: atrun.c ! 86: atrun: /usr/include/stdio.h ! 87: atrun: /usr/include/sys/param.h ! 88: atrun: /usr/include/sys/dir.h ! 89: atrun: /usr/include/sys/time.h ! 90: atrun: /usr/include/sys/stat.h ! 91: getNAME: getNAME.c ! 92: getNAME: /usr/include/stdio.h ! 93: makekey: makekey.c ! 94: # DEPENDENCIES MUST END AT END OF FILE ! 95: # IF YOU PUT STUFF HERE IT WILL GO AWAY ! 96: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.