improved; now also runs with interpreter

This commit is contained in:
ceriel 1988-04-27 13:01:25 +00:00
parent 20f4177c29
commit 420ca09aee
2 changed files with 10 additions and 9 deletions

View file

@ -9,19 +9,12 @@ egen: tp.e
rm -f tp.e
tp.e: tp.c
$(CEM) -p -c.e tp.c
tp.cem.r: tp.cem
echo running tp
-tp.cem >tp.cem.r
rm -f tp.cem
procentry.m: procentry.c
$(CEM) -c.m procentry.c
tp.cem: tp.c procentry.m
echo $(CEM) tp.c procentry.m
$(CEM) -p -o tp.cem -O tp.c procentry.m
rm -f procentry.[kosm] tp.[kmos]
gen: tp.cem.r
echo comparing tp
-if test -f tp.cem.g ; then diff tp.cem.r tp.cem.g ; else echo creating tp.cem.g ; cp tp.cem.r tp.cem.g ; fi
pr:
@pr `pwd`/*.c tp.cem.g
@ -30,6 +23,6 @@ opr:
make pr | opr
clean:
-rm -f *.[kosme] *.old
-rm -f *.[kosme] *.old em_last em_runinf
transI transM cmpI cmpM:

View file

@ -1,2 +1,10 @@
echo test profiling
make -k "`grep CEM= ../makefile`" ${1-gen}
case ${1-gen} in
gen|tp.cem.r)
make -k "`grep CEM= ../makefile`" tp.cem
make "P=tp" -fsk ../makefile ${1-gen}
;;
*)
make -k "`grep CEM= ../makefile`" $1
;;
esac