32 lines
893 B
Text
32 lines
893 B
Text
|
AR = ar
|
||
|
ARFLAGS = cr
|
||
|
RANLIB = ranlib
|
||
|
LD = ld
|
||
|
|
||
|
FOAM_DEV_REVISION_NUMBER = $(shell foamVersion -revision)
|
||
|
|
||
|
GFLAGS = -D$(WM_ARCH) -DWM_ARCH_OPTION=$(WM_ARCH_OPTION) \
|
||
|
-DWM_$(WM_PRECISION_OPTION) -DWM_LABEL_SIZE=$(WM_LABEL_SIZE)
|
||
|
GINC =
|
||
|
GLIBS = -lm
|
||
|
GLIB_LIBS =
|
||
|
|
||
|
# --------
|
||
|
# Extract compiler version suffix.
|
||
|
# Most (all?) compilers use the convention <compiler>-<version>
|
||
|
#
|
||
|
# Thus (for example) version=11 -> gcc-11
|
||
|
# --------
|
||
|
ifneq (,$(findstring version=,$(WM_COMPILE_CONTROL)))
|
||
|
COMPILER_VERSION := $(shell echo "$(WM_COMPILE_CONTROL)" | sed -ne 's/^.*version=-*\([0-9][.0-9]*\).*/-\1/p')
|
||
|
else
|
||
|
COMPILER_VERSION :=
|
||
|
endif
|
||
|
|
||
|
# Default compilation is 'Opt' - never permit an empty value
|
||
|
ifeq (,$(strip $(WM_COMPILE_OPTION)))
|
||
|
WM_COMPILE_OPTION := Opt
|
||
|
endif
|
||
|
|
||
|
#------------------------------------------------------------------------------
|