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_iterator.c \ |
31 test_compare.c test_string.c test_buffer.c test_iterator.c \ |
32 test_list.c test_tree.c test_hash_map.c test_properties.c \ |
32 test_list.c test_tree.c test_hash_map.c test_properties.c \ |
33 test_printf.c test_mempool.c ucxtest.c |
33 test_printf.c test_mempool.c test_json.c ucxtest.c |
34 |
34 |
35 OBJ_EXT=.o |
35 OBJ_EXT=.o |
36 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT)) |
36 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT)) |
37 |
37 |
38 all: $(TEST_DIR) $(TEST_DIR)/ucxtest |
38 all: $(TEST_DIR) $(TEST_DIR)/ucxtest |
78 @echo "Compiling $<" |
78 @echo "Compiling $<" |
79 $(CC) -o $@ $(CFLAGS) -c $< |
79 $(CC) -o $@ $(CFLAGS) -c $< |
80 |
80 |
81 $(TEST_DIR)/test_iterator$(OBJ_EXT): test_iterator.c ../src/cx/test.h \ |
81 $(TEST_DIR)/test_iterator$(OBJ_EXT): test_iterator.c ../src/cx/test.h \ |
82 ../src/cx/iterator.h ../src/cx/common.h |
82 ../src/cx/iterator.h ../src/cx/common.h |
|
83 @echo "Compiling $<" |
|
84 $(CC) -o $@ $(CFLAGS) -c $< |
|
85 |
|
86 $(TEST_DIR)/test_json$(OBJ_EXT): test_json.c ../src/cx/test.h \ |
|
87 ../src/cx/json.h ../src/cx/common.h ../src/cx/string.h \ |
|
88 ../src/cx/allocator.h |
83 @echo "Compiling $<" |
89 @echo "Compiling $<" |
84 $(CC) -o $@ $(CFLAGS) -c $< |
90 $(CC) -o $@ $(CFLAGS) -c $< |
85 |
91 |
86 $(TEST_DIR)/test_list$(OBJ_EXT): test_list.c ../src/cx/test.h \ |
92 $(TEST_DIR)/test_list$(OBJ_EXT): test_list.c ../src/cx/test.h \ |
87 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |
93 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |