tests/Makefile

changeset 782
74d777455e96
parent 781
a786b0a89b37
child 785
bb18daa62d5f
--- a/tests/Makefile	Sat Dec 30 14:11:20 2023 +0100
+++ b/tests/Makefile	Sat Dec 30 14:32:42 2023 +0100
@@ -27,8 +27,8 @@
 
 TEST_DIR=$(build_dir)/tests
 
-SRC = util_allocator.c test_utils.c test_hash_key.c test_string.c \
-	test_printf.c test_mempool.c ucxtest.c
+SRC = util_allocator.c test_utils.c test_hash_key.c test_allocator.c \
+	test_string.c test_printf.c test_mempool.c ucxtest.c
 
 OBJ_EXT=.o
 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT))
@@ -46,6 +46,11 @@
 
 FORCE:
 
+$(TEST_DIR)/test_allocator$(OBJ_EXT): test_allocator.c ../src/cx/test.h \
+ ../src/cx/allocator.h ../src/cx/common.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+
 $(TEST_DIR)/test_hash_key$(OBJ_EXT): test_hash_key.c ../src/cx/test.h \
  ../src/cx/hash_key.h ../src/cx/common.h ../src/cx/string.h \
  ../src/cx/allocator.h

mercurial