1 # $Id: proto.make,v 1.5 1994/06/24 13:09:05 ceriel Exp $
3 #PARAMS do not remove this line!
5 SRC_DIR = $(SRC_HOME)/mach/mantra/int
7 INTS=em2_t--- em2_---- em2_t-cp em2_t-c- em2_t--p \
8 em4_t--- em4_---- em4_t-cp em4_t-c- em4_t--p
10 FILES=$(SRC_DIR)/deffile $P0 $P1 $P2 $P3 $P4 $P5 $P6 $P7 $P8 $P9 $Pa $Pb $Pc
11 CPP=$(UTIL_HOME)/lib.bin/cpp
12 b=$(TARGET_HOME)/lib.bin/em
13 CFLAGS=-I$(TARGET_HOME)/h -I$(TARGET_HOME)/config -O
19 $(CC) $(CFLAGS) -o em $(SRC_DIR)/em.c
24 em2_t---: tmp.s compile con_float.o
25 ./compile -o em2_t--- -P $(FLTRAP) -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=0 tmp.s con_float.o
27 em2_----: tmp.s compile con_float.o
28 ./compile -o em2_---- -P $(FLTRAP) -Dopfreq=0 -Dlast=0 -Dcount=0 -Dtest=0 -Dflow=0 -Dprof=0 tmp.s con_float.o
30 em2_t-cp: tmp.s compile con_float.o
31 ./compile -o em2_t-cp -P $(FLTRAP) -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=1 tmp.s con_float.o
33 em2_t-c-: tmp.s compile con_float.o
34 ./compile -o em2_t-c- -P $(FLTRAP) -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=0 tmp.s con_float.o
36 em2_t--p: tmp.s compile con_float.o
37 ./compile -o em2_t--p -P $(FLTRAP) -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=1 tmp.s con_float.o
39 em4_t---: tmp.s compile con_float.o
40 ./compile -o em4_t--- -P $(FLTRAP) -Dlword -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=0 tmp.s con_float.o
42 em4_----: tmp.s compile con_float.o
43 ./compile -o em4_---- -P $(FLTRAP) -Dlword -Dopfreq=0 -Dlast=0 -Dcount=0 -Dtest=0 -Dflow=0 -Dprof=0 tmp.s con_float.o
45 em4_t-cp: tmp.s compile con_float.o
46 ./compile -o em4_t-cp -P $(FLTRAP) -Dlword -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=1 tmp.s con_float.o
48 em4_t-c-:tmp.s compile con_float.o
49 ./compile -o em4_t-c- -P $(FLTRAP) -Dlword -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=0 tmp.s con_float.o
51 em4_t--p: tmp.s compile con_float.o
52 ./compile -o em4_t--p -P $(FLTRAP) -Dlword -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=1 tmp.s con_float.o
54 con_float.o: $(SRC_DIR)/con_float.c
55 case `ack_sys` in m68k2|pmds) \
56 acc -I$(SRC_HOME)/mach -mm68k4 -c -L -O $(SRC_DIR)/con_float.c;; \
57 *) acc -c -I$(SRC_HOME)/mach -L -O $(SRC_DIR)/con_float.c;; \
61 case `ack_sys` in sun*) MACH=`ack_sys`; AS=-Ras=$(UTIL_HOME)/lib.bin/m68k2/as;; pmds*) MACH=pmds4;; \
62 m68_sysV_0) MACH=mantra;; \
64 esac ; echo $$MACH $$AS -r.c -.m -fp '$$*' > compile; chmod +x compile
67 ls em2_???? | sed 's:em2_\(.*\):cp & $b24/em_\1:' | sh
68 ls em4_???? | sed 's:em4_\(.*\):cp & $b44/em_\1:' | sh
69 cp em $(TARGET_HOME)/bin/em
70 if [ $(DO_MACHINE_INDEP) = y ] ; \
71 then mk_manpage $(SRC_DIR)/em.1 $(TARGET_HOME) ; \
75 -ls em2_???? | sed 's:em2_\(.*\):cmp & $b24/em_\1:' | sh
76 -ls em4_???? | sed 's:em4_\(.*\):cmp & $b44/em_\1:' | sh
77 -cmp em $(TARGET_HOME)/bin/em
80 -rm -f *.o *.old a.out em tmp.s $(INTS) compile
86 @pr $(SRC_DIR)/proto.make $(FILES)