Skip to content
Snippets Groups Projects
  • Henry Weller's avatar
    c3a03105
    wmake: Add support for compiler type default rules · c3a03105
    Henry Weller authored
    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.
    c3a03105
    History
    wmake: Add support for compiler type default rules
    Henry Weller authored
    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.
c++ 796 B
SUFFIXES += .C

c++WARN     = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof

# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds

CC          = g++ -std=c++0x -m64

include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION)

ptFLAGS     = -DNoRepository -ftemplate-depth-100

c++FLAGS    = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC

Ctoo        = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $< -o $@
cxxtoo      = $(Ctoo)
cctoo       = $(Ctoo)
cpptoo      = $(Ctoo)

LINK_LIBS   = $(c++DBUG)

LINKLIBSO   = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed -Xlinker --no-as-needed
LINKEXE     = $(CC) $(c++FLAGS) -Xlinker --add-needed -Xlinker --no-as-needed