make/windows/makefiles/launcher.make

Thu, 10 Feb 2011 13:03:22 +0100

author
sla
date
Thu, 10 Feb 2011 13:03:22 +0100
changeset 2540
15d6977f04b0
parent 2369
aa6e219afbf1
child 2590
99bd05619fa4
permissions
-rw-r--r--

7017824: Add support for creating 64-bit Visual Studio projects
Summary: Updated create.bat and ProjectCreator
Reviewed-by: brutisso, stefank, ohair

sla@2327 1 #
sla@2327 2 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
sla@2327 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
sla@2327 4 #
sla@2327 5 # This code is free software; you can redistribute it and/or modify it
sla@2327 6 # under the terms of the GNU General Public License version 2 only, as
sla@2327 7 # published by the Free Software Foundation.
sla@2327 8 #
sla@2327 9 # This code is distributed in the hope that it will be useful, but WITHOUT
sla@2327 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
sla@2327 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
sla@2327 12 # version 2 for more details (a copy is included in the LICENSE file that
sla@2327 13 # accompanied this code).
sla@2327 14 #
sla@2327 15 # You should have received a copy of the GNU General Public License version
sla@2327 16 # 2 along with this work; if not, write to the Free Software Foundation,
sla@2327 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
sla@2327 18 #
sla@2327 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
sla@2327 20 # or visit www.oracle.com if you need additional information or have any
sla@2327 21 # questions.
sla@2327 22 #
sla@2327 23 #
sla@2327 24
sla@2369 25
sla@2369 26 LAUNCHER_FLAGS=$(CPP_FLAGS) $(ARCHFLAG) \
sla@2327 27 /D FULL_VERSION=\"$(HOTSPOT_RELEASE_VERSION)\" \
sla@2327 28 /D JDK_MAJOR_VERSION=\"$(JDK_MAJOR_VERSION)\" \
sla@2327 29 /D JDK_MINOR_VERSION=\"$(JDK_MINOR_VERSION)\" \
sla@2327 30 /D GAMMA \
sla@2327 31 /D LAUNCHER_TYPE=\"gamma\" \
sla@2327 32 /D _CRT_SECURE_NO_WARNINGS \
sla@2327 33 /D _CRT_SECURE_NO_DEPRECATE \
sla@2327 34 /D LINK_INTO_LIBJVM \
sla@2327 35 /I $(WorkSpace)\src\os\windows\launcher \
sla@2369 36 /I $(WorkSpace)\src\share\tools\launcher \
sla@2369 37 /I $(WorkSpace)\src\share\vm\prims \
sla@2369 38 /I $(WorkSpace)\src\share\vm \
sla@2369 39 /I $(WorkSpace)\src\cpu\$(Platform_arch)\vm \
sla@2369 40 /I $(WorkSpace)\src\os\windows\vm
sla@2327 41
sla@2327 42 LINK_FLAGS=/manifest $(HS_INTERNAL_NAME).lib kernel32.lib user32.lib /nologo /machine:$(MACHINE) /map /debug /subsystem:console
sla@2327 43
sla@2327 44 !if "$(COMPILER_NAME)" == "VS2005"
sla@2327 45 # This VS2005 compiler has /GS as a default and requires bufferoverflowU.lib
sla@2327 46 # on the link command line, otherwise we get missing __security_check_cookie
sla@2327 47 # externals at link time. Even with /GS-, you need bufferoverflowU.lib.
sla@2327 48 BUFFEROVERFLOWLIB = bufferoverflowU.lib
sla@2327 49 LINK_FLAGS = $(LINK_FLAGS) $(BUFFEROVERFLOWLIB)
sla@2327 50 !endif
sla@2327 51
sla@2369 52 LAUNCHERDIR = $(WorkSpace)/src/os/windows/launcher
sla@2369 53 LAUNCHERDIR_SHARE = $(WorkSpace)/src/share/tools/launcher
sla@2327 54
sla@2327 55 OUTDIR = launcher
sla@2327 56
sla@2327 57 {$(LAUNCHERDIR)}.c{$(OUTDIR)}.obj:
sla@2369 58 -mkdir $(OUTDIR) 2>NUL >NUL
sla@2369 59 $(CPP) $(LAUNCHER_FLAGS) /c /Fo$@ $<
sla@2327 60
sla@2327 61 {$(LAUNCHERDIR_SHARE)}.c{$(OUTDIR)}.obj:
sla@2369 62 -mkdir $(OUTDIR) 2>NUL >NUL
sla@2369 63 $(CPP) $(LAUNCHER_FLAGS) /c /Fo$@ $<
sla@2327 64
sla@2327 65 $(OUTDIR)\*.obj: $(LAUNCHERDIR)\*.c $(LAUNCHERDIR)\*.h $(LAUNCHERDIR_SHARE)\*.c $(LAUNCHERDIR_SHARE)\*.h
sla@2327 66
sla@2369 67 launcher: $(OUTDIR)\java.obj $(OUTDIR)\java_md.obj $(OUTDIR)\jli_util.obj
sla@2369 68 echo $(JAVA_HOME) > jdkpath.txt
sla@2369 69 $(LINK) $(LINK_FLAGS) /out:hotspot.exe $**
sla@2327 70
sla@2327 71

mercurial