--- a/src/Makefile Wed Oct 18 21:07:02 2023 +0200 +++ b/src/Makefile Thu Nov 23 23:33:09 2023 +0100 @@ -49,65 +49,72 @@ $(SYMLINK) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR) $(SYMLINK) $(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR) $(libdir)/libucx$(SHLIB_EXT) +FORCE: + $(build_dir)/allocator$(OBJ_EXT): allocator.c cx/allocator.h cx/common.h - echo "Compiling $<" + @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< $(build_dir)/array_list$(OBJ_EXT): array_list.c cx/array_list.h cx/list.h \ cx/common.h cx/collection.h cx/allocator.h cx/iterator.h - echo "Compiling $<" + @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< -$(build_dir)/buffer$(OBJ_EXT): buffer.c cx/buffer.h cx/common.h cx/allocator.h \ - cx/utils.h - echo "Compiling $<" +$(build_dir)/buffer$(OBJ_EXT): buffer.c cx/buffer.h cx/common.h \ + cx/allocator.h cx/utils.h + @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< $(build_dir)/compare$(OBJ_EXT): compare.c cx/compare.h cx/common.h - echo "Compiling $<" + @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< $(build_dir)/hash_key$(OBJ_EXT): hash_key.c cx/hash_key.h cx/common.h - echo "Compiling $<" + @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< -$(build_dir)/hash_map$(OBJ_EXT): hash_map.c cx/hash_map.h cx/map.h cx/common.h \ - cx/collection.h cx/allocator.h cx/iterator.h cx/string.h cx/hash_key.h \ - cx/utils.h - echo "Compiling $<" +$(build_dir)/hash_map$(OBJ_EXT): hash_map.c cx/hash_map.h cx/map.h \ + cx/common.h cx/collection.h cx/allocator.h cx/iterator.h cx/string.h \ + cx/hash_key.h cx/utils.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/utils.h - echo "Compiling $<" +$(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/utils.h + @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< $(build_dir)/list$(OBJ_EXT): list.c cx/list.h cx/common.h cx/collection.h \ cx/allocator.h cx/iterator.h - echo "Compiling $<" + @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< $(build_dir)/map$(OBJ_EXT): map.c cx/map.h cx/common.h cx/collection.h \ cx/allocator.h cx/iterator.h cx/string.h cx/hash_key.h - echo "Compiling $<" + @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< -$(build_dir)/mempool$(OBJ_EXT): mempool.c cx/mempool.h cx/common.h cx/allocator.h \ - cx/utils.h - echo "Compiling $<" +$(build_dir)/mempool$(OBJ_EXT): mempool.c cx/mempool.h cx/common.h \ + cx/allocator.h cx/utils.h + @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< -$(build_dir)/printf$(OBJ_EXT): printf.c cx/printf.h cx/common.h cx/string.h \ - cx/allocator.h - echo "Compiling $<" +$(build_dir)/printf$(OBJ_EXT): printf.c cx/printf.h cx/common.h \ + cx/string.h cx/allocator.h + @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< -$(build_dir)/string$(OBJ_EXT): string.c cx/string.h cx/common.h cx/allocator.h \ - cx/utils.h - echo "Compiling $<" +$(build_dir)/string$(OBJ_EXT): string.c cx/string.h cx/common.h \ + cx/allocator.h cx/utils.h + @echo "Compiling $<" + $(CC) -o $@ $(CFLAGS) -c $< + +$(build_dir)/szmul$(OBJ_EXT): szmul.c + @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< $(build_dir)/utils$(OBJ_EXT): utils.c cx/utils.h cx/common.h - echo "Compiling $<" + @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $<