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