--- a/tests/Makefile Fri Nov 01 18:33:16 2024 +0100 +++ b/tests/Makefile Sat Nov 02 13:38:51 2024 +0100 @@ -27,10 +27,16 @@ 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_iterator.c \ - test_list.c test_tree.c test_hash_map.c test_properties.c \ - test_printf.c test_mempool.c test_json.c ucxtest.c +SRC = util_allocator.c \ + test_szmul.c test_allocator.c test_utils.c \ + test_compare.c \ + test_string.c test_buffer.c \ + test_hash_key.c test_hash_map.c \ + test_iterator.c test_list.c test_tree.c \ + test_properties.c test_json.c \ + test_printf.c \ + test_mempool.c \ + ucxtest.c OBJ_EXT=.o OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT)) @@ -126,6 +132,11 @@ @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< +$(TEST_DIR)/test_szmul$(OBJ_EXT): test_szmul.c ../src/cx/test.h \ + ../src/cx/common.h ../src/szmul.c + @echo "Compiling $<" + $(CC) -o $@ $(CFLAGS) -c $< + $(TEST_DIR)/test_tree$(OBJ_EXT): test_tree.c ../src/cx/tree.h \ ../src/cx/common.h ../src/cx/collection.h ../src/cx/allocator.h \ ../src/cx/iterator.h ../src/cx/compare.h ../src/cx/test.h \ @@ -135,7 +146,7 @@ $(TEST_DIR)/test_utils$(OBJ_EXT): test_utils.c ../src/cx/test.h \ ../src/cx/common.h ../src/cx/utils.h ../src/cx/buffer.h \ - ../src/cx/allocator.h ../src/szmul.c + ../src/cx/allocator.h @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $<