--- a/src/Makefile Sat Oct 19 16:28:15 2024 +0200 +++ b/src/Makefile Sat Oct 19 17:25:11 2024 +0200 @@ -25,7 +25,7 @@ SRC = allocator.c array_list.c buffer.c compare.c hash_key.c hash_map.c \ iterator.c linked_list.c list.c map.c mempool.c printf.c string.c tree.c \ - utils.c properties.c + utils.c properties.c json.c OBJ_EXT=.o OBJ=$(SRC:%.c=$(build_dir)/%$(OBJ_EXT)) @@ -99,6 +99,11 @@ @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< +$(build_dir)/json$(OBJ_EXT): json.c cx/json.h cx/common.h cx/string.h \ + cx/allocator.h cx/allocator.h + @echo "Compiling $<" + $(CC) -o $@ $(CFLAGS) -c $< + $(build_dir)/linked_list$(OBJ_EXT): linked_list.c cx/linked_list.h \ cx/common.h cx/list.h cx/collection.h cx/allocator.h cx/iterator.h \ cx/compare.h cx/utils.h cx/compare.h @@ -126,8 +131,8 @@ $(CC) -o $@ $(CFLAGS) -c $< $(build_dir)/properties$(OBJ_EXT): properties.c cx/properties.h \ - cx/common.h cx/string.h cx/allocator.h cx/array_list.h cx/list.h \ - cx/collection.h cx/iterator.h cx/compare.h + cx/common.h cx/string.h cx/allocator.h cx/map.h cx/collection.h \ + cx/iterator.h cx/compare.h cx/hash_key.h cx/array_list.h cx/list.h @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $<