-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
55 lines (38 loc) · 1.78 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
LIBS=-lgtest -lxml2 -pthread
FLAGS=-pedantic-errors -Wno-undef-prefix -Wno-old-style-cast -Wall -Werror -Wextra -ansi -Wshadow -Wstrict-aliasing -O3 -std=c++17 -fno-rtti -Wno-sign-compare -I/usr/include/libxml2
CLANG_FLAGS=-fno-omit-frame-pointer -g -fsanitize=address
SOURCES=tests/core.cpp tests/main.cpp
test: xml11/xml11.hpp tests/main.cpp
$(CXX) ${FLAGS} ${CLANG_FLAGS} ${SOURCES} -Ixml11 ${LIBS} -o test
example0: xml11/xml11.hpp
$(CXX) ${FLAGS} ${CLANG_FLAGS} -Ixml11 ${LIBS} examples/examples0.cpp -o example0
example1:
$(CXX) ${FLAGS} ${CLANG_FLAGS} -Ixml11 ${LIBS} examples/examples1.cpp -o example1
example2:
$(CXX) ${FLAGS} ${CLANG_FLAGS} -Ixml11 ${LIBS} examples/examples2.cpp -o example2
example3:
$(CXX) ${FLAGS} ${CLANG_FLAGS} -Ixml11 ${LIBS} examples/examples3.cpp -o example3
example4:
$(CXX) ${FLAGS} ${CLANG_FLAGS} -Ixml11 ${LIBS} examples/examples4.cpp -o example4
example5:
$(CXX) ${FLAGS} ${CLANG_FLAGS} -Ixml11 ${LIBS} examples/examples5.cpp -o example5
example6:
$(CXX) ${FLAGS} ${CLANG_FLAGS} -Ixml11 ${LIBS} examples/examples6.cpp -o example6
example7:
$(CXX) ${FLAGS} ${CLANG_FLAGS} -Ixml11 ${LIBS} examples/examples7.cpp -o example7
example8:
$(CXX) ${FLAGS} ${CLANG_FLAGS} -Ixml11 ${LIBS} examples/examples8.cpp -o example8
example9:
$(CXX) ${FLAGS} ${CLANG_FLAGS} -Ixml11 ${LIBS} examples/examples9.cpp -o example9
example10:
$(CXX) ${FLAGS} ${CLANG_FLAGS} -Ixml11 ${LIBS} examples/examples10.cpp -o example10
example11:
$(CXX) ${FLAGS} ${CLANG_FLAGS} -Ixml11 ${LIBS} examples/examples11.cpp -o example11
example12:
$(CXX) ${FLAGS} ${CLANG_FLAGS} -Ixml11 ${LIBS} examples/examples12.cpp -o example12
example13:
$(CXX) ${FLAGS} ${CLANG_FLAGS} -Ixml11 ${LIBS} examples/examples13.cpp -o example13
clean:
if [ -e test ]; then rm test; fi
rm -fr *.o
.PHONY: clean