/
Makefile
39 lines (28 loc) · 820 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
OCAMLBUILD=ocamlbuild -use-ocamlfind -tag debug
TARGETS=src/smbc.native src/smbc.byte
BINDIR ?= /usr/bin/
all: build
build:
$(OCAMLBUILD) $(TARGETS)
clean:
$(OCAMLBUILD) -clean
install: build
cp smbc.native $(BINDIR)/smbc
test: build
frogtest run -c test.toml --meta `git rev-parse HEAD`
watch:
while find src/ -print0 | xargs -0 inotifywait -e delete_self -e modify ; do \
echo "============ at `date` ==========" ; \
sleep 0.1; \
make all; \
done
PERF_CONF = test_perf.toml
perf_compare: build $(PERF_CONF)
frogtest run -c $(PERF_CONF) --no-caching
frogtest plot -c $(PERF_CONF) -o perf.pdf
frogtest csv -o perf.csv
benchs: build
frogtest run -c benchmarks/smbc.toml --meta `git rev-parse HEAD`
hbmc_benchs: build
frogtest run -c benchs_hbmc/conf.toml
.PHONY: watch benchs clean build test