mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
extract major openfoam version from WM_PROJECT_VERSION environment variable in make/options files and use it for a preprocessor flag (OPENFOAM_VERSION_MAJOR) for conditional compilation make CFDEMcoupling compile with OF 4.x, 5.x and 6
48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
/*NOTE: for compiling the lnInclude of cfdemParticle is needed (exist after wmake libso of cfdemParticle)*/
|
|
/*BUT: the *.dep files of cfdemParticle MUST NOT EXIST (do an rmdepall of of cfdemParticle)*/
|
|
|
|
sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
|
|
sinclude $(RULES)/mplib$(WM_MPLIB)
|
|
|
|
GIT_VERSION := $(shell git describe --dirty --always --tags)
|
|
PFLAGS+= -DGITVERSION=\"$(GIT_VERSION)\"
|
|
FOAM_VERSION_MAJOR := $(word 1,$(subst ., ,$(WM_PROJECT_VERSION)))
|
|
PFLAGS+= -DOPENFOAM_VERSION_MAJOR=$(FOAM_VERSION_MAJOR)
|
|
PFLAGS+= -Dcompre
|
|
|
|
|
|
EXE_INC = \
|
|
$(PFLAGS) \
|
|
$(PINC) \
|
|
-I$(CFDEM_OFVERSION_DIR) \
|
|
-I../cfdemParticle/lnInclude \
|
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
|
-I$(LIB_SRC)/transportModels \
|
|
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
|
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
|
-I$(LIB_SRC)/OpenFOAM/containers/HashTables/labelHashSet \
|
|
-I$(CFDEM_LIGGGHTS_SRC_DIR) \
|
|
-I$(CFDEM_M2MLIB_PATH) \
|
|
-I$(CFDEM_SRC_DIR)/cfdTools \
|
|
-Wno-old-style-cast \
|
|
-Wno-unused-result \
|
|
-Wno-literal-suffix
|
|
|
|
LIB_LIBS = \
|
|
$(PLIBS) \
|
|
-L$(CFDEM_LIB_DIR) \
|
|
-lfiniteVolume \
|
|
-lcompressibleTurbulenceModels \
|
|
-lfluidThermophysicalModels \
|
|
-lmeshTools \
|
|
-llagrangian \
|
|
-lmpi_cxx \
|
|
-Wl,-rpath,$(CFDEM_LIGGGHTS_BIN_DIR) \
|
|
-L$(CFDEM_LIGGGHTS_BIN_DIR) \
|
|
-lliggghts \
|
|
-L$(CFDEM_Many2ManyLIB_PATH) \
|
|
-lcoupleMany2Many
|
|
|