-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
39 lines (26 loc) · 1.17 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
CXX= g++
FLAGS = -DPWB_IS_CLFLUSH -DALIGNMENT=64
RELEASE_FLAGS= -Wall -O3 -std=c++1z -DPMEM_STATS
DEBUG_FLAGS= -g -fno-omit-frame-pointer -Wall -std=c++1z
# DEBUG_FLAGS+= -fsanitize=address
INCLUDE= -I./ -I./include -I./datastructures
LIB= -lpthread -lboost_program_options
test-hashtable:
$(CXX) $(DEBUG_FLAGS) $(FLAGS) tests/test-hashtable.cpp -o build/test-hashtable $(INCLUDE) $(LIB)
test-skiplist:
$(CXX) $(DEBUG_FLAGS) $(FLAGS) tests/test-skiplist.cpp -o build/test-skiplist $(INCLUDE) $(LIB)
test-aravind-bst:
$(CXX) $(DEBUG_FLAGS) $(FLAGS) tests/test-aravind-bst.cpp -o build/test-aravind-bst $(INCLUDE) $(LIB)
test-harris-linkedlist:
$(CXX) $(DEBUG_FLAGS) $(FLAGS) tests/test-harris-linkedlist.cpp -o build/test-harris-linkedlist $(INCLUDE) $(LIB)
test: test-aravind-bst test-harris-linkedlist test-skiplist test-hashtable
./build/test-aravind-bst
./build/test-harris-linkedlist
./build/test-skiplist
./build/test-hashtable
bench:
$(CXX) $(RELEASE_FLAGS) $(FLAGS) benchmarks/bench_fixed_size.cpp -o build/bench $(INCLUDE) $(LIB)
bench-test:
$(CXX) $(DEBUG_FLAGS) $(FLAGS) benchmarks/bench_fixed_size.cpp -o build/bench-test $(INCLUDE) $(LIB)
clean:
rm -r build/*