]> git.lizzy.rs Git - dragonstd.git/blob - test/Makefile
refactoring + documentation + testing + added Map and Refcount
[dragonstd.git] / test / Makefile
1 CC=cc -g -Wall -Wextra -Werror -fmax-errors=1 -o
2 TEST=valgrind --leak-check=full --show-leak-kinds=all --quiet
3
4 run: test_array test_list test_tree test_queue test_flag test_refcount_map
5         $(TEST) ./test_array && \
6         $(TEST) ./test_list  && \
7         $(TEST) ./test_tree  && \
8         $(TEST) ./test_queue && \
9         $(TEST) ./test_flag  && \
10         $(TEST) ./test_refcount_map
11
12 test_array: test_array.c ../array.c ../array.h ../bits/callback.h
13         $(CC) test_array test_array.c ../array.c
14
15 test_list: test_list.c ../list.c ../list.h ../bits/callback.h ../bits/wrappers.h
16         $(CC) test_list test_list.c ../list.c
17
18 test_tree: test_tree.c ../tree.c ../tree.h ../bits/callback.h ../bits/wrappers.h
19         $(CC) test_tree test_tree.c ../tree.c
20
21 test_queue: test_queue.c ../queue.c ../queue.h ../list.c ../list.h ../bits/callback.h ../bits/wrappers.h
22         $(CC) test_queue test_queue.c ../queue.c ../list.c -lpthread
23
24 test_flag: test_flag.c ../flag.c ../flag.h
25         $(CC) test_flag test_flag.c ../flag.c -lpthread
26
27 test_refcount_map: test_refcount_map.c ../refcount.c ../refcount.h ../map.c ../map.h ../tree.c ../tree.h ../bits/callback.h ../bits/wrappers.h
28         $(CC) test_refcount_map test_refcount_map.c ../refcount.c ../map.c ../tree.c -lpthread
29
30 clean:
31         rm -rf test_array test_list test_tree test_queue test_flag test_refcount_map