Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v1/edg-tools.jam @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 2.2 KB
Line 
1# (C) Copyright Jens Maurer 2003.
2# Distributed under the Boost Software License, Version 1.0.
3# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
4
5# The following #// line will be used by the regression test table generation
6# program as the column heading for HTML tables. Must not include version number.
7#//<a href="http://www.edg.com/">EDG<br>C++</a>
8
9# variables used to configure eccp-tools.jam
10#
11# ECCP - name of eccp executable
12
13ECCP ?= eccp ;
14
15flags edg C++FLAGS <exception-handling>off : --no_exceptions ;
16flags edg C++FLAGS <exception-handling>on : --exceptions ;
17
18flags edg CFLAGS <inlining>off : --no_inlining ;
19flags edg CFLAGS <inlining>on <inlining>full : --inlining ;
20
21flags edg CFLAGS <optimization>off : -O0 ;
22flags edg CFLAGS <optimization>speed : -O3 ;
23flags edg CFLAGS <optimization>size : -Os ;
24
25flags edg CFLAGS <shared-linkable>true : --pic ;
26flags edg CFLAGS <debug-symbols>on : -g ;
27flags edg LINKFLAGS <debug-symbols>on : -g ;
28flags edg CFLAGS <profiling>on : -pg ;
29flags edg LINKFLAGS <profiling>on : -pg ;
30
31flags edg CFLAGS <cflags> ;
32flags edg C++FLAGS <cxxflags> ;
33flags edg DEFINES <define> ;
34flags edg UNDEFS <undef> ;
35flags edg HDRS <include> ;
36flags edg SYSHDRS <sysinclude> ;
37flags edg LINKFLAGS <linkflags> ;
38flags edg ARFLAGS <arflags> ;
39
40flags edg LIBPATH <library-path> ;
41flags edg NEEDLIBS <library-file> ;
42flags edg FINDLIBS <find-library> ;
43
44#### Link ####
45
46rule Link-action
47{
48    edg-Link-action $(<) : $(>) ;
49}
50
51actions edg-Link-action bind NEEDLIBS
52{
53    $(ECCP) $(LINKFLAGS) -tused -o "$(<[1])" "$(>)" "$(NEEDLIBS)" "$(FINDLIBS:S=.so)"
54}
55
56
57#### Cc #####
58
59rule Cc-action
60{
61    edg-Cc-action $(<) : $(>) ;
62}
63
64actions edg-Cc-action
65{
66    $(ECCP) -c --c99 -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -I"$(SYSHDRS)" -o "$(<)" "$(>)"
67}
68
69#### C++ ####
70rule C++-action
71{
72    edg-C++-action $(<) : $(>) ;
73}
74
75actions edg-C++-action
76{
77    $(ECCP) -tused -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -I"$(SYSHDRS)"  -o "$(<)" "$(>)"
78}
79
80#### Archive ####
81
82rule Archive-action
83{
84    edg-Archive-action $(<) : $(>) ;
85}
86
87actions updated together piecemeal edg-Archive-action
88{
89    ar rc $(<) $(>)
90}
91
Note: See TracBrowser for help on using the repository browser.