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
556 B
Plaintext
21 lines
556 B
Plaintext
# Need -D_WIN32 -D__MINGW32__ if host cpp is used
|
|
#CPP = /lib/cpp -traditional-cpp -D_WIN32 -D__MINGW32__ $(GFLAGS)
|
|
|
|
CPP = x86_64-w64-mingw32-cpp -traditional-cpp $(GFLAGS)
|
|
LD = x86_64-w64-mingw32-ld
|
|
AR = x86_64-w64-mingw32-ar
|
|
RANLIB = x86_64-w64-mingw32-ranlib
|
|
|
|
PROJECT_LIBS = -l$(WM_PROJECT) \
|
|
-L$(FOAM_LIBBIN)/dummy -lPstream
|
|
|
|
include $(GENERAL_RULES)/standard
|
|
|
|
include $(DEFAULT_RULES)/c
|
|
include $(DEFAULT_RULES)/c++
|
|
|
|
EXT_SO = .dll
|
|
EXT_EXE = .exe
|
|
|
|
# -----------------------------------------------------------------------------
|