| 26 CFLAGS += -I../src |
26 CFLAGS += -I../src |
| 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 test_list.c \ |
31 test_compare.c test_string.c test_buffer.c test_list.c test_tree.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 |
| 77 @echo "Compiling $<" |
77 @echo "Compiling $<" |
| 78 $(CC) -o $@ $(CFLAGS) -c $< |
78 $(CC) -o $@ $(CFLAGS) -c $< |
| 79 |
79 |
| 80 $(TEST_DIR)/test_list$(OBJ_EXT): test_list.c ../src/cx/test.h \ |
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 \ |
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 \ |
82 ../src/cx/compare.h ../src/cx/utils.h ../src/cx/array_list.h \ |
| 83 ../src/cx/allocator.h ../src/cx/iterator.h ../src/cx/linked_list.h |
83 ../src/cx/list.h ../src/cx/collection.h ../src/cx/allocator.h \ |
| |
84 ../src/cx/iterator.h ../src/cx/linked_list.h |
| 84 @echo "Compiling $<" |
85 @echo "Compiling $<" |
| 85 $(CC) -o $@ $(CFLAGS) -c $< |
86 $(CC) -o $@ $(CFLAGS) -c $< |
| 86 |
87 |
| 87 $(TEST_DIR)/test_mempool$(OBJ_EXT): test_mempool.c ../src/cx/test.h \ |
88 $(TEST_DIR)/test_mempool$(OBJ_EXT): test_mempool.c ../src/cx/test.h \ |
| 88 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |
89 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |
| 101 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |
102 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |
| 102 ../src/cx/string.h ../src/cx/allocator.h |
103 ../src/cx/string.h ../src/cx/allocator.h |
| 103 @echo "Compiling $<" |
104 @echo "Compiling $<" |
| 104 $(CC) -o $@ $(CFLAGS) -c $< |
105 $(CC) -o $@ $(CFLAGS) -c $< |
| 105 |
106 |
| |
107 $(TEST_DIR)/test_tree$(OBJ_EXT): test_tree.c ../src/cx/tree.h \ |
| |
108 ../src/cx/common.h ../src/cx/test.h |
| |
109 @echo "Compiling $<" |
| |
110 $(CC) -o $@ $(CFLAGS) -c $< |
| |
111 |
| 106 $(TEST_DIR)/test_utils$(OBJ_EXT): test_utils.c ../src/cx/test.h \ |
112 $(TEST_DIR)/test_utils$(OBJ_EXT): test_utils.c ../src/cx/test.h \ |
| 107 ../src/cx/utils.h ../src/cx/common.h ../src/cx/buffer.h \ |
113 ../src/cx/utils.h ../src/cx/common.h ../src/cx/buffer.h \ |
| 108 ../src/cx/allocator.h ../src/szmul.c |
114 ../src/cx/allocator.h ../src/szmul.c |
| 109 @echo "Compiling $<" |
115 @echo "Compiling $<" |
| 110 $(CC) -o $@ $(CFLAGS) -c $< |
116 $(CC) -o $@ $(CFLAGS) -c $< |