From a9bbd7bf700d64f22084eec7905fe3cfee7ab249 Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Mon, 24 Sep 2001 15:22:49 +0000 Subject: [PATCH] Initial commit [SVN r11222] --- intel-win32-tools.jam | 99 ++++++++++++++++++++++++++++++++++++++++ v1/intel-win32-tools.jam | 99 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 198 insertions(+) create mode 100644 intel-win32-tools.jam create mode 100644 v1/intel-win32-tools.jam diff --git a/intel-win32-tools.jam b/intel-win32-tools.jam new file mode 100644 index 000000000..b457b0e50 --- /dev/null +++ b/intel-win32-tools.jam @@ -0,0 +1,99 @@ +# Intel Compiler (on Windows, using the Microsoft Standard Library) + +# (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. + +# Adapted from msvc-tools.jam by Beman Dawes + +# compute INTEL tool path +# You can either put the intel-win32 bin directory in your PATH, or you can set +# INTELROOT to point at the intel-win32 installation directory +INTEL_TOOL_PATH = $(INTELROOT)$(SLASH)bin$(SLASH) ; +INTEL_TOOL_PATH ?= "" ; # Don't clobber adjoining text if INTELROOT isn't set + +flags intel-win32 CFLAGS on : /Zi ; +flags intel-win32 LINKFLAGS on : /DEBUG ; + +flags intel-win32 CFLAGS off : /Od ; +flags intel-win32 CFLAGS speed : /O2 ; +flags intel-win32 CFLAGS space : /O1 ; +flags intel-win32 CFLAGS off : /Ob0 ; +flags intel-win32 CFLAGS on : /Ob1 ; +flags intel-win32 CFLAGS full : /Ob2 ; +flags intel-win32 CFLAGS on : /GX ; +flags intel-win32 CFLAGS on : /GR ; + +# Note that these two options actually imply multithreading support on INTEL +# because there is no single-threaded dynamic runtime library. Specifying +# multi would be a bad idea, though, because no option would be +# matched when the build uses the default settings of dynamic +# and single. +flags intel-win32 CFLAGS release/dynamic : /MD ; +flags intel-win32 CFLAGS debug/dynamic : /MDd ; + +flags intel-win32 CFLAGS release/static/single : /ML ; +flags intel-win32 CFLAGS debug/static/single : /MLd ; +flags intel-win32 CFLAGS release/static/multi : /MT ; +flags intel-win32 CFLAGS debug/static/multi : /MTd ; + +flags intel-win32 DEFINES ; +flags intel-win32 UNDEFS ; +flags intel-win32 HDRS ; + +flags intel-win32 STDHDRS : $(INTELROOT)$(SLASH)include ; +flags intel-win32 STDLIBPATH : $(INTELROOT)$(SLASH)lib ; +flags intel-win32 LIBPATH ; +flags intel-win32 NEEDLIBS ; +flags intel-win32 NEEDLIBS ; +flags intel-win32 LINKFLAGS DLL : /DLL ; + +#### Link #### + +rule Link-action +{ + intel-win32-Link-action $(<) : $(>) ; +} + +actions intel-win32-Link-action bind NEEDLIBS +{ + $(INTEL_TOOL_PATH)xilink /nologo $(LINKFLAGS) /PDB:"$(<[1]:S=.pdb)" /out:"$(<[1])" $(UNDEFS) /LIBPATH:$(LIBPATH) /LIBPATH:$(STDLIBPATH) $(NEEDLIBS) "$(>)" +} + +#### Cc ##### + +rule Cc-action +{ + intel-win32-Cc-action $(<) : $(>) ; +} + +actions intel-win32-Cc-action +{ + $(INTEL_TOOL_PATH)icl /Zm400 -nologo -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -Fo"$(<)" "$(>)" +} + +#### C++ #### +rule C++-action +{ + intel-win32-C++-action $(<) : $(>) ; +} + +actions intel-win32-C++-action +{ + $(INTEL_TOOL_PATH)icl /Zm400 -nologo -GX -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -Fo"$(<)" -Tp"$(>)" +} + +#### Archive #### +rule Archive-action +{ + intel-win32-Archive-action $(<) : $(>) ; +} + +actions updated together piecemeal intel-win32-Archive-action +{ + if exist "$(<)" set _$(<:B)_="$(<)" + $(INTEL_TOOL_PATH)xilink /lib /out:"$(<)" %_$(<:B)_% "$(>)" +} + diff --git a/v1/intel-win32-tools.jam b/v1/intel-win32-tools.jam new file mode 100644 index 000000000..b457b0e50 --- /dev/null +++ b/v1/intel-win32-tools.jam @@ -0,0 +1,99 @@ +# Intel Compiler (on Windows, using the Microsoft Standard Library) + +# (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. + +# Adapted from msvc-tools.jam by Beman Dawes + +# compute INTEL tool path +# You can either put the intel-win32 bin directory in your PATH, or you can set +# INTELROOT to point at the intel-win32 installation directory +INTEL_TOOL_PATH = $(INTELROOT)$(SLASH)bin$(SLASH) ; +INTEL_TOOL_PATH ?= "" ; # Don't clobber adjoining text if INTELROOT isn't set + +flags intel-win32 CFLAGS on : /Zi ; +flags intel-win32 LINKFLAGS on : /DEBUG ; + +flags intel-win32 CFLAGS off : /Od ; +flags intel-win32 CFLAGS speed : /O2 ; +flags intel-win32 CFLAGS space : /O1 ; +flags intel-win32 CFLAGS off : /Ob0 ; +flags intel-win32 CFLAGS on : /Ob1 ; +flags intel-win32 CFLAGS full : /Ob2 ; +flags intel-win32 CFLAGS on : /GX ; +flags intel-win32 CFLAGS on : /GR ; + +# Note that these two options actually imply multithreading support on INTEL +# because there is no single-threaded dynamic runtime library. Specifying +# multi would be a bad idea, though, because no option would be +# matched when the build uses the default settings of dynamic +# and single. +flags intel-win32 CFLAGS release/dynamic : /MD ; +flags intel-win32 CFLAGS debug/dynamic : /MDd ; + +flags intel-win32 CFLAGS release/static/single : /ML ; +flags intel-win32 CFLAGS debug/static/single : /MLd ; +flags intel-win32 CFLAGS release/static/multi : /MT ; +flags intel-win32 CFLAGS debug/static/multi : /MTd ; + +flags intel-win32 DEFINES ; +flags intel-win32 UNDEFS ; +flags intel-win32 HDRS ; + +flags intel-win32 STDHDRS : $(INTELROOT)$(SLASH)include ; +flags intel-win32 STDLIBPATH : $(INTELROOT)$(SLASH)lib ; +flags intel-win32 LIBPATH ; +flags intel-win32 NEEDLIBS ; +flags intel-win32 NEEDLIBS ; +flags intel-win32 LINKFLAGS DLL : /DLL ; + +#### Link #### + +rule Link-action +{ + intel-win32-Link-action $(<) : $(>) ; +} + +actions intel-win32-Link-action bind NEEDLIBS +{ + $(INTEL_TOOL_PATH)xilink /nologo $(LINKFLAGS) /PDB:"$(<[1]:S=.pdb)" /out:"$(<[1])" $(UNDEFS) /LIBPATH:$(LIBPATH) /LIBPATH:$(STDLIBPATH) $(NEEDLIBS) "$(>)" +} + +#### Cc ##### + +rule Cc-action +{ + intel-win32-Cc-action $(<) : $(>) ; +} + +actions intel-win32-Cc-action +{ + $(INTEL_TOOL_PATH)icl /Zm400 -nologo -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -Fo"$(<)" "$(>)" +} + +#### C++ #### +rule C++-action +{ + intel-win32-C++-action $(<) : $(>) ; +} + +actions intel-win32-C++-action +{ + $(INTEL_TOOL_PATH)icl /Zm400 -nologo -GX -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -Fo"$(<)" -Tp"$(>)" +} + +#### Archive #### +rule Archive-action +{ + intel-win32-Archive-action $(<) : $(>) ; +} + +actions updated together piecemeal intel-win32-Archive-action +{ + if exist "$(<)" set _$(<:B)_="$(<)" + $(INTEL_TOOL_PATH)xilink /lib /out:"$(<)" %_$(<:B)_% "$(>)" +} +