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