Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v2/example/make/gcc.jam @ 12

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

added boost

File size: 759 bytes
Line 
1
2import property ;
3
4rule compile ( target : sources * : property-set * )
5{
6    local options ;
7    for local p in $(property-set)
8    {
9        if $(p) = <optimization>on
10        {
11            options += -O2 ;
12        }
13        else if $(p) = <debug-symbols>on
14        {
15            options += -g ;
16        }
17        else if $(p:G) = <define>
18        {
19            options += -D$(p:G=) ;
20        }       
21    }
22    OPTIONS on $(target) = $(options) ;
23}
24
25actions compile
26{
27    g++ $(OPTIONS) -c -o $(<) $(>)
28}
29
30rule link ( target : sources * : property-set * )
31{
32    local options ;
33    if <debug-symbols>on in $(property-set)
34    {
35        options += -g ;
36    }
37    OPTIONS on $(target) = $(options) ;
38}
39
40actions link
41{
42    g++ $(OPTIONS) -o $(<) $(>)
43}
44
Note: See TracBrowser for help on using the repository browser.