diff -r e0300c2c4e95 -r 7644da6e2d35 tests/Makefile --- a/tests/Makefile Sun Jan 07 11:01:33 2024 +0100 +++ b/tests/Makefile Tue Jan 09 00:01:03 2024 +0100 @@ -28,7 +28,7 @@ TEST_DIR=$(build_dir)/tests SRC = util_allocator.c test_utils.c test_hash_key.c test_allocator.c \ - test_compare.c test_string.c test_buffer.c \ + test_compare.c test_string.c test_buffer.c test_list.c \ test_printf.c test_mempool.c test_hash_map.c ucxtest.c OBJ_EXT=.o @@ -53,7 +53,8 @@ $(CC) -o $@ $(CFLAGS) -c $< $(TEST_DIR)/test_buffer$(OBJ_EXT): test_buffer.c ../src/cx/test.h \ - ../src/cx/buffer.h ../src/cx/common.h ../src/cx/allocator.h + util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ + ../src/cx/buffer.h ../src/cx/allocator.h @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< @@ -76,6 +77,13 @@ @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< +$(TEST_DIR)/test_list$(OBJ_EXT): test_list.c ../src/cx/test.h \ + util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ + ../src/cx/array_list.h ../src/cx/list.h ../src/cx/collection.h \ + ../src/cx/allocator.h ../src/cx/iterator.h ../src/cx/linked_list.h + @echo "Compiling $<" + $(CC) -o $@ $(CFLAGS) -c $< + $(TEST_DIR)/test_mempool$(OBJ_EXT): test_mempool.c ../src/cx/test.h \ util_allocator.h ../src/cx/allocator.h ../src/cx/common.h \ ../src/cx/mempool.h ../src/cx/allocator.h