tests/Makefile

changeset 780
9965df621652
parent 778
4a72bc4f09f4
child 781
a786b0a89b37
--- a/tests/Makefile	Fri Dec 29 17:17:43 2023 +0100
+++ b/tests/Makefile	Fri Dec 29 17:27:14 2023 +0100
@@ -27,7 +27,8 @@
 
 TEST_DIR=$(build_dir)/tests
 
-SRC = util_allocator.c test_utils.c test_hash_key.c test_string.c ucxtest.c
+SRC = util_allocator.c test_utils.c test_hash_key.c test_string.c \
+	test_printf.c ucxtest.c
 
 OBJ_EXT=.o
 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT))
@@ -59,6 +60,13 @@
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
+$(TEST_DIR)/test_printf$(OBJ_EXT): test_printf.c ../src/cx/test.h \
+ util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \
+ ../src/cx/printf.h ../src/cx/string.h ../src/cx/allocator.h \
+ ../src/cx/buffer.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+
 $(TEST_DIR)/test_string$(OBJ_EXT): test_string.c ../src/cx/test.h \
  util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \
  ../src/cx/string.h ../src/cx/allocator.h

mercurial