commit ba779062580dd8cf61182d7a8c750c8fd6b82894 parent abf973b520cd5f33f0915a40bf89bb54a3b07b90 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Thu, 19 Oct 2023 15:56:09 +0200 Set the -fopenmp flag as a dependency flag Diffstat:
| M | Makefile | | | 6 | +++--- |
| M | config.mk | | | 4 | ++-- |
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile @@ -44,7 +44,7 @@ build_library: .config $(DEP) $(DEP) $(OBJ): config.mk $(LIBNAME_SHARED): $(OBJ) - $(CC) $(CFLAGS) $(DPDC_CFLAGS) -fopenmp -o $@ $(OBJ) $(LDFLAGS) $(SOFLAGS) $(DPDC_LIBS) + $(CC) $(CFLAGS) $(DPDC_CFLAGS) -o $@ $(OBJ) $(LDFLAGS) $(SOFLAGS) $(DPDC_LIBS) $(LIBNAME_STATIC): libsmc.o $(AR) -rc $@ $? @@ -63,10 +63,10 @@ libsmc.o: $(OBJ) .SUFFIXES: .c .d .o .c.d: - @$(CC) $(CFLAGS) $(DPDC_CFLAGS) -fopenmp -MM -MT "$(@:.d=.o) $@" $< -MF $@ + @$(CC) $(CFLAGS) $(DPDC_CFLAGS) -MM -MT "$(@:.d=.o) $@" $< -MF $@ .c.o: - $(CC) $(CFLAGS) $(DPDC_CFLAGS) -fopenmp -DSMC_SHARED_BUILD -c $< -o $@ + $(CC) $(CFLAGS) $(DPDC_CFLAGS) -DSMC_SHARED_BUILD -c $< -o $@ ################################################################################ # Installation diff --git a/config.mk b/config.mk @@ -36,8 +36,8 @@ S3D_VERSION = 0.4 S3D_CFLAGS = $$($(PKG_CONFIG) $(PCFLAGS) --cflags s3d) S3D_LIBS = $$($(PKG_CONFIG) $(PCFLAGS) --libs s3d) -DPDC_CFLAGS = $(RSYS_CFLAGS) $(STAR-SP_CFLAGS) -DPDC_LIBS = $(RSYS_LIBS) $(STAR-SP_LIBS) -lm +DPDC_CFLAGS = $(RSYS_CFLAGS) $(STAR-SP_CFLAGS) -fopenmp +DPDC_LIBS = $(RSYS_LIBS) $(STAR-SP_LIBS) -fopenmp -lm ################################################################################ # Compilation options