ack/lang/cem/ctest/makefile.std

54 lines
1 KiB
Plaintext
Raw Permalink Normal View History

1985-02-06 21:25:27 +00:00
.SILENT:
CEM=acc
head:
echo use run
1987-02-24 13:47:23 +00:00
diffs: $P.cc.r $P.cem.r
echo two compiler diff
-diff $P.*.r
diffs3: $P.pcc.r $P.cc.r $P.cem.r
1985-02-06 21:25:27 +00:00
echo three compiler diff
-diff3 $P.*.r | tee diffs
egen: $P.e
echo comparing $P.e
1989-11-20 14:35:23 +00:00
-if test -f $P.e.g ; then diff $P.e $P.e.g ; else echo creating $P.e.g ; cp $P.e $P.e.g ; fi
1985-02-06 21:25:27 +00:00
rm -f $P.e
1988-04-28 13:38:24 +00:00
$P.e: $P.c
1985-02-06 21:25:27 +00:00
$(CEM) -c.e $P.c
$P.pcc.r: $P.pcc
echo running $P.pcc
-$P.pcc >$P.pcc.r
rm -f $P.pcc
$P.cc.r: $P.cc
echo running $P.cc
-$P.cc >$P.cc.r
rm -f $P.cc
$P.cem.r: $P.cem
echo running $P.cem
1989-11-20 14:35:23 +00:00
-$(RUN) $P.cem >$P.cem.r
1985-02-06 21:25:27 +00:00
rm -f $P.cem
$P.pcc: /tmp
echo pcc $P.c
pcc -o $P.pcc $P.c
$P.cc: /tmp
echo cc $P.c
cc -o $P.cc $P.c
$P.cem: /tmp
1989-11-20 14:35:23 +00:00
echo compiling $P.c
$(CEM) -o $P.cem $P.c 1>/dev/null
1985-02-06 21:25:27 +00:00
gen: $P.cem.r
echo comparing $P
1989-11-20 14:35:23 +00:00
-if test -f $P.cem.g ; then diff $P.cem.r $P.cem.g ; else echo creating $P.cem.g ; cp $P.cem.r $P.cem.g ; fi
1985-02-06 21:25:27 +00:00
install cmp:
pr:
1989-11-20 14:35:23 +00:00
pr `pwd`/$P.c `pwd`/$P.cem.g
1985-02-06 21:25:27 +00:00
opr:
make pr | opr
clean:
1988-04-28 13:38:24 +00:00
-rm -f $P.[kmsoe] $P.*.r core a.out *.old em_last em_runinf e.out