tests/Makefile

changeset 777
e5b29e6f0615
parent 773
bbf2f18b3818
child 778
4a72bc4f09f4
--- a/tests/Makefile	Thu Dec 28 19:17:45 2023 +0100
+++ b/tests/Makefile	Thu Dec 28 20:37:53 2023 +0100
@@ -23,11 +23,11 @@
 
 include ../config.mk
 
-CFLAGS += -I../src
+CFLAGS += -I../src -Wno-clobbered
 
 TEST_DIR=$(build_dir)/tests
 
-SRC = util_allocator.c test_utils.c test_hash_key.c ucxtest.c
+SRC = util_allocator.c test_utils.c test_hash_key.c test_string.c ucxtest.c
 
 OBJ_EXT=.o
 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT))
@@ -59,6 +59,10 @@
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
+$(TEST_DIR)/test_string$(OBJ_EXT): test_string.c
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+
 $(TEST_DIR)/test_utils$(OBJ_EXT): test_utils.c ../src/cx/test.h \
  ../src/cx/utils.h ../src/cx/common.h ../src/cx/buffer.h \
  ../src/cx/allocator.h ../src/szmul.c

mercurial