mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- for compilers such as gcc and clang, may have several different
variants installed on the computer. Use WM_COMPILER_CONTROL to
specify the preferred variant.
Eg,
WM_COMPILER=Gcc
WM_COMPILER_CONTROL="version=8"
will compile with "gcc-8" and "g++-8"
Good practice would be to tag output directory names with the
version too. Eg
WM_COMPILER=Clang110
WM_COMPILER_CONTROL="version=11.0"
STYLE: modify message for change of gcc -> clang (darwin)
33 lines
889 B
Plaintext
33 lines
889 B
Plaintext
#------------------------------------------------------------------------------
|
|
include $(GENERAL_RULES)/Gcc/c
|
|
|
|
cARCH = -m64
|
|
|
|
cc = x86_64-w64-mingw32-gcc
|
|
|
|
# Compile option is non-mandatory, but must be non-empty
|
|
sinclude $(RULES)/c$(WM_COMPILE_OPTION)
|
|
|
|
cFLAGS = $(cARCH) $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS)
|
|
|
|
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $< -o $@
|
|
|
|
LINK_LIBS = $(cDBUG)
|
|
|
|
LINKLIBSO = $(cc) $(cARCH) \
|
|
-Wl,--output-def=$(LIB).def \
|
|
-Wl,--out-implib,$(LIB).dll.a \
|
|
-Wl,--no-undefined \
|
|
-Wl,--enable-runtime-pseudo-reloc \
|
|
-Wl,--enable-auto-import \
|
|
-Wl,--enable-auto-image-base \
|
|
-Wl,--strip-all \
|
|
-shared
|
|
|
|
LINKEXE = $(cc) $(cARCH) \
|
|
-Wl,--enable-auto-import \
|
|
-Wl,--strip-all \
|
|
-Wl,--force-exe-suffix
|
|
|
|
#------------------------------------------------------------------------------
|