tests/Makefile

changeset 785
bb18daa62d5f
parent 782
74d777455e96
child 787
d0f02310aa47
equal deleted inserted replaced
784:ba5faf85dec6 785:bb18daa62d5f
26 CFLAGS += -I../src -Wno-clobbered 26 CFLAGS += -I../src -Wno-clobbered
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_string.c test_printf.c test_mempool.c ucxtest.c 31 test_string.c test_printf.c test_mempool.c test_hash_map.c ucxtest.c
32 32
33 OBJ_EXT=.o 33 OBJ_EXT=.o
34 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT)) 34 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT))
35 35
36 all: $(TEST_DIR) $(TEST_DIR)/ucxtest 36 all: $(TEST_DIR) $(TEST_DIR)/ucxtest
55 ../src/cx/hash_key.h ../src/cx/common.h ../src/cx/string.h \ 55 ../src/cx/hash_key.h ../src/cx/common.h ../src/cx/string.h \
56 ../src/cx/allocator.h 56 ../src/cx/allocator.h
57 @echo "Compiling $<" 57 @echo "Compiling $<"
58 $(CC) -o $@ $(CFLAGS) -c $< 58 $(CC) -o $@ $(CFLAGS) -c $<
59 59
60 $(TEST_DIR)/test_map_generics$(OBJ_EXT): test_map_generics.c \ 60 $(TEST_DIR)/test_hash_map$(OBJ_EXT): test_hash_map.c ../src/cx/test.h \
61 test_map_generics.h ../src/cx/map.h ../src/cx/common.h \ 61 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \
62 ../src/cx/collection.h ../src/cx/allocator.h ../src/cx/iterator.h \ 62 ../src/cx/hash_map.h ../src/cx/map.h ../src/cx/collection.h \
63 ../src/cx/string.h ../src/cx/hash_key.h ../src/cx/hash_map.h \ 63 ../src/cx/allocator.h ../src/cx/iterator.h ../src/cx/string.h \
64 ../src/cx/map.h 64 ../src/cx/hash_key.h
65 @echo "Compiling $<" 65 @echo "Compiling $<"
66 $(CC) -o $@ $(CFLAGS) -c $< 66 $(CC) -o $@ $(CFLAGS) -c $<
67 67
68 $(TEST_DIR)/test_mempool$(OBJ_EXT): test_mempool.c ../src/cx/test.h \ 68 $(TEST_DIR)/test_mempool$(OBJ_EXT): test_mempool.c ../src/cx/test.h \
69 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ 69 util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \

mercurial