tests/Makefile

changeset 798
7644da6e2d35
parent 789
9b2f5661bebd
child 814
5f9e07d3dd6c
     1.1 --- a/tests/Makefile	Sun Jan 07 11:01:33 2024 +0100
     1.2 +++ b/tests/Makefile	Tue Jan 09 00:01:03 2024 +0100
     1.3 @@ -28,7 +28,7 @@
     1.4  TEST_DIR=$(build_dir)/tests
     1.5  
     1.6  SRC = util_allocator.c test_utils.c test_hash_key.c test_allocator.c \
     1.7 -	test_compare.c test_string.c test_buffer.c \
     1.8 +	test_compare.c test_string.c test_buffer.c test_list.c \
     1.9  	test_printf.c test_mempool.c test_hash_map.c ucxtest.c
    1.10  
    1.11  OBJ_EXT=.o
    1.12 @@ -53,7 +53,8 @@
    1.13  	$(CC) -o $@ $(CFLAGS) -c $<
    1.14  
    1.15  $(TEST_DIR)/test_buffer$(OBJ_EXT): test_buffer.c ../src/cx/test.h \
    1.16 - ../src/cx/buffer.h ../src/cx/common.h ../src/cx/allocator.h
    1.17 + util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \
    1.18 + ../src/cx/buffer.h ../src/cx/allocator.h
    1.19  	@echo "Compiling $<"
    1.20  	$(CC) -o $@ $(CFLAGS) -c $<
    1.21  
    1.22 @@ -76,6 +77,13 @@
    1.23  	@echo "Compiling $<"
    1.24  	$(CC) -o $@ $(CFLAGS) -c $<
    1.25  
    1.26 +$(TEST_DIR)/test_list$(OBJ_EXT): test_list.c ../src/cx/test.h \
    1.27 + util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \
    1.28 + ../src/cx/array_list.h ../src/cx/list.h ../src/cx/collection.h \
    1.29 + ../src/cx/allocator.h ../src/cx/iterator.h ../src/cx/linked_list.h
    1.30 +	@echo "Compiling $<"
    1.31 +	$(CC) -o $@ $(CFLAGS) -c $<
    1.32 +
    1.33  $(TEST_DIR)/test_mempool$(OBJ_EXT): test_mempool.c ../src/cx/test.h \
    1.34   util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \
    1.35   ../src/cx/mempool.h ../src/cx/allocator.h

mercurial