commit 877d146292c2429b87856ca18324e424ad140458
parent 296434b5c4fa602710ce542219d9b1f54a220b94
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 20 Oct 2023 16:28:01 +0200
Updated test link edition
Add the library as a dependency of the tests that must be linked to it.
This forces make to rerun the linker if the library is changed.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -174,5 +174,5 @@ test_s2d_scene_view \
test_s2d_scene_view2 \
test_s2d_trace_ray \
test_s2d_trace_ray_3d \
-: config.mk s2d-local.pc
+: config.mk s2d-local.pc $(LIBNAME)
$(CC) -std=c89 $(CFLAGS_EXE) -o $@ src/$@.o $(LDFLAGS_EXE) $(S2D_LIBS) -lm