forked from Tessil/hash-table-shootout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
91 lines (67 loc) · 3.94 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
80
81
82
83
84
85
86
87
88
89
90
CXX=g++
CXX_FLAGS=-O3 -march=native -std=c++14 -DNDEBUG
#CXX_FLAGS=-O0 -g3 -march=native -std=c++14
FILES=build/oha_hash_table \
build/std_unordered_map \
build/boost_unordered_map \
build/google_sparse_hash_map \
build/google_dense_hash_map \
build/google_dense_hash_map_mlf_0_9 \
build/ska_flat_hash_map \
build/ska_flat_hash_map_power_of_two \
build/tsl_hopscotch_map \
build/tsl_hopscotch_map_mlf_0_5 \
build/tsl_hopscotch_map_store_hash \
build/tsl_robin_map \
build/tsl_robin_map_mlf_0_9 \
build/tsl_robin_map_store_hash \
build/tsl_robin_pg_map \
build/tsl_sparse_map \
build/tsl_ordered_map \
build/spp_sparse_hash_map
# build/qt_qhash
# build/emilib_hash_map
all: $(FILES)
.PHONY: clean
clean:
rm -f $(FILES)
build/oha_hash_table: src/oha_hash_table.cc src/template.c
$(CXX) $(CXX_FLAGS) -fpermissive -lm -o build/oha_hash_table src/oha_hash_table.cc
build/std_unordered_map: src/std_unordered_map.cc src/template.c
$(CXX) $(CXX_FLAGS) -lm -o build/std_unordered_map src/std_unordered_map.cc
build/boost_unordered_map: src/boost_unordered_map.cc src/template.c
$(CXX) $(CXX_FLAGS) -lm -o build/boost_unordered_map src/boost_unordered_map.cc
build/google_sparse_hash_map: src/google_sparse_hash_map.cc src/template.c
$(CXX) $(CXX_FLAGS) -lm -o build/google_sparse_hash_map src/google_sparse_hash_map.cc
build/google_dense_hash_map: src/google_dense_hash_map.cc src/template.c
$(CXX) $(CXX_FLAGS) -lm -o build/google_dense_hash_map src/google_dense_hash_map.cc
build/google_dense_hash_map_mlf_0_9: src/google_dense_hash_map_mlf_0_9.cc src/template.c
$(CXX) $(CXX_FLAGS) -lm -o build/google_dense_hash_map_mlf_0_9 src/google_dense_hash_map_mlf_0_9.cc
#build/qt_qhash: src/qt_qhash.cc src/template.c
# $(CXX) $(CXX_FLAGS) -fPIC -lm `pkg-config --cflags --libs Qt5Core` -o build/qt_qhash src/qt_qhash.cc
build/spp_sparse_hash_map: src/spp_sparse_hash_map.cc src/template.c
$(CXX) $(CXX_FLAGS) -Isparsepp -o build/spp_sparse_hash_map src/spp_sparse_hash_map.cc
#build/emilib_hash_map: src/emilib_hash_map.cc src/template.c
# $(CXX) $(CXX_FLAGS) -Iemilib -o build/emilib_hash_map src/emilib_hash_map.cc
build/ska_flat_hash_map: src/ska_flat_hash_map.cc src/template.c
$(CXX) $(CXX_FLAGS) -Iflat_hash_map -o build/ska_flat_hash_map src/ska_flat_hash_map.cc
build/ska_flat_hash_map_power_of_two: src/ska_flat_hash_map_power_of_two.cc src/template.c
$(CXX) $(CXX_FLAGS) -Iflat_hash_map -o build/ska_flat_hash_map_power_of_two src/ska_flat_hash_map_power_of_two.cc
build/tsl_hopscotch_map: src/tsl_hopscotch_map.cc src/template.c
$(CXX) $(CXX_FLAGS) -Ihopscotch-map -o build/tsl_hopscotch_map src/tsl_hopscotch_map.cc
build/tsl_hopscotch_map_mlf_0_5: src/tsl_hopscotch_map_mlf_0_5.cc src/template.c
$(CXX) $(CXX_FLAGS) -Ihopscotch-map -o build/tsl_hopscotch_map_mlf_0_5 src/tsl_hopscotch_map_mlf_0_5.cc
build/tsl_hopscotch_map_store_hash: src/tsl_hopscotch_map_store_hash.cc src/template.c
$(CXX) $(CXX_FLAGS) -Ihopscotch-map -o build/tsl_hopscotch_map_store_hash src/tsl_hopscotch_map_store_hash.cc
build/tsl_robin_map: src/tsl_robin_map.cc src/template.c
$(CXX) $(CXX_FLAGS) -Irobin-map -o build/tsl_robin_map src/tsl_robin_map.cc
build/tsl_robin_map_mlf_0_9: src/tsl_robin_map_mlf_0_9.cc src/template.c
$(CXX) $(CXX_FLAGS) -Irobin-map -o build/tsl_robin_map_mlf_0_9 src/tsl_robin_map_mlf_0_9.cc
build/tsl_robin_map_store_hash: src/tsl_robin_map_store_hash.cc src/template.c
$(CXX) $(CXX_FLAGS) -Irobin-map -o build/tsl_robin_map_store_hash src/tsl_robin_map_store_hash.cc
build/tsl_robin_pg_map: src/tsl_robin_pg_map.cc src/template.c
$(CXX) $(CXX_FLAGS) -Irobin-map -o build/tsl_robin_pg_map src/tsl_robin_pg_map.cc
build/tsl_sparse_map: src/tsl_sparse_map.cc src/template.c
$(CXX) $(CXX_FLAGS) -Isparse-map -o build/tsl_sparse_map src/tsl_sparse_map.cc
build/tsl_ordered_map: src/tsl_ordered_map.cc src/template.c
$(CXX) $(CXX_FLAGS) -Iordered-map -o build/tsl_ordered_map src/tsl_ordered_map.cc