|
|
1.1 ! root 1: # @(#)Makefile.tahoe 1.14 (Berkeley) 10/22/87 ! 2: # ! 3: # Makefile for 4.3 BSD ! 4: # ! 5: # This makefile is constructed from a machine description: ! 6: # config machineid ! 7: # Most changes should be made in the machine description ! 8: # /sys/conf/``machineid'' ! 9: # after which you should do ! 10: # config machineid ! 11: # Generic makefile changes should be made in ! 12: # /sys/conf/Makefile.``machinetype'' ! 13: # after which config should be rerun for all machines. ! 14: # ! 15: # N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE INVISIBLE TO MAKEFILE ! 16: # IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING ! 17: # ! 18: # -DTRACE compile in kernel tracing hooks ! 19: # -DQUOTA compile in file system quotas ! 20: # ! 21: C2= /lib/c2 ! 22: LD= /bin/ld ! 23: TOUCH= touch -f -c ! 24: INDIR= ../tahoe/inline ! 25: INLINE= ${INDIR}/inline ! 26: ! 27: INCLUDES= -I. -I../h ! 28: COPTS= ${INCLUDES} ${IDENT} -DKERNEL ! 29: CFLAGS= -O ${COPTS} ! 30: ! 31: %OBJS ! 32: ! 33: %CFILES ! 34: ! 35: %LOAD ! 36: ! 37: clean: ! 38: rm -f eddep *vmunix tags *.o locore.i [a-uw-z]*.s \ ! 39: errs linterrs makelinks ! 40: ! 41: lint: /tmp param.c ! 42: @lint -hbxn -I. -DGENERIC ${COPTS} ${PARAM} \ ! 43: ../tahoe/Locore.c ${CFILES} ioconf.c param.c | \ ! 44: grep -v 'struct/union .* never defined' | \ ! 45: grep -v 'possible pointer alignment problem' ! 46: ! 47: ../tahoe/symbols.sort: ../tahoe/symbols.raw ! 48: grep -v '^#' ../tahoe/symbols.raw \ ! 49: | sed 's/^ //' | sort -u > ../tahoe/symbols.sort ! 50: ! 51: ${INLINE}: ${INDIR}/inline.h ${INDIR}/langpats.c ! 52: ${INLINE}: ${INDIR}/libcpats.c ${INDIR}/machdep.c ! 53: ${INLINE}: ${INDIR}/machpats.c ${INDIR}/main.c ! 54: cd ${INDIR}; make ! 55: ! 56: locore.o: assym.s ../tahoe/scb.s vbvec.s ../tahoe/locore.s \ ! 57: vbglue.s ../tahoe/mtpr.h ../tahoe/trap.h ../tahoe/psl.h \ ! 58: ../tahoe/pte.h ../tahoe/cp.h ../tahoe/mem.h ! 59: cat assym.s ../tahoe/scb.s vbvec.s ../tahoe/locore.s \ ! 60: vbglue.s > locore.c ! 61: ${CC} -E -I. -DLOCORE ${COPTS} locore.c > locore.i ! 62: @echo 'as -o locore.o locore.i' ! 63: @${AS} -o locore.o locore.i ! 64: @rm locore.i ! 65: ! 66: # the following is necessary because autoconf.o depends on #if GENERIC ! 67: autoconf.o: Makefile ! 68: ! 69: # depend on network configuration ! 70: af.o uipc_proto.o locore.o: Makefile ! 71: ! 72: # depend on maxusers ! 73: assym.s machdep.o: Makefile ! 74: ! 75: # depends on KDB (cons.o also depends on GENERIC) ! 76: trap.o cons.o: Makefile ! 77: ! 78: assym.s: ../h/param.h ../tahoe/pte.h ../h/buf.h ../h/vmparam.h \ ! 79: ../h/vmmeter.h ../h/dir.h ../h/cmap.h ../h/map.h ../tahoevba/vbaparam.h \ ! 80: ../h/proc.h ../h/msgbuf.h ../tahoe/scb.h ../machine/vmparam.h ! 81: ${CC} ${INCLUDES} -DKERNEL ${IDENT} ${PARAM} ../tahoe/genassym.c ! 82: ./a.out >assym.s; rm -f a.out ! 83: ! 84: depend: assym.s ! 85: mkdep ${COPTS} ${CFILES} ! 86: ! 87: links: ! 88: egrep '#if' ${CFILES} | sed -f ../conf/defines | \ ! 89: sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink ! 90: echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \ ! 91: sort -u | comm -23 - dontlink | \ ! 92: sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks ! 93: echo 'rm -f udiv.o;ln -s ../GENERIC/udiv.o udiv.o' >> makelinks ! 94: echo 'rm -f urem.o;ln -s ../GENERIC/urem.o urem.o' >> makelinks ! 95: sh makelinks && rm -f dontlink ! 96: ! 97: tags: ! 98: @echo "see ../sys/Makefile for tags" ! 99: ! 100: print: ! 101: @pr -f Makefile ../sys/TODO linterrs ! 102: @/usr/ucb/ctags -x ${CFILES} | pr -f -h XREF ! 103: @(size vmunix *.o) | pr -f -h sizes ! 104: @ls -ls | pr -f ! 105: @cd ../h; ls -ls | pr -f ; pr -f *.m *.h ! 106: @echo 'once upon a time ...' ! 107: @cd ../tahoe; pr -f Locore.c scb.s locore.s ! 108: @cd ${INDIR}; make print ! 109: @pr -f ${CFILES} ! 110: ! 111: ioconf.o: ioconf.c ../h/param.h ../tahoe/pte.h ../h/buf.h ../h/map.h \ ! 112: ../h/vm.h ../tahoevba/vbavar.h ! 113: ! 114: param.c: ../conf/param.c ! 115: -rm -f param.c ! 116: cp ../conf/param.c . ! 117: ! 118: param.o: param.c Makefile ! 119: ${CC} -c ${CFLAGS} ${PARAM} param.c ! 120: ! 121: %RULES ! 122: ! 123: # DO NOT DELETE THIS LINE -- make depend uses it ! 124:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.