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