2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00
Files
build/vacpp-tools.jam
Markus Schöpflin 1e0f891c75 Merged fixes from the release branch.
[SVN r15605]
2002-10-01 12:52:02 +00:00

126 lines
3.5 KiB
Plaintext

# (C) Copyright Toon Knapen 2001, Markus Schoepflin 2002.
# Permission to copy, use,
# modify, sell and distribute this software is granted provided this
# copyright notice appears in all copies. This software is provided
# "as is" without express or implied warranty, and with no claim as
# to its suitability for any purpose.
#
# Jam tools information for :
# IBM VisualAge C++ compiler
# version 5.0
#
# These settings are created and tested with VisualAge running on
# IBM/Aix 3.4. They should also work for VisualAge
# on Windows NT, OS/2 and AS/400.
#
# Current settings tested and working on VisualAge-5/AIX.
flags vacpp CC <threading>single : xlc ;
flags vacpp CC <threading>multi : xlc_r ;
flags vacpp CXX <threading>single : xlC ;
flags vacpp CXX <threading>multi : xlC_r ;
flags vacpp C++FLAGS : -qnotempinc ;
# The following is needed to get rid of most of the annoying linker warnings
# about duplicated symbols when you use templates.
flags vacpp C++FLAGS : -qstaticinline -qfuncsect ;
# This tells the linker not to link unneeded object files from static
# libraries. Please note that this means that a static constructor
# contained in such an object file won't be invoked.
flags vacpp LINKFLAGS : -qtwolink ;
flags vacpp CFLAGS <optimization>off : -qNOOPTimize ;
flags vacpp CFLAGS <optimization>default : -O ;
flags vacpp CFLAGS <optimization>speed : -O3 -qstrict ;
flags vacpp CFLAGS <optimization>space : -O2 -qcompact ;
flags vacpp CFLAGS <inlining>off : -qnoinline ;
flags vacpp CFLAGS <inlining>on : -qinline ;
flags vacpp CFLAGS <inlining>full : -qinline ;
flags vacpp C++FLAGS <exception-handling>off : -qnoeh ;
flags vacpp C++FLAGS <exception-handling>on : -qeh ;
flags vacpp C++FLAGS <rtti>off : -qnortti ;
flags vacpp C++FLAGS <rtti>on : -qrtti ;
flags vacpp LINKFLAGS <runtime-link>static : -bstatic ;
# We want the full path to the sources in the debug symbols because otherwise
# the debugger won't find the sources when we use boost.build.
flags vacpp CFLAGS <debug-symbols>on : -g -qfullpath ;
flags vacpp LINKFLAGS <debug-symbols>on : -g ;
flags vacpp LINKFLAGS <debug-symbols>off : -s ;
flags vacpp CFLAGS <profiling>on : -pg ;
flags vacpp LINKFLAGS <profiling>on : -pg ;
flags vacpp CFLAGS <cflags> ;
flags vacpp C++FLAGS <cxxflags> ;
flags vacpp DEFINES <define> ;
flags vacpp UNDEFS <undef> ;
flags vacpp HDRS <include> ;
flags vacpp STDHDRS <sysinclude> ;
flags vacpp LINKFLAGS <linkflags> ;
flags vacpp ARFLAGS <arflags> ;
flags vacpp LIBPATH <library-path> ;
flags vacpp NEEDLIBS <library-file> ;
flags vacpp FINDLIBS <find-library> ;
if ! $(ARFLAGS)
{
flags xlc ARFLAGS : "" ;
}
#### Link ####
rule Link-action
{
xlc-Link-action $(<) : $(>) ;
}
# for xlc, we repeat all libraries so that dependencies are always resolved
actions xlc-Link-action bind NEEDLIBS
{
$(CXX) $(LINKFLAGS) -o "$(<[1])" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS) -bdynamic
}
#### Cc #####
rule Cc-action
{
xlc-Cc-action $(<) : $(>) ;
}
actions xlc-Cc-action
{
$(CC) -c -I$(BOOST_ROOT) -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### C++ ####
rule C++-action
{
xlc-C++-action $(<) : $(>) ;
}
actions xlc-C++-action
{
$(CXX) -c -I$(BOOST_ROOT) -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### Archive ####
rule Archive-action
{
xlc-Archive-action $(<) : $(>) ;
}
actions updated together piecemeal xlc-Archive-action
{
ar ru$(ARFLAGS) "$(<)" "$(>)"
}