| 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 test_tree.c \ |
31 test_compare.c test_string.c test_buffer.c test_iterator.c \ |
| 32 test_printf.c test_mempool.c test_hash_map.c ucxtest.c |
32 test_list.c test_tree.c test_hash_map.c \ |
| |
33 test_printf.c test_mempool.c ucxtest.c |
| 33 |
34 |
| 34 OBJ_EXT=.o |
35 OBJ_EXT=.o |
| 35 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT)) |
36 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT)) |
| 36 |
37 |
| 37 all: $(TEST_DIR) $(TEST_DIR)/ucxtest |
38 all: $(TEST_DIR) $(TEST_DIR)/ucxtest |
| 72 $(TEST_DIR)/test_hash_map$(OBJ_EXT): test_hash_map.c ../src/cx/test.h \ |
73 $(TEST_DIR)/test_hash_map$(OBJ_EXT): test_hash_map.c ../src/cx/test.h \ |
| 73 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |
74 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |
| 74 ../src/cx/hash_map.h ../src/cx/map.h ../src/cx/collection.h \ |
75 ../src/cx/hash_map.h ../src/cx/map.h ../src/cx/collection.h \ |
| 75 ../src/cx/allocator.h ../src/cx/iterator.h ../src/cx/string.h \ |
76 ../src/cx/allocator.h ../src/cx/iterator.h ../src/cx/string.h \ |
| 76 ../src/cx/hash_key.h |
77 ../src/cx/hash_key.h |
| |
78 @echo "Compiling $<" |
| |
79 $(CC) -o $@ $(CFLAGS) -c $< |
| |
80 |
| |
81 $(TEST_DIR)/test_iterator$(OBJ_EXT): test_iterator.c ../src/cx/test.h \ |
| |
82 ../src/cx/iterator.h ../src/cx/common.h |
| 77 @echo "Compiling $<" |
83 @echo "Compiling $<" |
| 78 $(CC) -o $@ $(CFLAGS) -c $< |
84 $(CC) -o $@ $(CFLAGS) -c $< |
| 79 |
85 |
| 80 $(TEST_DIR)/test_list$(OBJ_EXT): test_list.c ../src/cx/test.h \ |
86 $(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 \ |
87 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |