Pristine Ack-5.5
[Ack-5.5.git] / mach / mantra / int / proto.make
1 # $Id: proto.make,v 1.5 1994/06/24 13:09:05 ceriel Exp $
2
3 #PARAMS         do not remove this line!
4
5 SRC_DIR = $(SRC_HOME)/mach/mantra/int
6
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
9 P = $(SRC_DIR)/mloop
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
14 FLTRAP=
15
16 all:    $(INTS) em
17
18 em:     $(SRC_DIR)/em.c
19         $(CC) $(CFLAGS) -o em $(SRC_DIR)/em.c
20
21 tmp.s:  $(FILES)
22         cat $(FILES) > tmp.s
23
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
26
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
29
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
32
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
35
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
38
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
41
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
44
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
47
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
50
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
53
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;; \
58         esac
59
60 compile:        Makefile
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;; \
63                                     *) MACH=m68k4;; \
64                 esac ; echo $$MACH $$AS -r.c -.m -fp '$$*' > compile; chmod +x compile
65 install:        all
66                 -mkdir $b24 $b44
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) ; \
72                 fi
73
74 cmp:            all
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
78
79 clean:
80                 -rm -f *.o *.old a.out em tmp.s $(INTS) compile
81
82 opr:
83         make pr | opr
84
85 pr:
86         @pr $(SRC_DIR)/proto.make $(FILES)