summaryrefslogtreecommitdiff
path: root/bench/Makefile
blob: 6adff708497531fb242d25f2dbcece159e5d3e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
BIN=runner
OBJ=runner.o
BENCHSRC=intsort.myr \
	 copious-allocs.myr \
	 sha1-compute.myr \
	 bigfactorial.myr \
	 mandelbrot.myr 

include ../config.mk
include ../mk/c.mk

bench: runner cleanbuild
	./runner $(BENCHSRC:.myr=)

.PHONY: cleanbuild
cleanbuild:
	rm -f $(BENCHSRC:.myr=) $(BENCHSRC:.myr=.o) $(BENCHSRC:.myr=.use)
	@for i in $(BENCHSRC:.myr=); do \
	    ../myrbuild/myrbuild -b $$i  -C../6/6m -M../muse/muse -I../libstd -r../rt/_myrrt.o $$i.myr; \
	done