|
|
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 c0000000
14:
15: .SUFFIXES:
16: .SUFFIXES: .x .s .o .c .lst
17:
18: .x.o:
19: cat INCLUDE $*.x | sed 's/^#\([^id]\)/ #\1/' | /lib/cpp | ${AS} -o $*.o
20:
21:
22: .s.o:
23: cat INCLUDE $*.s | ${AS} -o $*.o
24:
25:
26:
27:
28: TESTS = init.o prvreg.o prvinstr.o be_evt.o roprnd_evt.o \
29: prvins_evt.o align_evt.o \
30: raddr_evt.o \
31: rsvins_evt.o \
32: arith_evt.o \
33: bpt_evt.o \
34: ttrap_evt.o \
35: softint_evt.o \
36: vkcall_evt.o \
37: vtrans_evt.o \
38: vprobe_evt.o \
39: vksnv_evt.o \
40: mulevt.o \
41: visnv_evt.o \
42: error.o \
43: trap.o \
44: bio.o \
45: cp.o
46:
47:
48:
49: all : event
50:
51: event.st : $(TESTS)
52: ${LD} $(LD_FLG) -N -x -o event.st $(TESTS)
53:
54: event : event.st
55: cp event.st $$event.st
56: strip $$event.st
57: dd if=$$event.st of=event skip=1 bs=2080
58: rm -f $$event.st
59:
60: clean :
61: rm -f *.o *.lst *.sf *.sp *.st event
62:
63: cleansrc:
64: rm -f *.[csh] *.def init.x definitions INCLUDE makefile
65:
66: install: all
67: install -c event ${DESTDIR}/d
68:
69: depend:
70: grep '^#include' *.[cs] | grep -v '<' | \
71: sed 's/:[^"]*"\([^"]*\)".*/: \1/' | \
72: sed 's/\.c/.o/' | \
73: awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
74: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
75: else rec = rec " " $$2 } } \
76: END { print rec } ' > makedep
77: echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
78: echo '$$r makedep' >>eddep
79: echo 'w' >>eddep
80: cp makefile makefile.bak
81: ed - makefile < eddep
82: rm -f eddep makedep
83:
84: # DO NOT DELETE THIS LINE -- make depend uses it
85:
86: bio.o: definitions
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.