commit 5006957865c6a38b51147be27016fa22ccb0adca
parent 1b34204094b24ab68c9fa5a2fcdc60727ccaa311
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 19 Oct 2023 15:59:58 +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, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -162,13 +162,13 @@ $(TEST_DEP): config.mk smc-local.pc
$(TEST_OBJ): config.mk smc-local.pc
$(CC) $(CFLAGS_EXE) $(SMC_CFLAGS) -c $(@:.o=.c) -o $@
-test_smc_device: config.mk smc-local.pc
+test_smc_device: config.mk smc-local.pc $(LIBNAME)
$(CC) $(CFLAGS_EXE) -o $@ src/$@.o $(LDFLAGS_EXE) $(SMC_LIBS) -fopenmp
test_smc_doubleN \
test_smc_errors \
test_smc_solve \
-: config.mk smc-local.pc
+: config.mk smc-local.pc $(LIBNAME)
$(CC) $(CFLAGS_EXE) -o $@ src/$@.o $(LDFLAGS_EXE) $(SMC_LIBS) -lm
$(TEST_DEP_S3D): config.mk smc-local.pc
@@ -178,5 +178,5 @@ $(TEST_DEP_S3D): config.mk smc-local.pc
$(TEST_OBJ_S3D): config.mk smc-local.pc
$(CC) $(CFLAGS_EXE) $(SMC_CFLAGS) $(S3D_CFLAGS) -c $(@:.o=.c) -o $@
-test_smc_light_path: config.mk smc-local.pc
+test_smc_light_path: config.mk smc-local.pc $(LIBNAME)
$(CC) $(CFLAGS_EXE) $(SMC_CFLAGS) $(S3D_CFLAGS) -o $@ src/$@.o $(LDFLAGS_EXE) $(SMC_LIBS) $(S3D_LIBS) -lm