-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 743 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 743 Bytes
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
default:
@echo "Please make a specific target" >&2
@false
DIRS=$(wildcard */tests/)
BENCHES=$(addsuffix bench,$(DIRS))
BASEDIRS=$(DIRS:/tests/=)
generate:
@for x in $(BASEDIRS); do (cd $$x && make generate); done
compile:
@for x in $(BASEDIRS); do (cd $$x/tests && make compile); done
%/bench:
[ -f 4gb ] || ./make_random_data.sh
cd $$(dirname $@) && make unopt bench
results.txt: $(BENCHES)
rm -f results.txt
@for x in $(BASEDIRS); do (cd $$x/tests && ./parse_bench.py bench unopt) | tee -a results.txt; done
clocs.txt:
rm -f clocs.txt
@echo "port\tc loc\tfact loc\tassume\tdeclassify\textern" | tee clocs.txt
@for x in $(BASEDIRS); do (cd $$x/tests && ./cloc.sh) | tee -a clocs.txt; done
bench: results.txt
loc: clocs.txt