commit 42b970278150facec495a9ff1078f802983ddc9d
parent fae38f2ffd56fa454751de4907af1c4bba56af15
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 19 Jun 2024 17:53:52 +0200
Update Makefile directives for probe list test
The test depends on Star-3DUT, Star-3D and Star-SP, and optionally on
MPI. So far, we haven't explicitly provided compiler flags for its
Star-SP dependencies. It was still compiled without error because of the
solver dependencies. So, even though there were no errors, it was a
problem that this commit corrects.
Diffstat:
1 file changed, 3 insertions(+), 15 deletions(-)
diff --git a/Makefile b/Makefile
@@ -488,33 +488,21 @@ test_sdis_solve_probe_boundary_list \
$(CC) $(TEST_CFLAGS_MPI) $(S3DUT_CFLAGS) -o $@ src/$@.o $(TEST_LIBS_MPI) $(S3DUT_LIBS)
################################################################################
-# Tests based on Star-3D and Star-3DUT with (optional) MPI support
-################################################################################
-src/test_sdis_solve_probe_list.d \
-: config.mk sdis-local.pc
- @$(CC) $(TEST_CFLAGS_MPI) $(S3D_CFLAGS) $(S3DUT_CFLAGS) -MM -MT "$(@:.d=.o) $@" $(@:.d=.c) -MF $@
-
-src/test_sdis_solve_probe_list.o \
-: config.mk sdis-local.pc
- $(CC) $(TEST_CFLAGS_MPI) $(S3D_CFLAGS) $(S3DUT_CFLAGS) -c $(@:.o=.c) -o $@
-
-test_sdis_solve_probe_list \
-: config.mk sdis-local.pc $(LIBNAME) src/test_sdis_utils.o
- $(CC) $(TEST_CFLAGS_MPI) $(S3D_CFLAGS) $(S3DUT_CFLAGS) -o $@ src/$@.o $(TEST_LIBS_MPI) $(S3D_LIBS) $(S3DUT_LIBS)
-
-################################################################################
# Tests based on Star-3D, Star-3DUT and Star-SP with (optional) MPI support
################################################################################
src/test_sdis_custom_solid_path_sampling.d \
+src/test_sdis_solve_probe_list.d \
: config.mk sdis-local.pc
@$(CC) $(TEST_CFLAGS_MPI) $(S3D_CFLAGS) $(S3DUT_CFLAGS) $(SSP_CFLAGS) \
-MM -MT "$(@:.d=.o) $@" $(@:.d=.c) -MF $@
src/test_sdis_custom_solid_path_sampling.o \
+src/test_sdis_solve_probe_list.o \
: config.mk sdis-local.pc
$(CC) $(TEST_CFLAGS_MPI) $(S3D_CFLAGS) $(S3DUT_CFLAGS) $(SSP_CFLAGS) -c $(@:.o=.c) -o $@
test_sdis_custom_solid_path_sampling \
+test_sdis_solve_probe_list \
: config.mk sdis-local.pc $(LIBNAME) src/test_sdis_utils.o
$(CC) $(TEST_CFLAGS_MPI) $(S3D_CFLAGS) $(S3DUT_CFLAGS) $(SSP_CFLAGS) \
-o $@ src/$@.o $(TEST_LIBS_MPI) $(S3D_LIBS) $(S3DUT_LIBS) $(SSP_CFLAGS)