author | ctornqvi |
Thu, 17 Dec 2015 12:16:03 -0800 | |
changeset 35183 | 30271b37bd14 |
parent 33977 | a27f0d8a7861 |
permissions | -rw-r--r-- |
1 | 1 |
# |
33957
39113ae98993
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
25337
diff
changeset
|
2 |
# Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. |
1 | 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 |
# |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
3818
diff
changeset
|
19 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
3818
diff
changeset
|
20 |
# or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
3818
diff
changeset
|
21 |
# questions. |
33957
39113ae98993
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
25337
diff
changeset
|
22 |
# |
1 | 23 |
# |
24 |
||
7452
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
25 |
!ifdef LOCAL_MAKE |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
26 |
!include $(LOCAL_MAKE) |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
27 |
!endif |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
28 |
|
7397 | 29 |
|
1 | 30 |
WorkSpace=$(HOTSPOTWORKSPACE) |
31 |
||
32 |
!ifdef ALT_BOOTDIR |
|
33 |
BootStrapDir=$(ALT_BOOTDIR) |
|
34 |
!else |
|
35 |
!ifdef BOOTDIR |
|
36 |
BootStrapDir=$(BOOTDIR) |
|
37 |
!else |
|
38 |
!ifdef JAVA_HOME |
|
39 |
BootStrapDir=$(JAVA_HOME) |
|
7452
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
40 |
!else |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
41 |
!ifdef HOTSPOTJDKDIST |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
42 |
BootStrapDir=$(HOTSPOTJDKDIST) |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
43 |
!endif |
1 | 44 |
!endif |
45 |
!endif |
|
46 |
!endif |
|
47 |
||
18025 | 48 |
# if hotspot-only build and/or OPENJDK isn't passed down, need to set OPENJDK |
49 |
!ifndef OPENJDK |
|
50 |
!if !exists($(WorkSpace)\src\closed) |
|
51 |
OPENJDK=true |
|
52 |
!endif |
|
53 |
!endif |
|
7452
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
54 |
|
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
55 |
|
7397 | 56 |
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/projectcreator.make |
7452
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
57 |
!include $(WorkSpace)/make/windows/makefiles/compile.make |
1 | 58 |
|
59 |
# Pick up rules for building JVMTI (JSR-163) |
|
7397 | 60 |
JvmtiOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\jvmtifiles |
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
61 |
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make |
1 | 62 |
|
18025 | 63 |
# Pick up rules for building trace |
64 |
TraceOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\tracefiles |
|
65 |
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/trace.make |
|
66 |
||
1 | 67 |
!if "$(Variant)" == "compiler2" |
68 |
# Pick up rules for building adlc |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
69 |
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make |
1 | 70 |
!endif |
71 |
||
72 |
!if "$(Variant)" == "tiered" |
|
73 |
# Pick up rules for building adlc |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
74 |
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make |
1 | 75 |
!endif |
76 |
||
7452
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
77 |
HS_INTERNAL_NAME=jvm |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
78 |
|
18025 | 79 |
default:: $(AdditionalTargets) $(JvmtiGeneratedFiles) $(TraceGeneratedFiles) |
1 | 80 |
|
24238 | 81 |
!include $(HOTSPOTWORKSPACE)/make/jdk_version |
1 | 82 |
|
35183
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
83 |
VERSION_MAJOR=$(STANDALONE_JDK_MAJOR_VER) |
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
84 |
VERSION_MINOR=$(STANDALONE_JDK_MINOR_VER) |
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
85 |
VERSION_SECURITY=$(STANDALONE_JDK_SECURITY_VER) |
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
86 |
VERSION_PATCH=$(STANDALONE_JDK_PATCH_VER) |
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
87 |
|
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
88 |
!if "$(VERSION_BUILD)" == "" |
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
89 |
VERSION_BUILD=0 |
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
90 |
!endif |
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
91 |
|
33957
39113ae98993
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
25337
diff
changeset
|
92 |
!if "$(VERSION_OPT)" != "" |
35183
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
93 |
HOTSPOT_PRE = internal-$(VERSION_OPT) |
1 | 94 |
!else |
35183
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
95 |
HOTSPOT_PRE = internal |
1 | 96 |
!endif |
35183
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
97 |
!if "$(VERSION_STRING)" == "" |
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
98 |
VERSION_STRING="\\\"$(VERSION_MAJOR)-$(HOTSPOT_PRE)+$(VERSION_BUILD)-$(USERNAME).vsbuild\\\"" |
24238 | 99 |
!endif |
35183
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
100 |
HOTSPOT_VERSION_STRING=$(VERSION_STRING) |
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
101 |
|
1 | 102 |
# Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set, |
103 |
# and if it is not see if we have the src/closed directory |
|
104 |
!if "$(HOTSPOT_VM_DISTRO)" != "" |
|
14629
9a0420652ef1
8003934: Fix generation of malformed options to Projectcreator
neliasso
parents:
13963
diff
changeset
|
105 |
HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO) |
1 | 106 |
!else |
107 |
!if exists($(HOTSPOTWORKSPACE)\src\closed) |
|
14629
9a0420652ef1
8003934: Fix generation of malformed options to Projectcreator
neliasso
parents:
13963
diff
changeset
|
108 |
HOTSPOT_VM_DISTRO="\\\"Java HotSpot(TM)\\\"" |
1 | 109 |
!else |
14629
9a0420652ef1
8003934: Fix generation of malformed options to Projectcreator
neliasso
parents:
13963
diff
changeset
|
110 |
HOTSPOT_VM_DISTRO="\\\"OpenJDK\\\"" |
1 | 111 |
!endif |
35183
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
112 |
|
1 | 113 |
!endif |
114 |
||
35183
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
115 |
|
24427
f657efe9faf6
8042471: Unable to build JDK 9 Hotspot within VS2010
ctornqvi
parents:
24238
diff
changeset
|
116 |
|
35183
30271b37bd14
8145400: ProjectCreator broken after JEP 223 changes
ctornqvi
parents:
33977
diff
changeset
|
117 |
ReleaseOptions = -define HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO) -define HOTSPOT_VERSION_STRING=$(HOTSPOT_VERSION_STRING) -define VERSION_MAJOR=$(VERSION_MAJOR) -define VERSION_MINOR=$(VERSION_MINOR) -define VERSION_SECURITY=$(VERSION_SECURITY) -define VERSION_PATCH=$(VERSION_PATCH) -define VERSION_BUILD=$(VERSION_BUILD) -define VERSION_STRING=$(VERSION_STRING) |
14629
9a0420652ef1
8003934: Fix generation of malformed options to Projectcreator
neliasso
parents:
13963
diff
changeset
|
118 |
ProjectCreatorIDEOptions = $(ProjectCreatorIDEOptions) $(ReleaseOptions) |
1 | 119 |
|
8303
81a0b8663748
7017824: Add support for creating 64-bit Visual Studio projects
sla
parents:
7452
diff
changeset
|
120 |
$(HOTSPOTBUILDSPACE)/$(ProjectFile): $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class |
13477
2ac00cd97cf6
7190512: Fix for 7181175 broke hotspot/make/windows/create.bat builds
tbell
parents:
8303
diff
changeset
|
121 |
@$(RUN_JAVA) -Djava.class.path="$(HOTSPOTBUILDSPACE)/classes" ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions) |
1 | 122 |
|
123 |
clean: |
|
7397 | 124 |
@rm -rf $(HOTSPOTBUILDSPACE)/classes |
8303
81a0b8663748
7017824: Add support for creating 64-bit Visual Studio projects
sla
parents:
7452
diff
changeset
|
125 |
@rm -r $(HOTSPOTBUILDSPACE)/$(ProjectFile) |
1 | 126 |
|
7397 | 127 |
$(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources) |
1 | 128 |
@if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes |
129 |
@mkdir $(HOTSPOTBUILDSPACE)\classes |
|
7397 | 130 |
@$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources) |
1 | 131 |
|
132 |
FORCE: |