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_compare.c \ |
31 test_string.c test_printf.c test_mempool.c test_hash_map.c ucxtest.c |
32 test_string.c test_printf.c test_mempool.c test_hash_map.c ucxtest.c |
32 |
33 |
33 OBJ_EXT=.o |
34 OBJ_EXT=.o |
34 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT)) |
35 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT)) |
35 |
36 |
46 |
47 |
47 FORCE: |
48 FORCE: |
48 |
49 |
49 $(TEST_DIR)/test_allocator$(OBJ_EXT): test_allocator.c ../src/cx/test.h \ |
50 $(TEST_DIR)/test_allocator$(OBJ_EXT): test_allocator.c ../src/cx/test.h \ |
50 ../src/cx/allocator.h ../src/cx/common.h |
51 ../src/cx/allocator.h ../src/cx/common.h |
|
52 @echo "Compiling $<" |
|
53 $(CC) -o $@ $(CFLAGS) -c $< |
|
54 |
|
55 $(TEST_DIR)/test_compare$(OBJ_EXT): test_compare.c ../src/cx/test.h \ |
|
56 ../src/cx/compare.h ../src/cx/common.h |
51 @echo "Compiling $<" |
57 @echo "Compiling $<" |
52 $(CC) -o $@ $(CFLAGS) -c $< |
58 $(CC) -o $@ $(CFLAGS) -c $< |
53 |
59 |
54 $(TEST_DIR)/test_hash_key$(OBJ_EXT): test_hash_key.c ../src/cx/test.h \ |
60 $(TEST_DIR)/test_hash_key$(OBJ_EXT): test_hash_key.c ../src/cx/test.h \ |
55 ../src/cx/hash_key.h ../src/cx/common.h ../src/cx/string.h \ |
61 ../src/cx/hash_key.h ../src/cx/common.h ../src/cx/string.h \ |