which may be optionally overridden by version-specific rules. For example the default rules for gcc on GNU/Linux x86_64 are in the wmake/rules/linux64Gcc directory. If there is a need to change any of the rules for a specific version of gcc, e.g. gcc-4.8.4 the directory wmake/rules/linux64Gcc48 may be created into which any of the language files may be provided containing the rules to override the defaults.
29 lines
857 B
Makefile
29 lines
857 B
Makefile
#-------------------------------*- makefile -*---------------------------------
|
|
|
|
AR = ar
|
|
ARFLAGS = cr
|
|
RANLIB = ranlib
|
|
CPP = cpp
|
|
LD = ld
|
|
|
|
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 =
|
|
|
|
|
|
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
|
|
|
|
|
|
#------------------------------------------------------------------------------
|