|
|
1.1 ! root 1: # ! 2: # Makefile for Research V9. ! 3: # ! 4: C2= /lib/c2 ! 5: ! 6: COPTS= ${IDENT} -DKERNEL ! 7: CFLAGS= -O ${COPTS} ! 8: ! 9: AHEADS= ../h/pcb.m ! 10: ! 11: %OBJS ! 12: ! 13: %CFILES ! 14: ! 15: %LOAD ! 16: ! 17: clean: ! 18: rm -f eddep *unix* tags *.o locore.i [a-tv-z]*.s errs linterrs ! 19: ! 20: lint:Q: /tmp ! 21: lint -hbxn -I. -DGENERIC ${COPTS} ../sys/Locore.c ${CFILES} ../dev/swapgeneric.c ioconf.c | ! 22: grep -v 'struct/union .* never defined' | ! 23: grep -v 'possible pointer alignment problem' ! 24: ! 25: locore.o:Q: assym.s ${AHEADS} ../sys/scb.s ../sys/locore.s ../sys/emulate.s ubglue.s \ ! 26: ../h/mtpr.h ../h/trap.h ../h/psl.h ../h/pte.h ../h/cpu.h ../h/mtpr.h mba.h ! 27: cat assym.s ../sys/scb.s ../sys/locore.s ../sys/emulate.s ubglue.s > locore.c ! 28: cc -E -DLOCORE ${COPTS} locore.c > locore.i ! 29: echo 'as -o locore.o ${AHEADS} locore.i' ! 30: as -o locore.o ${AHEADS} locore.i ! 31: rm locore.i ! 32: ! 33: assym.s: ../h/param.h ../h/pte.h ../h/buf.h ../h/vmparam.h ../h/vmmeter.h \ ! 34: ../h/dir.h ../h/cmap.h ../h/map.h ../h/ubavar.h ../h/proc.h ! 35: cc ../conf/genassym.c; ./a.out >assym.s; rm -f a.out ! 36: ! 37: ../h/param.h: /usr/include/signal.h ! 38: touch ../h/param.h ! 39: ../h/user.h: ../h/pcb.h ../h/dmap.h ../h/vtimes.h ../h/types.h \ ! 40: /usr/include/errno.h ! 41: touch ../h/user.h ! 42: ../h/vm.h: ../h/vmmac.h ../h/vmmeter.h ../h/vmparam.h ../h/vmsystm.h ! 43: touch ../h/vm.h ! 44: ../sys/sysent.c: ../sys/vmsysent.c ! 45: touch ../sys/sysent.c ! 46: ! 47: depend:Q: ! 48: grep '^#include' ${CFILES} | grep -v '<' | ! 49: sed 's/:[^"]*"\([^"]*\)".*/: \1/ ! 50: s/\.c/.o/; s,../[a-z]*/,,' | \ ! 51: awk ' { if ($1 != prev) { print rec; rec = $0; prev = $1; } ! 52: else { if (length(rec $2) > 78) { print rec; rec = $0; } ! 53: else rec = rec " " $2 } } ; ! 54: END { print rec } ' > makedep ! 55: echo '$r makedep ! 56: /^# DO NOT DELETE THIS LINE/+1,$d ! 57: $r makedep ! 58: /^unix:/;/ld/;.g/ -x/s/// ! 59: a ! 60: strip -g unix ! 61: . ! 62: w' >eddep ! 63: cp mkfile mkfile.bak ! 64: ed - mkfile < eddep ! 65: rm eddep makedep ! 66: ! 67: ioconf.o: ioconf.c ../h/param.h ../h/pte.h ../h/buf.h ../h/map.h \ ! 68: ../h/mbavar.h ../h/vm.h ../h/ubavar.h ! 69: ${CC} -I. -c -S ${COPTS} ioconf.c ! 70: ${C2} ioconf.s | sed -f ../sys/asm.sed | ${AS} -o ioconf.o ! 71: rm -f ioconf.s ! 72: ! 73: param.c: ../sys/param.c ! 74: cp ../sys/param.c . ! 75: ! 76: param.o: param.c mkfile ! 77: ${CC} -c ${CFLAGS} ${PARAM} param.c ! 78: ! 79: %RULES ! 80: ! 81: # DO NOT DELETE THIS LINE -- mk depend uses it ! 82:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.