tests/Makefile

changeset 770
ed710122af44
parent 768
0e1cf2cd500e
child 773
bbf2f18b3818
equal deleted inserted replaced
769:b53e0e003d7e 770:ed710122af44
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 test_hash_key.c ucxtest.c 30 SRC = util_allocator.c 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
67 67
68 $(TEST_DIR)/ucxtest$(OBJ_EXT): ucxtest.c ../src/cx/test.h 68 $(TEST_DIR)/ucxtest$(OBJ_EXT): ucxtest.c ../src/cx/test.h
69 @echo "Compiling $<" 69 @echo "Compiling $<"
70 $(CC) -o $@ $(CFLAGS) -c $< 70 $(CC) -o $@ $(CFLAGS) -c $<
71 71
72 $(TEST_DIR)/util_allocator$(OBJ_EXT): util_allocator.c util_allocator.h \
73 ../src/cx/allocator.h ../src/cx/common.h ../src/cx/test.h
74 @echo "Compiling $<"
75 $(CC) -o $@ $(CFLAGS) -c $<
76

mercurial