tests/Makefile

changeset 768
0e1cf2cd500e
parent 767
d31f4d4075dc
child 770
ed710122af44
equal deleted inserted replaced
767:d31f4d4075dc 768:0e1cf2cd500e
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 = test_utils.c ucxtest.c 30 SRC = test_utils.c test_hash_key.c ucxtest.c
31 31
32 OBJ_EXT=.o 32 OBJ_EXT=.o
33 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT)) 33 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT))
34 34
35 all: $(TEST_DIR) $(TEST_DIR)/ucxtest 35 all: $(TEST_DIR) $(TEST_DIR)/ucxtest
42 42
43 $(TEST_DIR): 43 $(TEST_DIR):
44 $(MKDIR) $@ 44 $(MKDIR) $@
45 45
46 FORCE: 46 FORCE:
47
48 $(TEST_DIR)/test_hash_key$(OBJ_EXT): test_hash_key.c ../src/cx/test.h \
49 ../src/cx/hash_key.h ../src/cx/common.h ../src/cx/string.h \
50 ../src/cx/allocator.h
51 @echo "Compiling $<"
52 $(CC) -o $@ $(CFLAGS) -c $<
47 53
48 $(TEST_DIR)/test_map_generics$(OBJ_EXT): test_map_generics.c \ 54 $(TEST_DIR)/test_map_generics$(OBJ_EXT): test_map_generics.c \
49 test_map_generics.h ../src/cx/map.h ../src/cx/common.h \ 55 test_map_generics.h ../src/cx/map.h ../src/cx/common.h \
50 ../src/cx/collection.h ../src/cx/allocator.h ../src/cx/iterator.h \ 56 ../src/cx/collection.h ../src/cx/allocator.h ../src/cx/iterator.h \
51 ../src/cx/string.h ../src/cx/hash_key.h ../src/cx/hash_map.h \ 57 ../src/cx/string.h ../src/cx/hash_key.h ../src/cx/hash_map.h \

mercurial