mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- introduce WM_COMPILE_CONTROL variable to convey control information
into the build rules.
The convention (as per spack):
- '+' to select a feature
- '~' to deselect a feature
Eg, to select the gold linker, and disable openmp
(spaces are not required):
WM_COMPILE_CONTROL="+gold ~openmp"
CONFIG: accept FOAM_EXTRA_LDFLAGS for AMD, gold, Mingw linkers
CONFIG: generalize PROJECT_LIBS (-ldl used almost universally)
21 lines
576 B
Plaintext
21 lines
576 B
Plaintext
include $(GENERAL_RULES)/Gcc/c++
|
|
|
|
c++ARCH = -m32 -pthread
|
|
|
|
include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION)
|
|
|
|
c++FLAGS = $(c++ARCH) $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC
|
|
|
|
Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $< -o $@
|
|
cxxtoo = $(Ctoo)
|
|
cctoo = $(Ctoo)
|
|
cpptoo = $(Ctoo)
|
|
|
|
ifneq (,$(findstring +gold,$(WM_COMPILE_CONTROL)))
|
|
include $(GENERAL_RULES)/Gcc/link-gold-c++
|
|
else
|
|
include $(GENERAL_RULES)/Gcc/link-c++
|
|
endif
|
|
|
|
#------------------------------------------------------------------------------
|