-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
30 lines (20 loc) · 1.03 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
CXXFLAGS = -Wall -O3
all: split1 split2 split6 split7 split8 split9 splitc1 splitc2 splitc3 split_subparser
split7: split7.cpp | deps/strtk
$(CXX) $(LDFLAGS) -Ideps/strtk/ $(CXXFLAGS) split7.cpp -o split7
split_subparser: split_subparser.cpp | deps/json_parser
$(CXX) $(LDFLAGS) -Ideps/json_parser/include/ $(CXXFLAGS) split_subparser.cpp -o split_subparser
.PHONY: clean update-deps
clean:
@rm -f split1 split2 split6 split7 split8 split9 splitc1 splitc2 splitc3 split_subparser
update-deps: deps
git --git-dir=deps/strtk/.git/ --work-tree=deps/strtk/ fetch origin
git --git-dir=deps/strtk/.git/ --work-tree=deps/strtk/ reset --hard origin/master
git --git-dir=deps/json_parser/.git/ --work-tree=deps/json_parser/ fetch origin
git --git-dir=deps/json_parser/.git/ --work-tree=deps/json_parser/ reset --hard origin/master
deps:
mkdir deps
deps/strtk: | deps
git clone --depth 1 https://github.com/ArashPartow/strtk.git deps/strtk
deps/json_parser: deps
git clone --depth 1 https://github.com/VerizonDigital/json_parser deps/json_parser