annotate make/windows/makefiles/launcher.make @ 2184:5d801e6b9a80

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