polygon

Polygon triangulation
git clone git://git.meso-star.fr/polygon.git
Log | Files | Refs | README | LICENSE

commit 054bac4c438db23c83aeee2b826db944cd6315f4
parent ab2700cc8cbbf08765dcfb8fb7b98dbdef28bd2d
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 19 Jul 2023 11:09:33 +0200

Update Makefile targets of .d files

Like .o files, they depend on the contents of the config.mk file,
including the value of build flags such as include directories to
search for headers and macro definitions. Finally, the .d files of the
tests no longer use the inference rule defined for the library and now
rely on its own targets with its own compilation flags used for its
compilation. If in practice this does not change anything, it is more
rigorous

Diffstat:
MMakefile | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -37,7 +37,7 @@ build_library: .config $(DEP) echo "$(LIBNAME_SHARED)";\ fi) -$(OBJ): config.mk +$(DEP) $(OBJ): config.mk $(LIBNAME_SHARED): $(OBJ) $(CC) $(CFLAGS) $(DPDC_CFLAGS) -o $@ $(OBJ) $(LDFLAGS) $(SOFLAGS) $(DPDC_LIBS) @@ -129,6 +129,11 @@ test: build_tests clean_test: @$(SHELL) make.sh clean_test $(TEST_SRC) +$(TEST_DEP) $(TEST_OBJ): config.mk polygon-local.pc + +$(TEST_DEP): + @$(CC) $(CFLAGS) $(POLYGON_CFLAGS) $(RSYS_CFLAGS) -MM -MT "$(@:.d=.o) $@" $(@:.d=.c) -MF $@ + $(TEST_OBJ): config.mk polygon-local.pc $(CC) $(CFLAGS) $(POLYGON_CFLAGS) $(RSYS_CFLAGS) -c $(@:.o=.c) -o $@