tests/Makefile

changeset 777
e5b29e6f0615
parent 773
bbf2f18b3818
child 778
4a72bc4f09f4
     1.1 --- a/tests/Makefile	Thu Dec 28 19:17:45 2023 +0100
     1.2 +++ b/tests/Makefile	Thu Dec 28 20:37:53 2023 +0100
     1.3 @@ -23,11 +23,11 @@
     1.4  
     1.5  include ../config.mk
     1.6  
     1.7 -CFLAGS += -I../src
     1.8 +CFLAGS += -I../src -Wno-clobbered
     1.9  
    1.10  TEST_DIR=$(build_dir)/tests
    1.11  
    1.12 -SRC = util_allocator.c test_utils.c test_hash_key.c ucxtest.c
    1.13 +SRC = util_allocator.c test_utils.c test_hash_key.c test_string.c ucxtest.c
    1.14  
    1.15  OBJ_EXT=.o
    1.16  OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT))
    1.17 @@ -59,6 +59,10 @@
    1.18  	@echo "Compiling $<"
    1.19  	$(CC) -o $@ $(CFLAGS) -c $<
    1.20  
    1.21 +$(TEST_DIR)/test_string$(OBJ_EXT): test_string.c
    1.22 +	@echo "Compiling $<"
    1.23 +	$(CC) -o $@ $(CFLAGS) -c $<
    1.24 +
    1.25  $(TEST_DIR)/test_utils$(OBJ_EXT): test_utils.c ../src/cx/test.h \
    1.26   ../src/cx/utils.h ../src/cx/common.h ../src/cx/buffer.h \
    1.27   ../src/cx/allocator.h ../src/szmul.c

mercurial