[12] | 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 ; |
---|
| 13 | flags cxx CFLAGS <debug-symbols>on : -g ; |
---|
| 14 | flags tru64cxx LINKFLAGS <debug-symbols>on : -g ; |
---|
| 15 | flags tru64cxx LINKFLAGS <debug-symbols>off : -s ; |
---|
| 16 | flags tru64cxx LINKFLAGS <target-type>$(SHARED_TYPES) : -shared ; |
---|
| 17 | flags tru64cxx CFLAGS <optimization>off : -O0 ; |
---|
| 18 | flags tru64cxx CFLAGS <optimization>speed/<inlining>on : -O5 -inline speed ; |
---|
| 19 | flags tru64cxx CFLAGS <optimization>speed : -O5 ; |
---|
| 20 | |
---|
| 21 | # Added for threading support |
---|
| 22 | flags tru64cxx CFLAGS <threading>multi : -pthread ; |
---|
| 23 | flags tru64cxx LINKFLAGS <threading>multi : -pthread ; |
---|
| 24 | |
---|
| 25 | flags tru64cxx CFLAGS <optimization>space/<inlining>on : <inlining>size ; |
---|
| 26 | flags tru64cxx CFLAGS <optimization>space : -O1 ; |
---|
| 27 | flags tru64cxx CFLAGS <inlining>off : -inline none ; |
---|
| 28 | flags tru64cxx CFLAGS <inlining>full : -inline all ; |
---|
| 29 | |
---|
| 30 | flags tru64cxx CFLAGS <profiling>on : -pg ; |
---|
| 31 | flags tru64cxx LINKFLAGS <profiling>on : -pg ; |
---|
| 32 | |
---|
| 33 | flags tru64cxx CFLAGS <cflags> ; |
---|
| 34 | flags tru64cxx C++FLAGS <cxxflags> ; |
---|
| 35 | flags tru64cxx DEFINES <define> ; |
---|
| 36 | flags tru64cxx UNDEFS <undef> ; |
---|
| 37 | flags tru64cxx HDRS <include> ; |
---|
| 38 | flags tru64cxx SYSHDRS <sysinclude> ; |
---|
| 39 | flags tru64cxx LINKFLAGS <linkflags> ; |
---|
| 40 | flags tru64cxx ARFLAGS <arflags> ; |
---|
| 41 | |
---|
| 42 | if ! $(ARFLAGS) |
---|
| 43 | { |
---|
| 44 | flags tru64cxx ARFLAGS : "" ; |
---|
| 45 | } |
---|
| 46 | |
---|
| 47 | # Vincenzo |
---|
| 48 | BOOST_COMPATIBILITY ?= $(BOOST_ROOT)$(SLASH)boost$(SLASH)compatibility$(SLASH)cpp_c_headers ; |
---|
| 49 | flags tru64cxx STDHDRS : $(BOOST_COMPATIBILITY) ; |
---|
| 50 | |
---|
| 51 | #### Link #### |
---|
| 52 | |
---|
| 53 | rule 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 |
---|
| 59 | actions tru64cxx-Link-action bind NEEDLIBS |
---|
| 60 | { |
---|
| 61 | cxx $(LINKFLAGS) -o "$(<)" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS) -lrt |
---|
| 62 | } |
---|
| 63 | |
---|
| 64 | actions 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 | |
---|
| 71 | rule Cc-action |
---|
| 72 | { |
---|
| 73 | tru64cxx-Cc-action $(<) : $(>) ; |
---|
| 74 | } |
---|
| 75 | |
---|
| 76 | actions 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++ #### |
---|
| 82 | rule C++-action |
---|
| 83 | { |
---|
| 84 | tru64cxx-C++-action $(<) : $(>) ; |
---|
| 85 | } |
---|
| 86 | |
---|
| 87 | actions 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 | |
---|
| 94 | rule Archive-action |
---|
| 95 | { |
---|
| 96 | tru64cxx-Archive-action $(<) : $(>) ; |
---|
| 97 | } |
---|
| 98 | |
---|
| 99 | actions updated together piecemeal tru64cxx-Archive-action |
---|
| 100 | { |
---|
| 101 | rm -f $(<) |
---|
| 102 | ar r$(ARFLAGS) $(<) $(>) |
---|
| 103 | } |
---|
| 104 | |
---|
| 105 | |
---|