diff --git a/tru64cxx65-tools.jam b/tru64cxx65-tools.jam new file mode 100644 index 000000000..88af15829 --- /dev/null +++ b/tru64cxx65-tools.jam @@ -0,0 +1,96 @@ +# (C) Copyright David Abrahams 2001. Permission to copy, use, +# modify, sell and distribute this software is granted provided this +# copyright notice appears in all copies. This software is provided +# "as is" without express or implied warranty, and with no claim as +# to its suitability for any purpose. + +# +# Jam tools information for : +# Compaq Alpha CXX compiler +# + + +# No static linking as far as I can tell. +# flags cxx LINKFLAGS static : -bstatic ; +flags cxx CFLAGS on : -g ; +flags tru64cxx65 LINKFLAGS on : -g ; +flags tru64cxx65 LINKFLAGS $(SHARED_TYPES) : -shared -expect_unresolved 'Py*' -expect_unresolved '_Py*' ; +flags tru64cxx65 CFLAGS off : -O0 ; +flags tru64cxx65 CFLAGS speed/on : -O2 ; +flags tru64cxx65 CFLAGS speed : -O2 ; + +# Added for threading support +flags tru64cxx65 CFLAGS multi : -pthread ; +flags tru64cxx65 LINKFLAGS multi : -pthread ; + +flags tru64cxx65 CFLAGS space/on : size ; +flags tru64cxx65 CFLAGS space : -O1 ; +flags tru64cxx65 CFLAGS off : -inline none ; +flags tru64cxx65 CFLAGS full : -inline all ; + +flags tru64cxx65 CFLAGS on : -pg ; +flags tru64cxx65 LINKFLAGS on : -pg ; + +flags tru64cxx65 CFLAGS ; +flags tru64cxx65 C++FLAGS ; +flags tru64cxx65 DEFINES ; +flags tru64cxx65 UNDEFS ; +flags tru64cxx65 HDRS ; +flags tru64cxx65 STDHDRS ; +flags tru64cxx65 LINKFLAGS ; + +#### Link #### + +rule Link-action ( target : sources + : target-type ) +{ + tru64cxx65-Link-action $(target) : $(sources) ; +} + +# for tru64cxx, we repeat all libraries so that dependencies are always resolved +actions tru64cxx65-Link-action bind NEEDLIBS +{ + cxx $(LINKFLAGS) -o "$(<)" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" -l$(FINDLIBS) -lrt +} + +actions tru64cxx65-Link-shared bind NEEDLIBS +{ + cxx -qrtti $(LINKFLAGS) -o "$(<[1])" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS) +} + +#### Cc ##### + +rule Cc-action +{ + cxx-Cc-action $(<) : $(>) ; +} + +actions tru64cxx65-Cc-action +{ + cc -std1 -msg_display_number -msg-disable 186,450,1115 -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)" +} + +#### C++ #### +rule C++-action +{ + tru64cxx65-C++-action $(<) : $(>) ; +} + +actions tru64cxx65-C++-action +{ + cxx -c -std strict_ansi -msg_display_number -msg_disable 186,450,1115 -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)" +} + +#### Archive #### + +rule Archive-action +{ + tru64cxx65-Archive-action $(<) : $(>) ; +} + +actions updated together piecemeal tru64cxx65-Archive-action +{ + rm -f $(<) + ar r $(<) $(>) cxx_repository/* +} + + diff --git a/v1/tru64cxx65-tools.jam b/v1/tru64cxx65-tools.jam new file mode 100644 index 000000000..88af15829 --- /dev/null +++ b/v1/tru64cxx65-tools.jam @@ -0,0 +1,96 @@ +# (C) Copyright David Abrahams 2001. Permission to copy, use, +# modify, sell and distribute this software is granted provided this +# copyright notice appears in all copies. This software is provided +# "as is" without express or implied warranty, and with no claim as +# to its suitability for any purpose. + +# +# Jam tools information for : +# Compaq Alpha CXX compiler +# + + +# No static linking as far as I can tell. +# flags cxx LINKFLAGS static : -bstatic ; +flags cxx CFLAGS on : -g ; +flags tru64cxx65 LINKFLAGS on : -g ; +flags tru64cxx65 LINKFLAGS $(SHARED_TYPES) : -shared -expect_unresolved 'Py*' -expect_unresolved '_Py*' ; +flags tru64cxx65 CFLAGS off : -O0 ; +flags tru64cxx65 CFLAGS speed/on : -O2 ; +flags tru64cxx65 CFLAGS speed : -O2 ; + +# Added for threading support +flags tru64cxx65 CFLAGS multi : -pthread ; +flags tru64cxx65 LINKFLAGS multi : -pthread ; + +flags tru64cxx65 CFLAGS space/on : size ; +flags tru64cxx65 CFLAGS space : -O1 ; +flags tru64cxx65 CFLAGS off : -inline none ; +flags tru64cxx65 CFLAGS full : -inline all ; + +flags tru64cxx65 CFLAGS on : -pg ; +flags tru64cxx65 LINKFLAGS on : -pg ; + +flags tru64cxx65 CFLAGS ; +flags tru64cxx65 C++FLAGS ; +flags tru64cxx65 DEFINES ; +flags tru64cxx65 UNDEFS ; +flags tru64cxx65 HDRS ; +flags tru64cxx65 STDHDRS ; +flags tru64cxx65 LINKFLAGS ; + +#### Link #### + +rule Link-action ( target : sources + : target-type ) +{ + tru64cxx65-Link-action $(target) : $(sources) ; +} + +# for tru64cxx, we repeat all libraries so that dependencies are always resolved +actions tru64cxx65-Link-action bind NEEDLIBS +{ + cxx $(LINKFLAGS) -o "$(<)" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" -l$(FINDLIBS) -lrt +} + +actions tru64cxx65-Link-shared bind NEEDLIBS +{ + cxx -qrtti $(LINKFLAGS) -o "$(<[1])" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS) +} + +#### Cc ##### + +rule Cc-action +{ + cxx-Cc-action $(<) : $(>) ; +} + +actions tru64cxx65-Cc-action +{ + cc -std1 -msg_display_number -msg-disable 186,450,1115 -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)" +} + +#### C++ #### +rule C++-action +{ + tru64cxx65-C++-action $(<) : $(>) ; +} + +actions tru64cxx65-C++-action +{ + cxx -c -std strict_ansi -msg_display_number -msg_disable 186,450,1115 -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)" +} + +#### Archive #### + +rule Archive-action +{ + tru64cxx65-Archive-action $(<) : $(>) ; +} + +actions updated together piecemeal tru64cxx65-Archive-action +{ + rm -f $(<) + ar r $(<) $(>) cxx_repository/* +} + +