implement pair_sort()
[lbutingtaon.git] / makefile
bloba8ef35ab0b607f3e4c7dc58d2f367879d76b99a9
1 FLAGS_DEFAULT=\
2 -g3 \
3 -Wall \
4 -Wextra \
5 -Wconversion \
6 -Wdouble-promotion \
7 -Wno-unused-parameter \
8 -Wno-unused-function \
9 -Wno-sign-conversion
11 WITH_VALGRIND=$(FLAGS_DEFAULT) -fsanitize=undefined
12 WITH_ASAN=$(FLAGS_DEFAULT) -fsanitize=undefined,address
14 build/list_test: tests/list_test.c lbutingtaon.h
15 cc $(WITH_ASAN) tests/list_test.c -o build/list_test;
16 ./build/list_test;
17 rm build/list_test;
18 cc $(WITH_VALGRIND) tests/list_test.c -o build/list_test;
19 valgrind ./build/list_test;
21 build/string_tests: tests/string_tests.c lbutingtaon.h
22 cc -g3 tests/string_tests.c -o build/string_tests
24 build/hashmap_tests: tests/hashmap_tests.c lbutingtaon.h
25 cc -g3 tests/hashmap_tests.c -o build/hashmap_tests
27 build/array_tests: tests/array_tests.c lbutingtaon.h
28 cc -g3 tests/array_tests.c -o build/array_tests
30 build/hashmap_stresstest: tests/hashmap_stresstest.c
31 cc -g3 tests/hashmap_stresstest.c -o build/hashmap_stresstest;
33 doc: Doxyfile
34 doxygen -g
36 clean:
37 -rm build/*;