Boost logo

Boost :

From: vvasta (vvasta_at_[hidden])
Date: 2002-01-07 05:56:54


I created a tru64 tool jam file. I tested with the version:

DIGITAL C++ V6.1-027 on DIGITAL UNIX V4.0 (Rev. 1229)

I used it to compile only the thread library and its test program, so
it is not fully tested. My version of the stl requires the inclusion
of compatibility files. Here it is:

#------------------------------------------------------------------
BOOST_COMPATIBILITY ?= $(BOOST_ROOT)$(SLASH)boost$(SLASH)
compatibility$(SLASH)cpp_c_headers ;

TRU64_DEFINES ?= -D__USE_STD_IOSTREAM ;
flags tru64cxx LINKFLAGS <runtime-link>static : -static ;
flags tru64cxx CFLAGS <debug-symbols>on : -g ;
flags tru64cxx LINKFLAGS <debug-symbols>on : -g ;
flags tru64cxx CFLAGS <optimization>off : -O0 ;
flags tru64cxx CFLAGS <optimization>speed : -O4 ;

flags tru64cxx CFLAGS <optimization>space : -O2 ;

if $(UNIX)
{
    flags tru64cxx CFLAGS <threading>multi : -pthread ;
    flags tru64cxx LINKFLAGS <threading>multi : -pthread ;
}

flags tru64cxx CFLAGS <cflags> ;
flags tru64cxx C++FLAGS <cxxflags> ;
flags tru64cxx DEFINES <define> ;
flags tru64cxx UNDEFS <undef> ;
flags tru64cxx HDRS <include> ;
flags tru64cxx STDHDRS : $(BOOST_COMPATIBILITY) ;

flags tru64cxx LIBS <lib> ;
flags tru64cxx LIBPATH <library-path> ;
flags tru64cxx NEEDLIBS <library-file> ;
flags tru64cxx FINDLIBS <find-library> ;

#### Link ####

rule Link-action
{
    # This will appear before the import library name when building a
DLL, but
    # will be "multiplied away" otherwise. The --exclude-symbols
directive
    # proved to be neccessary with some versions of Cygwin.
    tru64cxx-Link-action $(<) : $(>) ;
}

# for tru64cxx, we repeat all libraries so that dependencies are
always resolved
actions tru64cxx-Link-action bind NEEDLIBS
{
    cxx $(LINKFLAGS) -o "$(<[1])" -L$(LIBPATH) "$(>)" "$(NEEDLIBS)" -
l$(FINDLIBS) -lrt
}

#### Cc #####

rule Cc-action
{
    tru64cxx-Cc-action $(<) : $(>) ;
}

actions tru64cxx-Cc-action
{
    cc -c -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -o "$(<)" "$(>)"
}

#### C++ ####
rule C++-action
{
    tru64cxx-C++-action $(<) : $(>) ;
}

actions tru64cxx-C++-action
{
    cxx -c $(TRU64_DEFINES) -I"$(STDHDRS)" -D$(DEFINES) $(CFLAGS)
$(C++FLAGS) -I"$(HDRS)" -o "$(<)" "$(>)"
}

#### Archive ####

rule Archive-action
{
    tru64cxx-Archive-action $(<) : $(>) ;
}

actions updated together piecemeal tru64cxx-Archive-action
{
    ar ru "$(<:T)" "$(>:T)"
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk