|
|
1.1 root 1:
2: #
3: # HDRS included files
4: #
5: # SRCS source files
6: #
7:
8: MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
9:
10: HDRS1 = prvreg.h psl.h pte.h pcboffset.h const.h scboffset.h \
11: sptoffset.h trap.h
12:
13: LD_FLG = -T 0
14:
15: .SUFFIXES:
16: .SUFFIXES: .x .s .o .c .lst
17:
18: .x.o:
19: cat INCLUDE $*.x | sed 's/^#\([^id]\)/ #\1/' | /lib/cpp >temp.s
20: ${AS} -o $*.o temp.s
21: rm temp.s
22:
23:
24: .s.o:
25: cat INCLUDE $*.s | /ua/usr/bin/${AS} -o $*.o
26:
27:
28:
29: .c.o:
30: ${CC} -c $*.c
31:
32:
33: TESTS = init.o cp.o bio.o trap.o monitor.o test1.o test2.o test3.o \
34: test4.o test5.o test6.o error.o locate.o
35:
36:
37:
38: all : memtst.sp
39:
40: install: all
41: install -c memtst.sp ${DESTDIR}/d/memtst
42:
43: object : memtst.st memtst.sp
44:
45:
46: memtst.st : $(TESTS)
47: ld -N -x -o memtst.st $(TESTS)
48:
49: memtst.sp : memtst.st
50: cp memtst.st $$memtst.st
51: strip $$memtst.st
52: dd if=$$memtst.st of=memtst.sp skip=1 bs=2080
53: rm -f $$memtst.st
54:
55:
56:
57: clean :
58: rm -f *.o *.sp *.st
59:
60: cleansrc:
61: rm -f *.[cshx] *.def comt definitions INCLUDE
62:
63:
64: depend:
65: grep '^#include' *.[cs] | grep -v '<' | \
66: sed 's/:[^"]*"\([^"]*\)".*/: \1/' | \
67: sed 's/\.c/.o/' | \
68: awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
69: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
70: else rec = rec " " $$2 } } \
71: END { print rec } ' > makedep
72: echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
73: echo '$$r makedep' >>eddep
74: echo 'w' >>eddep
75: cp makefile makefile.bak
76: ed - makefile < eddep
77: rm -f eddep makedep
78:
79: # DO NOT DELETE THIS LINE -- make depend uses it
80:
81: dmemtst.o: ../h/param.h ../h/systm.h ../h/seg.h ../h/buf.h ../h/conf.h
82: dmemtst.o: ../h/mtpr.h ../h/reboot.h ../h/vm.h ../h/msgbuf.h ../h/dir.h
83: dmemtst.o: ../h/user.h ../h/tty.h ../h/param.h ../h/conf.h ../h/dir.h
84: dmemtst.o: ../h/user.h ../h/tty.h ../h/systm.h ../h/cons.h ../h/mtpr.h ../h/mx.h
85: dmemtst.o: ../h/cpu.h ../h/param.h ../h/systm.h ../h/dir.h ../h/user.h
86: dmemtst.o: ../h/map.h ../h/reg.h ../h/mtpr.h ../h/clock.h ../h/pte.h ../h/vm.h
87: dmemtst.o: ../h/proc.h ../h/psl.h ../h/buf.h ../h/ubavar.h ../h/ubareg.h
88: dmemtst.o: ../h/cons.h ../h/reboot.h ../h/conf.h ../h/mem.h ../h/cpu.h
89: dmemtst.o: ../h/inode.h ../h/file.h ../h/text.h ../h/clist.h ../h/callout.h
90: dmemtst.o: ../h/cmap.h ../h/rpb.h ../h/param.h ../h/systm.h ../h/dir.h
91: dmemtst.o: ../h/user.h ../h/proc.h ../h/reg.h ../h/seg.h ../h/trap.h ../h/psl.h
92: dmemtst.o: ../h/pte.h ../h/inline.h ../h/mtpr.h
93: vinit.o: /va/accts/ngo/evt/h/prvreg.h /va/accts/ngo/evt/h/psl.h
94: vinit.o: /va/accts/ngo/evt/h/pte.h /va/accts/ngo/evt/h/pcboffset.h
95: vinit.o: /va/accts/ngo/evt/h/const.h /va/accts/ngo/evt/h/scboffset.h
96: vinit.o: /va/accts/ngo/evt/h/sptoffset.h /va/accts/ngo/evt/h/trap.h pstorage.s
97: vinit.o: scblock.s evthandlers.s
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.