tests/Makefile

changeset 937
10123f4d5618
parent 936
9b9385fcdfd5
--- a/tests/Makefile	Sat Oct 19 16:28:15 2024 +0200
+++ b/tests/Makefile	Sat Oct 19 17:25:11 2024 +0200
@@ -30,7 +30,7 @@
 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 ucxtest.c
+	test_printf.c test_mempool.c test_json.c ucxtest.c
 
 OBJ_EXT=.o
 OBJ=$(SRC:%.c=$(TEST_DIR)/%$(OBJ_EXT))
@@ -83,6 +83,12 @@
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
+$(TEST_DIR)/test_json$(OBJ_EXT): test_json.c ../src/cx/test.h \
+ ../src/cx/json.h ../src/cx/common.h ../src/cx/string.h \
+ ../src/cx/allocator.h
+	@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/compare.h ../src/cx/utils.h ../src/cx/array_list.h \

mercurial