commit 45ba6d37bfaca51a5994442d50407bd0664bba7f
parent 6c8b0c06c5306fad8f970656ab109cafee888ccc
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 18 Oct 2023 14:26:34 +0200
Fix the Makefile targets used to link tests
These targets must depend on the built library to force its execution in
the event of a library change.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -141,5 +141,5 @@ $(TEST_DEP):
$(TEST_OBJ): config.mk polygon-local.pc
$(CC) $(CFLAGS_EXE) $(POLYGON_CFLAGS) $(RSYS_CFLAGS) -c $(@:.o=.c) -o $@
-test_polygon test_polygon1: config.mk polygon-local.pc
+test_polygon test_polygon1: config.mk polygon-local.pc $(LIBNAME)
$(CC) $(CFLAGS_EXE) -o $@ src/$@.o $(LDFLAGS_EXE) $(POLYGON_LIBS) $(RSYS_LIBS) -lm