2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 13:22:11 +00:00
Files
build/edg-tools.jam
Jens Maurer b1e952775a name of toolset is edg, not eccp
[SVN r18987]
2003-07-09 11:12:03 +00:00

94 lines
2.3 KiB
Plaintext

# (C) Copyright Jens Maurer 2003. 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.
# The following #// line will be used by the regression test table generation
# program as the column heading for HTML tables. Must not include version number.
#//<a href="http://www.edg.com/">EDG<br>C++</a>
# variables used to configure eccp-tools.jam
#
# ECCP - name of eccp executable
ECCP ?= eccp ;
flags edg C++FLAGS <exception-handling>off : --no_exceptions ;
flags edg C++FLAGS <exception-handling>on : --exceptions ;
flags edg CFLAGS <inlining>off : --no_inlining ;
flags edg CFLAGS <inlining>on <inlining>full : --inlining ;
flags edg CFLAGS <optimization>off : -O0 ;
flags edg CFLAGS <optimization>speed : -O3 ;
flags edg CFLAGS <optimization>size : -Os ;
flags edg CFLAGS <shared-linkable>true : --pic ;
flags edg CFLAGS <debug-symbols>on : -g ;
flags edg LINKFLAGS <debug-symbols>on : -g ;
flags edg CFLAGS <profiling>on : -pg ;
flags edg LINKFLAGS <profiling>on : -pg ;
flags edg CFLAGS <cflags> ;
flags edg C++FLAGS <cxxflags> ;
flags edg DEFINES <define> ;
flags edg UNDEFS <undef> ;
flags edg HDRS <include> ;
flags edg STDHDRS <sysinclude> ;
flags edg LINKFLAGS <linkflags> ;
flags edg ARFLAGS <arflags> ;
flags edg LIBPATH <library-path> ;
flags edg NEEDLIBS <library-file> ;
flags edg FINDLIBS <find-library> ;
#### Link ####
rule Link-action
{
edg-Link-action $(<) : $(>) ;
}
actions edg-Link-action bind NEEDLIBS
{
$(ECCP) $(LINKFLAGS) -tused -o "$(<[1])" "$(>)" "$(NEEDLIBS)" "$(FINDLIBS:S=.so)"
}
#### Cc #####
rule Cc-action
{
edg-Cc-action $(<) : $(>) ;
}
actions edg-Cc-action
{
$(ECCP) -c --c99 -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### C++ ####
rule C++-action
{
edg-C++-action $(<) : $(>) ;
}
actions edg-C++-action
{
$(ECCP) -tused -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### Archive ####
rule Archive-action
{
edg-Archive-action $(<) : $(>) ;
}
actions updated together piecemeal edg-Archive-action
{
ar rc $(<) $(>)
}