-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
79 lines (65 loc) · 2.19 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
CFLAGS=-Wall -O9 -g -DNDEBUG -std=c++17
dktree:
cd include/dktree && g++ $(CFLAGS) *.hpp
cd include/graph && g++ $(CFLAGS) *.hpp
algorithm:
cd include/algorithm && g++ $(CFLAGS) *.hpp
all:
make dktree
make algorithm
clean:
cd include/dktree && rm *.hpp.gch
cd include/algorithm && rm *.hpp.gch
cd test && rm heavyTest
cd test && rm edgeHashTableTests
cd test && rm algorithmTest
cd test && rm dk2treeTest
tests_edge:
cd include/dktree && g++ $(CFLAGS) EdgeHashTable.hpp utils.hpp
cd test && cmake CMakeLists.txt && make edgeHashTableTests && ./edgeHashTableTests
tests_dktree:
make dktree
cd test && cmake CMakeLists.txt && make dk2treeTest && ./dk2treeTest
tests_dktree_all:
make dktree
cd test && cmake CMakeLists.txt && make
cd test && ./edgeHashTableTests &&./dk2treeTest
tests_algorithm:
make algorithm
cd test && cmake CMakeLists.txt && make algorithmTest && ./algorithmTest
tests_heavy:
make dktree
cd test && cmake CMakeLists.txt && make
cd test && ./heavyTest
tests_all:
make tests_dktree_all
make tests_algorithm
valgrind_dktree:
cd test && cmake CMakeLists.txt && make
cd test && valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out-heavy.txt ./heavyTest
sdsl-path="../sdsl-lite"
update_repo:
cd $(sdsl-path) && git pull || exit
git pull --rebase --autostash
# Make sure you commited before
ship:
make update_repo && make tests_all && git push
evaluate:
cd evaluation/delete_edge && make evaluate
cd evaluation/union_op && make evaluate
cd evaluation/list_neighbor && make evaluate
cd evaluation/contains && make evaluate
oops:
#cd evaluation/add_edge && make evaluate
cd evaluation/delay_add_edge && make evaluate
cd evaluation/edge_iterator && make evaluate
cd evaluation/neighbor_iterator && make evaluate
evaluate-dmgen:
cd evaluation/add_edge && ./run_test.sh -dmgen
cd evaluation/delay_add_edge && ./run_test.sh
cd evaluation/delete_edge && ./run_test.sh -dmgen
cd evaluation/union_op && ./run_test.sh -dmgen
cd evaluation/list_neighbor && ./run_test.sh -dmgen
cd evaluation/contains && ./run_test.sh -dmgen
cd evaluation/edge_iterator && ./run_test.sh -dmgen
cd evaluation/neighbor_iterator && ./run_test.sh -dmgen