mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-24 13:53:54 +00:00
Estimated hours taken: 0.1 tests/benchmarks/Mmake: Add `cs' target, to make the .c files.
44 lines
949 B
Plaintext
44 lines
949 B
Plaintext
#-----------------------------------------------------------------------------#
|
|
|
|
main_target: check
|
|
|
|
include ../Mmake
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
# uncomment the following lines to test the performance
|
|
# of the benchmarks (with I/O suppressed)
|
|
# C2INITFLAGS=-w "`extract $(*:_init=) '' BenchEntry`"
|
|
# MLFLAGS=-- -static
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
PROGS= cqueens crypt deriv deriv2 nrev poly primes qsort queens \
|
|
tak query
|
|
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)
|
|
|
|
check: $(EXPS) $(OUTS) $(RESS)
|
|
|
|
cs: $(CS)
|
|
|
|
ss: $(SS)
|
|
|
|
all: $(PROGS)
|
|
|
|
dir.%: $(PROGS) $(SS)
|
|
-mkdir $@
|
|
cp $(PROGS) $(SS) $@
|
|
cp BenchEntry $@
|
|
|
|
#-----------------------------------------------------------------------------#
|