commit dab10c1455673d23c85ad38a078c18f07a29c1a9
parent 13bb639218dde272177033c54f253de716bb8e98
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 18 Oct 2023 17:10:24 +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, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -179,7 +179,7 @@ test_s3d_scene \
test_s3d_scene_view_aabb \
test_s3d_scene_view \
test_s3d_shape \
-: config.mk s3d-local.pc
+: config.mk s3d-local.pc $(LIBNAME)
$(CC) -std=c89 $(CFLAGS_EXE) -o $@ src/$@.o $(LDFLAGS_EXE) $(S3D_LIBS)
test_s3d_accel_struct_conf \
@@ -192,5 +192,5 @@ test_s3d_sphere_instance \
test_s3d_trace_ray \
test_s3d_trace_ray_instance \
test_s3d_trace_ray_sphere \
-: config.mk s3d-local.pc
+: config.mk s3d-local.pc $(LIBNAME)
$(CC) -std=c89 $(CFLAGS_EXE) -o $@ src/$@.o $(LDFLAGS_EXE) $(S3D_LIBS) -lm