tests/Makefile

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

mercurial