| 26 CFLAGS += -I../src -Wno-clobbered |
26 CFLAGS += -I../src -Wno-clobbered |
| 27 |
27 |
| 28 TEST_DIR=$(build_dir)/tests |
28 TEST_DIR=$(build_dir)/tests |
| 29 |
29 |
| 30 SRC = util_allocator.c test_utils.c test_hash_key.c test_allocator.c \ |
30 SRC = util_allocator.c test_utils.c test_hash_key.c test_allocator.c \ |
| 31 test_compare.c test_string.c test_buffer.c \ |
31 test_compare.c test_string.c test_buffer.c test_list.c \ |
| 32 test_printf.c test_mempool.c test_hash_map.c ucxtest.c |
32 test_printf.c test_mempool.c test_hash_map.c ucxtest.c |
| 33 |
33 |
| 34 OBJ_EXT=.o |
34 OBJ_EXT=.o |
| 35 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT)) |
35 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT)) |
| 36 |
36 |
| 51 ../src/cx/allocator.h ../src/cx/common.h |
51 ../src/cx/allocator.h ../src/cx/common.h |
| 52 @echo "Compiling $<" |
52 @echo "Compiling $<" |
| 53 $(CC) -o $@ $(CFLAGS) -c $< |
53 $(CC) -o $@ $(CFLAGS) -c $< |
| 54 |
54 |
| 55 $(TEST_DIR)/test_buffer$(OBJ_EXT): test_buffer.c ../src/cx/test.h \ |
55 $(TEST_DIR)/test_buffer$(OBJ_EXT): test_buffer.c ../src/cx/test.h \ |
| 56 ../src/cx/buffer.h ../src/cx/common.h ../src/cx/allocator.h |
56 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |
| |
57 ../src/cx/buffer.h ../src/cx/allocator.h |
| 57 @echo "Compiling $<" |
58 @echo "Compiling $<" |
| 58 $(CC) -o $@ $(CFLAGS) -c $< |
59 $(CC) -o $@ $(CFLAGS) -c $< |
| 59 |
60 |
| 60 $(TEST_DIR)/test_compare$(OBJ_EXT): test_compare.c ../src/cx/test.h \ |
61 $(TEST_DIR)/test_compare$(OBJ_EXT): test_compare.c ../src/cx/test.h \ |
| 61 ../src/cx/compare.h ../src/cx/common.h |
62 ../src/cx/compare.h ../src/cx/common.h |
| 71 $(TEST_DIR)/test_hash_map$(OBJ_EXT): test_hash_map.c ../src/cx/test.h \ |
72 $(TEST_DIR)/test_hash_map$(OBJ_EXT): test_hash_map.c ../src/cx/test.h \ |
| 72 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |
73 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |
| 73 ../src/cx/hash_map.h ../src/cx/map.h ../src/cx/collection.h \ |
74 ../src/cx/hash_map.h ../src/cx/map.h ../src/cx/collection.h \ |
| 74 ../src/cx/allocator.h ../src/cx/iterator.h ../src/cx/string.h \ |
75 ../src/cx/allocator.h ../src/cx/iterator.h ../src/cx/string.h \ |
| 75 ../src/cx/hash_key.h |
76 ../src/cx/hash_key.h |
| |
77 @echo "Compiling $<" |
| |
78 $(CC) -o $@ $(CFLAGS) -c $< |
| |
79 |
| |
80 $(TEST_DIR)/test_list$(OBJ_EXT): test_list.c ../src/cx/test.h \ |
| |
81 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |
| |
82 ../src/cx/array_list.h ../src/cx/list.h ../src/cx/collection.h \ |
| |
83 ../src/cx/allocator.h ../src/cx/iterator.h ../src/cx/linked_list.h |
| 76 @echo "Compiling $<" |
84 @echo "Compiling $<" |
| 77 $(CC) -o $@ $(CFLAGS) -c $< |
85 $(CC) -o $@ $(CFLAGS) -c $< |
| 78 |
86 |
| 79 $(TEST_DIR)/test_mempool$(OBJ_EXT): test_mempool.c ../src/cx/test.h \ |
87 $(TEST_DIR)/test_mempool$(OBJ_EXT): test_mempool.c ../src/cx/test.h \ |
| 80 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |
88 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |