tests/Makefile

changeset 970
c9b02747cfc5
parent 967
a58f602ed2fe
child 971
cc204fc56c9c
equal deleted inserted replaced
969:72e5432f6b42 970:c9b02747cfc5
25 25
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 \
31 test_compare.c test_string.c test_buffer.c test_iterator.c \ 31 test_szmul.c test_allocator.c test_utils.c \
32 test_list.c test_tree.c test_hash_map.c test_properties.c \ 32 test_compare.c \
33 test_printf.c test_mempool.c test_json.c ucxtest.c 33 test_string.c test_buffer.c \
34 test_hash_key.c test_hash_map.c \
35 test_iterator.c test_list.c test_tree.c \
36 test_properties.c test_json.c \
37 test_printf.c \
38 test_mempool.c \
39 ucxtest.c
34 40
35 OBJ_EXT=.o 41 OBJ_EXT=.o
36 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT)) 42 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT))
37 43
38 all: $(TEST_DIR) $(TEST_DIR)/ucxtest 44 all: $(TEST_DIR) $(TEST_DIR)/ucxtest
124 ../src/cx/common.h util_allocator.h ../src/cx/allocator.h \ 130 ../src/cx/common.h util_allocator.h ../src/cx/allocator.h \
125 ../src/cx/string.h ../src/cx/allocator.h 131 ../src/cx/string.h ../src/cx/allocator.h
126 @echo "Compiling $<" 132 @echo "Compiling $<"
127 $(CC) -o $@ $(CFLAGS) -c $< 133 $(CC) -o $@ $(CFLAGS) -c $<
128 134
135 $(TEST_DIR)/test_szmul$(OBJ_EXT): test_szmul.c ../src/cx/test.h \
136 ../src/cx/common.h ../src/szmul.c
137 @echo "Compiling $<"
138 $(CC) -o $@ $(CFLAGS) -c $<
139
129 $(TEST_DIR)/test_tree$(OBJ_EXT): test_tree.c ../src/cx/tree.h \ 140 $(TEST_DIR)/test_tree$(OBJ_EXT): test_tree.c ../src/cx/tree.h \
130 ../src/cx/common.h ../src/cx/collection.h ../src/cx/allocator.h \ 141 ../src/cx/common.h ../src/cx/collection.h ../src/cx/allocator.h \
131 ../src/cx/iterator.h ../src/cx/compare.h ../src/cx/test.h \ 142 ../src/cx/iterator.h ../src/cx/compare.h ../src/cx/test.h \
132 util_allocator.h ../src/cx/allocator.h 143 util_allocator.h ../src/cx/allocator.h
133 @echo "Compiling $<" 144 @echo "Compiling $<"
134 $(CC) -o $@ $(CFLAGS) -c $< 145 $(CC) -o $@ $(CFLAGS) -c $<
135 146
136 $(TEST_DIR)/test_utils$(OBJ_EXT): test_utils.c ../src/cx/test.h \ 147 $(TEST_DIR)/test_utils$(OBJ_EXT): test_utils.c ../src/cx/test.h \
137 ../src/cx/common.h ../src/cx/utils.h ../src/cx/buffer.h \ 148 ../src/cx/common.h ../src/cx/utils.h ../src/cx/buffer.h \
138 ../src/cx/allocator.h ../src/szmul.c 149 ../src/cx/allocator.h
139 @echo "Compiling $<" 150 @echo "Compiling $<"
140 $(CC) -o $@ $(CFLAGS) -c $< 151 $(CC) -o $@ $(CFLAGS) -c $<
141 152
142 $(TEST_DIR)/ucxtest$(OBJ_EXT): ucxtest.c ../src/cx/common.h \ 153 $(TEST_DIR)/ucxtest$(OBJ_EXT): ucxtest.c ../src/cx/common.h \
143 ../src/cx/test.h ../src/cx/common.h 154 ../src/cx/test.h ../src/cx/common.h

mercurial