mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
The pre-processor macro 'OPENFOAM_PLUS' is defined with a numerical
value equal to the currently compatible version number.
This can be used judiciously within user coding to help with minor
differences between OpenFOAM versions. For example,
#ifdef OPENFOAM_PLUS
#if (OPENFOAM_PLUS >= 1612)
...
#endif
#endif
or simply
#if (OPENFOAM_PLUS >= 1612)
...
#endif
30 lines
905 B
Makefile
30 lines
905 B
Makefile
#-------------------------------*- makefile -*---------------------------------
|
|
WM_VERSION = OPENFOAM_PLUS=1606
|
|
|
|
AR = ar
|
|
ARFLAGS = cr
|
|
RANLIB = ranlib
|
|
CPP = cpp
|
|
LD = ld
|
|
|
|
GFLAGS = -D$(WM_VERSION) -D$(WM_ARCH) -DWM_ARCH_OPTION=$(WM_ARCH_OPTION) \
|
|
-DWM_$(WM_PRECISION_OPTION) -DWM_LABEL_SIZE=$(WM_LABEL_SIZE)
|
|
GINC =
|
|
GLIBS = -lm
|
|
GLIB_LIBS =
|
|
|
|
|
|
COMPILER_TYPE = $(shell echo $(WM_COMPILER) | tr -d [:digit:])
|
|
DEFAULT_RULES = $(WM_DIR)/rules/$(WM_ARCH)$(COMPILER_TYPE)
|
|
RULES = $(WM_DIR)/rules/$(WM_ARCH)$(WM_COMPILER)
|
|
WMAKE_BIN = $(WM_DIR)/platforms/$(WM_ARCH)$(WM_COMPILER)
|
|
|
|
include $(DEFAULT_RULES)/general
|
|
include $(DEFAULT_RULES)/$(WM_LINK_LANGUAGE)
|
|
-include $(RULES)/general
|
|
-include $(RULES)/$(WM_LINK_LANGUAGE)
|
|
include $(GENERAL_RULES)/transform
|
|
|
|
|
|
#------------------------------------------------------------------------------
|