| 781:a786b0a89b37 | 782:74d777455e96 |
|---|---|
| 25 | 25 |
| 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_string.c \ | 30 SRC = util_allocator.c test_utils.c test_hash_key.c test_allocator.c \ |
| 31 test_printf.c test_mempool.c ucxtest.c | 31 test_string.c test_printf.c test_mempool.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 |
| 43 | 43 |
| 44 $(TEST_DIR): | 44 $(TEST_DIR): |
| 45 $(MKDIR) $@ | 45 $(MKDIR) $@ |
| 46 | 46 |
| 47 FORCE: | 47 FORCE: |
| 48 | |
| 49 $(TEST_DIR)/test_allocator$(OBJ_EXT): test_allocator.c ../src/cx/test.h \ | |
| 50 ../src/cx/allocator.h ../src/cx/common.h | |
| 51 @echo "Compiling $<" | |
| 52 $(CC) -o $@ $(CFLAGS) -c $< | |
| 48 | 53 |
| 49 $(TEST_DIR)/test_hash_key$(OBJ_EXT): test_hash_key.c ../src/cx/test.h \ | 54 $(TEST_DIR)/test_hash_key$(OBJ_EXT): test_hash_key.c ../src/cx/test.h \ |
| 50 ../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 \ |
| 51 ../src/cx/allocator.h | 56 ../src/cx/allocator.h |
| 52 @echo "Compiling $<" | 57 @echo "Compiling $<" |