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_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 \ |
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 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 |
102 ../src/cx/printf.h ../src/cx/string.h ../src/cx/allocator.h \ |
102 ../src/cx/printf.h ../src/cx/string.h ../src/cx/allocator.h \ |
103 ../src/cx/buffer.h |
103 ../src/cx/buffer.h |
104 @echo "Compiling $<" |
104 @echo "Compiling $<" |
105 $(CC) -o $@ $(CFLAGS) -c $< |
105 $(CC) -o $@ $(CFLAGS) -c $< |
106 |
106 |
|
107 $(TEST_DIR)/test_properties$(OBJ_EXT): test_properties.c ../src/cx/test.h \ |
|
108 ../src/cx/properties.h ../src/cx/common.h ../src/cx/string.h \ |
|
109 ../src/cx/allocator.h ../src/cx/array_list.h ../src/cx/list.h \ |
|
110 ../src/cx/collection.h ../src/cx/iterator.h ../src/cx/compare.h |
|
111 @echo "Compiling $<" |
|
112 $(CC) -o $@ $(CFLAGS) -c $< |
|
113 |
107 $(TEST_DIR)/test_string$(OBJ_EXT): test_string.c ../src/cx/test.h \ |
114 $(TEST_DIR)/test_string$(OBJ_EXT): test_string.c ../src/cx/test.h \ |
108 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |
115 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ |
109 ../src/cx/string.h ../src/cx/allocator.h |
116 ../src/cx/string.h ../src/cx/allocator.h |
110 @echo "Compiling $<" |
117 @echo "Compiling $<" |
111 $(CC) -o $@ $(CFLAGS) -c $< |
118 $(CC) -o $@ $(CFLAGS) -c $< |