openfoam/wmake/rules/General/general
Mark Olesen a8b6d01b87 CONFIG: relocate wmake binaries into project platforms/tools (#1647)
- can aid when creating source-only or binary-only packages
2020-04-06 08:32:42 +02:00

39 lines
1002 B
Makefile

#-------------------------------*- makefile -*---------------------------------
WM_VERSION = OPENFOAM=1912
AR = ar
ARFLAGS = cr
RANLIB = ranlib
CPP = cpp
LD = ld
GFLAGS = -D$(WM_VERSION) \
-DWM_$(WM_PRECISION_OPTION) -DWM_LABEL_SIZE=$(WM_LABEL_SIZE)
GINC =
GLIBS = -lm
GLIB_LIBS =
COMPILER_FAMILY = $(shell echo "$(WM_COMPILER)" | sed -e 's/[0-9].*//')
DEFAULT_RULES = $(WM_DIR)/rules/$(WM_ARCH)$(COMPILER_FAMILY)
RULES = $(WM_DIR)/rules/$(WM_ARCH)$(WM_COMPILER)
WMAKE_BIN = $(WM_PROJECT_DIR)/platforms/tools/$(WM_ARCH)$(WM_COMPILER)
# Default compilation is 'Opt' - never permit an empty value
ifeq ($(WM_COMPILE_OPTION),)
WM_COMPILE_OPTION = Opt
endif
ifeq ($(WM_SCHEDULER),)
AND = &&
else
AND = '&&'
endif
include $(DEFAULT_RULES)/general
sinclude $(RULES)/general
sinclude $(RULES)/c++
include $(GENERAL_RULES)/transform
#------------------------------------------------------------------------------