-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
51 lines (43 loc) · 1.15 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
dist/bm.html: dist/bm.csv
criterion-to-html dist/bm.csv
dist/bm.csv: dist/bench
./dist/bench -u dist/bm.csv
dist/bench: Util/Util.hs Util/Dense.hs Util/Random.hs Util/Sparse.hs Util/Suite.hs Util/Bench.hs
ghc -O2 --make Util/Bench.hs -o dist/bench
.PHONY: prof
prof: dist/prof
cat dist/prof
dist/prof: dist/lgl
./dist/lgl +RTS -p
mv lgl.prof dist/prof
dist/lgl: Util/Util.hs Util/Dense.hs Util/Random.hs Util/Sparse.hs Util/Profile.hs
ghc -rtsopts -prof -auto-all -O2 -o dist/lgl Util/Profile.hs
.PHONY: test
test: dist/test
./dist/test +RTS -K100000000000 -RTS
dist/test: Util/Util.hs Util/Dense.hs Util/Random.hs Util/Sparse.hs Util/Test.hs
ghc -rtsopts --make Util/Test.hs -o dist/test
.PHONY: clean
clean:
-rm Frozen/*.o
-rm Frozen/*.hi
-rm Data/Graph/*.hi
-rm Data/Graph/*.o
-rm Data/Graph/Linear/*.hi
-rm Data/Graph/Linear/*.o
-rm Data/Graph/Linear/Query/*.hi
-rm Data/Graph/Linear/Query/*.o
-rm Data/Graph/Linear/Representation/*.hi
-rm Data/Graph/Linear/Representation/*.o
-rm *.o
-rm *.hi
-rm *.html
-rm *.csv
-rm dist/*.o
-rm dist/*.hi
-rm dist/*.html
-rm dist/*.csv
-rm dist/bench
-rm dist/lgl
-rm dist/prof
-rm dist/test