duke@435: @echo off duke@435: REM trims@1907: REM Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved. duke@435: REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@435: REM duke@435: REM This code is free software; you can redistribute it and/or modify it duke@435: REM under the terms of the GNU General Public License version 2 only, as duke@435: REM published by the Free Software Foundation. duke@435: REM duke@435: REM This code is distributed in the hope that it will be useful, but WITHOUT duke@435: REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@435: REM FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@435: REM version 2 for more details (a copy is included in the LICENSE file that duke@435: REM accompanied this code). duke@435: REM duke@435: REM You should have received a copy of the GNU General Public License version duke@435: REM 2 along with this work; if not, write to the Free Software Foundation, duke@435: REM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@435: REM trims@1907: REM Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA trims@1907: REM or visit www.oracle.com if you need additional information or have any trims@1907: REM questions. duke@435: REM duke@435: REM duke@435: duke@435: REM Cross compile IA64 compiler2 VM duke@435: REM Usage: duke@435: REM cross_compile flavor workspace bootstrap_dir [build_id] duke@435: REM %1 %2 %3 %4 duke@435: REM duke@435: REM Set current directory duke@435: for /F %%i in ('cd') do set CD=%%i duke@435: echo Setting up Visual C++ Compilation Environment duke@435: if "%MSVCDir%" == "" goto setdir1 duke@435: goto setenv1 duke@435: :setdir1 duke@435: SET MSVCDir=C:\Program Files\Microsoft Visual Studio\VC98 duke@435: :setenv1 duke@435: SET OLDINCLUDE=%INCLUDE% duke@435: SET OLDLIB=%LIB% duke@435: SET OLDPATH=%PATH% duke@435: call "%MSVCDir%\Bin\VCVARS32" kamg@526: call %2\make\windows\build %1 adlc %2 %3 %4 duke@435: SET INCLUDE=%OLDINCLUDE% duke@435: SET LIB=%OLDLIB% duke@435: SET PATH=%OLDPATH% duke@435: echo Setting up 64-BIT Compilation Environment duke@435: if "%MSSdk%" == "" goto setdir2 duke@435: goto setenv2 duke@435: :setdir2 duke@435: SET MSSdk=C:\Program Files\Microsoft SDK duke@435: :setenv2 duke@435: call "%MSSdk%\SetEnv.bat" /XP64 duke@435: SET ALT_ADLC_PATH=%CD%\windows_i486_compiler2\generated kamg@526: call %2\make\windows\build %1 compiler2 %2 %3 %4 duke@435: SET INCLUDE=%OLDINCLUDE% duke@435: SET LIB=%OLDLIB% duke@435: SET PATH=%OLDPATH% duke@435: SET OLDINCLUDE= duke@435: SET OLDLIB= duke@435: SET OLDPATH=