|
|
1.1 root 1: TASK=fpevent
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 00000000
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: .s.o:
22: cat INCLUDE $*.s | ${AS} -o $*.o
23:
24: .c.o:
25: cc -c $*.c
26:
27: .x.lst: a.sym
28: cat INCLUDE $*.x | sed 's/^#\([^id]\)/ #\1/' | /lib/cpp >temp.s
29: ${AS} temp.s -o /dev/null -P | absaddr > $*.lst
30: rm temp.s
31:
32: .s.lst: a.sym
33: cat INCLUDE $*.s | sed 's/^#\([^id]\)/ #\1/' > temp.s
34: ${AS} temp.s -o /dev/null -P | absaddr > $*.lst
35: rm temp.s
36:
37: .c.lst : a.sym
38: ${CC} -S -L $*.c
39: ${AS} $*.s -o /dev/null -P | absaddr > $*.lst
40: rm -f $*.s
41:
42:
43:
44:
45: SUPPORT = init.o cp.o bio.o fpp_vars.o monitor.o \
46: messages.o fpp_event.o test_list.o resop_tbl.o \
47: ovfl_tbl.o fpm_tbl.o pipeline_tbl.o pack_inst.o common.o
48:
49: SLISTS = init.lst fpp_event.lst common.lst monitor.lst
50:
51:
52: TESTS = chk_event.o div_by_0_test.o int_ov_test.o ovfl_test.o \
53: resop_test.o undfl_test.o fpm_test.o test_inst.o test_0_ops.o \
54: pipe_test.o pipe1.o pipe2.o pipe3.o pipe4.o pipe5.o \
55: pipe6.o pipe7.o pipe8.o pipe9.o pipe10.o pipe11.o \
56: pipe12.o pipe13.o pipe14.o pipe15.o pipe16.o pipe17.o \
57: run_code.o
58:
59: TLISTS = chk_event.lst div_by_0_test.lst int_ov_test.lst \
60: ovfl_test.lst resop_test.lst undfl_test.lst fpm_test.lst \
61: pipe_test.lst test_inst.lst test_0_ops.lst run_code.lst \
62: pipe1.lst pipe2.lst pipe3.lst pipe4.lst pipe5.lst \
63: pipe6.lst pipe7.lst pipe8.lst pipe9.lst pipe10.lst \
64: pipe11.lst pipe12.lst pipe13.lst pipe14.lst pipe15.lst \
65: pipe16.lst pipe17.lst
66:
67: DATA = Data/acc.o Data/fpm_data.o Data/div_by_0.o \
68: Data/cmp2_resop.o Data/flt_resop.o Data/logf_resop.o \
69: Data/addd_ov.o Data/addf_ov.o Data/cvdf_ov.o \
70: Data/cvdl_ov.o Data/cvfl_ov.o Data/divd_ov.o \
71: Data/divf_ov.o Data/muld_ov.o Data/mulf_ov.o \
72: Data/subd_ov.o Data/subf_ov.o Data/mull_ov.o \
73: Data/addd_undfl.o Data/addf_undfl.o Data/divd_undfl.o \
74: Data/divf_undfl.o Data/muld_undfl.o Data/mulf_undfl.o \
75: Data/subd_undfl.o Data/subf_undfl.o Data/expf_ov.o \
76: Data/expf_undfl.o \
77: Data/pipe1_data.o Data/pipe2_data.o Data/pipe3_data.o \
78: Data/pipe4_data.o Data/pipe7_data.o
79:
80:
81: all : ${TASK} lists
82:
83: ${TASK}.st : $(TESTS) $(SUPPORT) data
84: ${LD} $(LD_FLG) -N -x -o ${TASK}.st $(SUPPORT) $(TESTS) $(DATA)
85:
86: data :
87: (cd Data; make data)
88:
89: ${TASK} : ${TASK}.st
90: cp ${TASK}.st ${TASK}.st$$
91: strip ${TASK}.st$$
92: # dd if=${TASK}.st of=${TASK} skip=1 bs=2080
93: dd if=${TASK}.st$$ of=${TASK} skip=1 bs=2080
94: rm -f ${TASK}.st$$
95:
96: lists : dlists $(TLISTS) $(SLISTS)
97:
98: dlists : a.sym
99: (cd Data; make lists)
100:
101: #
102: # a.sym is the symbol table
103: #
104: a.sym : ${TASK}.st absaddr
105: nm ${TASK}.st |sed 's/^/_/' |awk -f awknames |sort |sed 's/ _/ /' >a.sym
106: cp a.sym Data
107: cp absaddr Data
108:
109: clean :
110: rm -f *.o *.lst *.sf *.sp *.st ${TASK} a.sym
111: (cd Data; make clean)
112:
113: cleansrc:
114: rm -f *.[csh] *.def init.x definitions INCLUDE makefile
115:
116: install: all
117: install -c ${TASK} ${DESTDIR}/d
118:
119: absaddr: absaddr.c
120: ${CC} -O -o absaddr absaddr.c
121:
122: depend:
123: grep '^#include' *.[cs] | grep -v '<' | \
124: sed 's/:[^"]*"\([^"]*\)".*/: \1/' | \
125: sed 's/\.c/.o/' | \
126: awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
127: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
128: else rec = rec " " $$2 } } \
129: END { print rec } ' > makedep
130: echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
131: echo '$$r makedep' >>eddep
132: echo 'w' >>eddep
133: cp makefile makefile.bak
134: ed - makefile < eddep
135: rm -f eddep makedep
136:
137: # DO NOT DELETE THIS LINE -- make depend uses it
138:
139: bio.o: definitions
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.