Files
mercury/tests/benchmarks/Mmakefile
Fergus Henderson 6e06050558 Rename Mmake' as Mmakefile', since using the name `Mmake'
Estimated hours taken: 0.25

*/Mmake:
	Rename `Mmake' as `Mmakefile', since using the name `Mmake'
	causes problems on case-insensitive file systems.
1997-09-29 18:05:38 +00:00

66 lines
1.2 KiB
Plaintext

#-----------------------------------------------------------------------------#
main_target: check
include ../Mmake.common
#-----------------------------------------------------------------------------#
# uncomment the following lines to test the performance
# of the benchmarks (with I/O suppressed)
# C2INITFLAGS=-w "`extract $(*:_init=) '' BenchEntry`"
# MLFLAGS=-- -static
#-----------------------------------------------------------------------------#
ifeq ($(HAVE_NUPROLOG),yes)
%.exp: %.nu
{ [ -f $*.inp ] && cat $*.inp; } | ./$< > $@ 2>&1;
endif
#-----------------------------------------------------------------------------#
PROGS= \
cqueens \
crypt \
deriv \
deriv2 \
nrev \
poly \
primes \
qsort \
queens \
query \
tak
DEPENDS=$(PROGS:%=%.depend)
DEPS= $(PROGS:%=%.dep)
OUTS= $(PROGS:%=%.out)
EXPS= $(PROGS:%=%.exp)
RESS= $(PROGS:%=%.res)
SS= $(PROGS:%=%.s)
CS= $(PROGS:%=%.c)
dep: $(DEPS)
depend: $(DEPENDS)
exp: $(EXPS)
check: $(OUTS) $(RESS)
outs: $(OUTS)
cs: $(CS)
ss: $(SS)
all: $(PROGS)
dir.%: $(PROGS) $(SS)
-mkdir $@
cp $(PROGS) $(SS) $@
cp BenchEntry $@
#-----------------------------------------------------------------------------#