-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (56 loc) · 1.67 KB
/
Makefile
File metadata and controls
60 lines (56 loc) · 1.67 KB
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
CXX = clang++
FLAGS = \
-std=c++17 \
-O3 \
-Isrc/ \
-Isrc/third_party/xtensor/ \
-Isrc/third_party/zstd/ \
-Wpedantic \
-Wall \
-Weverything \
-Wextra \
-Wno-poison-system-directories \
-Wno-c++11-extensions \
-Wno-c++98-compat \
-Wno-c++98-compat-pedantic \
-Wno-sign-conversion \
-Wno-sign-compare \
-Wno-padded \
-Wno-format-nonliteral \
-Wno-old-style-cast \
-Wno-covered-switch-default \
-Wno-weak-vtables \
-Wno-extra-semi-stmt \
\
-Wno-unused-macros \
-Wno-used-but-marked-unused \
-Wno-documentation-unknown-command \
-Wno-zero-as-null-pointer-constant \
-Wno-implicit-fallthrough \
-Wno-disabled-macro-expansion \
-Wno-unreachable-code-break \
-Wno-comma \
-Wno-deprecated \
-Wno-extra-semi-stmt \
-Wno-macro-redefined \
-Wno-reserved-macro-identifier \
-Wno-reserved-identifier \
-Wno-missing-variable-declarations \
-Wno-unreachable-code \
-Wno-unreachable-code-return \
SOURCES = `find src/ -type f -name "*.c"` `find src/ -type f -name "*.cc"`
all:
mkdir -p bin/
mkdir -p bin/base/
mkdir -p bin/shuffler/
#$(CXX) $(FLAGS) $(SOURCES) src/base/json_test.cpp -o bin/base/json_test
#$(CXX) $(FLAGS) $(SOURCES) src/base/spanner_test.cpp -o bin/base/spanner_test
#$(CXX) $(FLAGS) $(SOURCES) src/base/string_test.cpp -o bin/base/string_test
#$(CXX) $(FLAGS) $(SOURCES) src/base/world_test.cpp -o bin/base/world_test
#$(CXX) $(FLAGS) $(SOURCES) src/shuffler/bench.cpp -o bin/shuffler/bench
$(CXX) $(FLAGS) $(SOURCES) src/main.cpp -o bin/main
test:
./bin/base/json_test
./bin/base/spanner_test
./bin/base/string_test
./bin/base/world_test