Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

added boost

File size: 2.9 KB
Line 
1# (C) Copyright David Abrahams 2001.
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#
6# Jam tools information for :
7# Compaq Alpha CXX compiler
8#
9
10
11# No static linking as far as I can tell.
12# flags cxx LINKFLAGS <runtime-link>static : -bstatic ;
13flags cxx CFLAGS <debug-symbols>on : -g ;
14flags tru64cxx LINKFLAGS <debug-symbols>on : -g ;
15flags tru64cxx LINKFLAGS <debug-symbols>off : -s ;
16flags tru64cxx LINKFLAGS <target-type>$(SHARED_TYPES) : -shared ;
17flags tru64cxx CFLAGS <optimization>off : -O0 ;
18flags tru64cxx CFLAGS <optimization>speed/<inlining>on : -O5 -inline speed ;
19flags tru64cxx CFLAGS <optimization>speed : -O5 ;
20
21# Added for threading support
22flags tru64cxx CFLAGS <threading>multi : -pthread ;
23flags tru64cxx LINKFLAGS <threading>multi : -pthread ;
24
25flags tru64cxx CFLAGS <optimization>space/<inlining>on : <inlining>size ;
26flags tru64cxx CFLAGS <optimization>space : -O1 ;
27flags tru64cxx CFLAGS <inlining>off : -inline none ;
28flags tru64cxx CFLAGS <inlining>full : -inline all ;
29
30flags tru64cxx CFLAGS <profiling>on : -pg ;
31flags tru64cxx LINKFLAGS <profiling>on : -pg ;
32
33flags tru64cxx CFLAGS <cflags> ;
34flags tru64cxx C++FLAGS <cxxflags> ;
35flags tru64cxx DEFINES <define> ;
36flags tru64cxx UNDEFS <undef> ;
37flags tru64cxx HDRS <include> ;
38flags tru64cxx SYSHDRS <sysinclude> ;
39flags tru64cxx LINKFLAGS <linkflags> ;
40flags tru64cxx ARFLAGS <arflags> ;
41
42if ! $(ARFLAGS)
43{
44    flags tru64cxx ARFLAGS : "" ;
45}
46
47# Vincenzo
48BOOST_COMPATIBILITY ?= $(BOOST_ROOT)$(SLASH)boost$(SLASH)compatibility$(SLASH)cpp_c_headers ;
49flags tru64cxx STDHDRS : $(BOOST_COMPATIBILITY) ;
50
51#### Link ####
52
53rule Link-action ( target : sources + : target-type )
54{
55   tru64cxx-Link-action $(target) : $(sources) ;
56}
57
58# for tru64cxx, we repeat all libraries so that dependencies are always resolved
59actions tru64cxx-Link-action bind NEEDLIBS
60{
61   cxx $(LINKFLAGS) -o "$(<)" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS) -lrt
62}
63
64actions tru64cxx-Link-shared bind NEEDLIBS
65{
66    cxx -qrtti $(LINKFLAGS) -o "$(<[1])" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS)
67}
68
69#### Cc #####
70
71rule Cc-action
72{
73   tru64cxx-Cc-action $(<) : $(>) ;
74}
75
76actions tru64cxx-Cc-action
77{
78   cc -std1 -msg_display_number -msg-disable 186,450,1115 -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -I"$(SYSHDRS)" -o "$(<)" "$(>)"
79}
80
81#### C++ ####
82rule C++-action
83{
84   tru64cxx-C++-action $(<) : $(>) ;
85}
86
87actions tru64cxx-C++-action
88{
89   cxx -c -newcxx -x cxx  -msg_display_number -msg_disable 186,450,1115 -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS)  -I"$(HDRS)" -I"$(STDHDRS)" -I"$(SYSHDRS)" -o "$(<)" "$(>)"
90}
91
92#### Archive ####
93
94rule Archive-action
95{
96  tru64cxx-Archive-action $(<) : $(>) ;
97}
98
99actions updated together piecemeal tru64cxx-Archive-action
100{
101  rm -f $(<)
102  ar r$(ARFLAGS) $(<) $(>)
103}
104
105
Note: See TracBrowser for help on using the repository browser.