ack/mach/mantra/int/Makefile

89 lines
2.6 KiB
Makefile
Raw Normal View History

1986-02-11 11:13:41 +00:00
INTS=em2_t--- em2_---- em2_t-cp em2_t-c- em2_t--p \
em4_t--- em4_---- em4_t-cp em4_t-c- em4_t--p
1984-07-23 11:49:00 +00:00
P = mloop
1987-03-31 09:23:20 +00:00
FILES=deffile $P0 $P1 $P2 $P3 $P4 $P5 $P6 $P7 $P8 $P9 $Pa $Pb $Pc
1986-02-11 11:13:41 +00:00
CPP=../../../lib/cpp
b=../../../lib/int
all: $(INTS) em
em: em.c
1987-03-31 09:23:20 +00:00
$(CC) -o em -I../../../h em.c
1986-02-11 11:13:41 +00:00
1987-03-31 09:23:20 +00:00
em2_t---: $(FILES) compile
1986-02-11 11:13:41 +00:00
cat $(FILES) | $(CPP) -P -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=0 >tmp.s
1987-03-31 09:23:20 +00:00
./compile -o em2_t--- tmp.s
1986-02-11 11:13:41 +00:00
rm -f tmp.s
1987-03-31 09:23:20 +00:00
em2_----: $(FILES) compile
1986-02-11 11:13:41 +00:00
cat $(FILES) | $(CPP) -P -Dopfreq=0 -Dlast=0 -Dcount=0 -Dtest=0 -Dflow=0 -Dprof=0 >tmp.s
1987-03-31 09:23:20 +00:00
./compile -o em2_---- tmp.s
1986-02-11 11:13:41 +00:00
rm -f tmp.s
1987-03-31 09:23:20 +00:00
em2_t-cp: $(FILES) compile
1986-02-11 11:13:41 +00:00
cat $(FILES) | $(CPP) -P -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=1 >tmp.s
1987-03-31 09:23:20 +00:00
./compile -o em2_t-cp tmp.s
1986-02-11 11:13:41 +00:00
rm -f tmp.s
1987-03-31 09:23:20 +00:00
em2_t-c-: $(FILES) compile
1986-02-11 11:13:41 +00:00
cat $(FILES) | $(CPP) -P -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=0 >tmp.s
1987-03-31 09:23:20 +00:00
./compile -o em2_t-c- tmp.s
1986-02-11 11:13:41 +00:00
rm -f tmp.s
1987-03-31 09:23:20 +00:00
em2_t--p: $(FILES) compile
1986-02-11 11:13:41 +00:00
cat $(FILES) | $(CPP) -P -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=1 >tmp.s
1987-03-31 09:23:20 +00:00
./compile -o em2_t--p tmp.s
1986-02-11 11:13:41 +00:00
rm -f tmp.s
1987-03-31 09:23:20 +00:00
em4_t---: $(FILES) compile
1986-02-11 11:13:41 +00:00
cat $(FILES) | $(CPP) -P -Dlword -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=0 >tmp.s
1987-03-31 09:23:20 +00:00
./compile -o em4_t--- tmp.s
1986-02-11 11:13:41 +00:00
rm -f tmp.s
1987-03-31 09:23:20 +00:00
em4_----: $(FILES) compile
1986-02-11 11:13:41 +00:00
cat $(FILES) | $(CPP) -P -Dlword -Dopfreq=0 -Dlast=0 -Dcount=0 -Dtest=0 -Dflow=0 -Dprof=0 >tmp.s
1987-03-31 09:23:20 +00:00
./compile -o em4_---- tmp.s
1986-02-11 11:13:41 +00:00
rm -f tmp.s
1987-03-31 09:23:20 +00:00
em4_t-cp: $(FILES) compile
1986-02-11 11:13:41 +00:00
cat $(FILES) | $(CPP) -P -Dlword -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=1 >tmp.s
1987-03-31 09:23:20 +00:00
./compile -o em4_t-cp tmp.s
1986-02-11 11:13:41 +00:00
rm -f tmp.s
1987-03-31 09:23:20 +00:00
em4_t-c-: $(FILES) compile
1986-02-11 11:13:41 +00:00
cat $(FILES) | $(CPP) -P -Dlword -Dopfreq=0 -Dlast=1 -Dcount=1 -Dtest=1 -Dflow=0 -Dprof=0 >tmp.s
1987-03-31 09:23:20 +00:00
./compile -o em4_t-c- tmp.s
1986-02-11 11:13:41 +00:00
rm -f tmp.s
1987-03-31 09:23:20 +00:00
em4_t--p: $(FILES) compile
1986-02-11 11:13:41 +00:00
cat $(FILES) | $(CPP) -P -Dlword -Dopfreq=0 -Dlast=1 -Dcount=0 -Dtest=1 -Dflow=0 -Dprof=1 >tmp.s
1987-03-31 09:23:20 +00:00
./compile -o em4_t--p tmp.s
1986-02-11 11:13:41 +00:00
rm -f tmp.s
1987-03-31 09:23:20 +00:00
compile: Makefile
case `ack_sys` in sun*) MACH=sun2;; pmds*) MACH=pmds4;; \
m68_sysV_0) MACH=mantra;; *) MACH=m68k4;; \
esac ; echo $$MACH -.m '$$*' > compile; chmod +x compile
1986-02-11 11:13:41 +00:00
install: all
-mkdir $b24 $b44
ls em2_???? | sed 's:em2_\(.*\):cp & $b24/em_\1:' | sh
ls em4_???? | sed 's:em4_\(.*\):cp & $b44/em_\1:' | sh
cp em ../../../bin/em
1987-03-02 13:03:17 +00:00
cp em.1 ../../../man/em.1
1986-02-11 11:13:41 +00:00
cmp: all
ls em2_???? | sed 's:em2_\(.*\):cmp & $b24/em_\1:' | sh
ls em4_???? | sed 's:em4_\(.*\):cmp & $b44/em_\1:' | sh
1987-03-02 13:03:17 +00:00
-cmp em ../../../bin/em
-cmp em.1 ../../../man/em.1
1984-12-18 13:12:03 +00:00
clean:
1987-03-31 09:23:20 +00:00
-rm -f *.o *.old a.out em tmp.s $(INTS) compile
1984-12-18 13:12:03 +00:00
opr:
make pr | opr
pr:
1986-02-11 11:13:41 +00:00
@pr `pwd`/makefile
@pr `pwd`/deffile `pwd`/$P?