zgu@2590: # mikael@4153: # Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. zgu@2590: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. zgu@2590: # zgu@2590: # This code is free software; you can redistribute it and/or modify it zgu@2590: # under the terms of the GNU General Public License version 2 only, as zgu@2590: # published by the Free Software Foundation. zgu@2590: # zgu@2590: # This code is distributed in the hope that it will be useful, but WITHOUT zgu@2590: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or zgu@2590: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License zgu@2590: # version 2 for more details (a copy is included in the LICENSE file that zgu@2590: # accompanied this code). zgu@2590: # zgu@2590: # You should have received a copy of the GNU General Public License version zgu@2590: # 2 along with this work; if not, write to the Free Software Foundation, zgu@2590: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. zgu@2590: # zgu@2590: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA zgu@2590: # or visit www.oracle.com if you need additional information or have any zgu@2590: # questions. zgu@2590: # zgu@2590: # zgu@2590: zgu@2590: erikj@3518: LAUNCHER_FLAGS=$(CXX_FLAGS) $(ARCHFLAG) \ zgu@2590: /D FULL_VERSION=\"$(HOTSPOT_RELEASE_VERSION)\" \ zgu@2590: /D JDK_MAJOR_VERSION=\"$(JDK_MAJOR_VERSION)\" \ zgu@2590: /D JDK_MINOR_VERSION=\"$(JDK_MINOR_VERSION)\" \ zgu@2590: /D GAMMA \ zgu@2590: /D LAUNCHER_TYPE=\"gamma\" \ zgu@2590: /D _CRT_SECURE_NO_WARNINGS \ zgu@2590: /D _CRT_SECURE_NO_DEPRECATE \ zgu@2590: /D LINK_INTO_LIBJVM \ zgu@2590: /I $(WorkSpace)\src\os\windows\launcher \ zgu@2590: /I $(WorkSpace)\src\share\tools\launcher \ zgu@2590: /I $(WorkSpace)\src\share\vm\prims \ zgu@2590: /I $(WorkSpace)\src\share\vm \ zgu@2590: /I $(WorkSpace)\src\cpu\$(Platform_arch)\vm \ zgu@2590: /I $(WorkSpace)\src\os\windows\vm zgu@2590: erikj@3518: LD_FLAGS=/manifest $(HS_INTERNAL_NAME).lib kernel32.lib user32.lib /nologo /machine:$(MACHINE) /map /debug /subsystem:console zgu@2590: zgu@2590: !if "$(COMPILER_NAME)" == "VS2005" zgu@2590: # This VS2005 compiler has /GS as a default and requires bufferoverflowU.lib zgu@2590: # on the link command line, otherwise we get missing __security_check_cookie zgu@2590: # externals at link time. Even with /GS-, you need bufferoverflowU.lib. zgu@2590: BUFFEROVERFLOWLIB = bufferoverflowU.lib erikj@3518: LD_FLAGS = $(LD_FLAGS) $(BUFFEROVERFLOWLIB) zgu@2590: !endif zgu@2590: zgu@2590: !if "$(COMPILER_NAME)" == "VS2010" && "$(BUILDARCH)" == "i486" erikj@3518: LD_FLAGS = /SAFESEH $(LD_FLAGS) zgu@2590: !endif zgu@2590: zgu@2590: LAUNCHERDIR = $(WorkSpace)/src/os/windows/launcher zgu@2590: LAUNCHERDIR_SHARE = $(WorkSpace)/src/share/tools/launcher zgu@2590: zgu@2590: OUTDIR = launcher zgu@2590: zgu@2590: {$(LAUNCHERDIR)}.c{$(OUTDIR)}.obj: zgu@2590: -mkdir $(OUTDIR) 2>NUL >NUL erikj@3518: $(CXX) $(LAUNCHER_FLAGS) /c /Fo$@ $< zgu@2590: zgu@2590: {$(LAUNCHERDIR_SHARE)}.c{$(OUTDIR)}.obj: zgu@2590: -mkdir $(OUTDIR) 2>NUL >NUL erikj@3518: $(CXX) $(LAUNCHER_FLAGS) /c /Fo$@ $< zgu@2590: zgu@2590: $(OUTDIR)\*.obj: $(LAUNCHERDIR)\*.c $(LAUNCHERDIR)\*.h $(LAUNCHERDIR_SHARE)\*.c $(LAUNCHERDIR_SHARE)\*.h zgu@2590: zgu@2590: launcher: $(OUTDIR)\java.obj $(OUTDIR)\java_md.obj $(OUTDIR)\jli_util.obj zgu@2590: echo $(JAVA_HOME) > jdkpath.txt erikj@3518: $(LD) $(LD_FLAGS) /out:hotspot.exe $**