annotate make/windows/projectfiles/common/Makefile @ 1977:c7db7adb83b4

6987107: Add variable to add to but not modify non-fcs version string Reviewed-by: jcoomes, dholmes, andrew, kvn
author ohair
date Tue, 30 Nov 2010 18:07:18 -0800
parents c18cbe5936b8
children 2ca799d83d3c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 971
diff changeset
2 # Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 #
a61af66fc99e Initial load
duke
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 # published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 #
a61af66fc99e Initial load
duke
parents:
diff changeset
9 # This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 # version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 # accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 #
a61af66fc99e Initial load
duke
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 # 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 971
diff changeset
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 971
diff changeset
20 # or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 971
diff changeset
21 # questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 #
a61af66fc99e Initial load
duke
parents:
diff changeset
23 #
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 WorkSpace=$(HOTSPOTWORKSPACE)
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 !ifdef ALT_BOOTDIR
a61af66fc99e Initial load
duke
parents:
diff changeset
28 BootStrapDir=$(ALT_BOOTDIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
29 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
30 !ifdef BOOTDIR
a61af66fc99e Initial load
duke
parents:
diff changeset
31 BootStrapDir=$(BOOTDIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
32 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
33 !ifdef JAVA_HOME
a61af66fc99e Initial load
duke
parents:
diff changeset
34 BootStrapDir=$(JAVA_HOME)
a61af66fc99e Initial load
duke
parents:
diff changeset
35 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
36 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
37 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
38
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
39 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/makedeps.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
40
a61af66fc99e Initial load
duke
parents:
diff changeset
41 # Pick up rules for building JVMTI (JSR-163)
a61af66fc99e Initial load
duke
parents:
diff changeset
42 JvmtiOutDir=$(HOTSPOTBUILDSPACE)\jvmtifiles
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
43 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
44
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
45 Platform=$(HOTSPOTWORKSPACE)/make/windows/platform_$(BUILDARCH)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
46
a61af66fc99e Initial load
duke
parents:
diff changeset
47 default:: $(AdditionalTargets) $(JvmtiGeneratedFiles)
a61af66fc99e Initial load
duke
parents:
diff changeset
48
a61af66fc99e Initial load
duke
parents:
diff changeset
49 IncludeDBs_base=$(HOTSPOTWORKSPACE)/src/share/vm/includeDB_core \
a61af66fc99e Initial load
duke
parents:
diff changeset
50 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_jvmti \
a61af66fc99e Initial load
duke
parents:
diff changeset
51 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_gc \
a61af66fc99e Initial load
duke
parents:
diff changeset
52 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_serial
a61af66fc99e Initial load
duke
parents:
diff changeset
53
a61af66fc99e Initial load
duke
parents:
diff changeset
54 # Parallel gc files
a61af66fc99e Initial load
duke
parents:
diff changeset
55 IncludeDBs_gc=$(HOTSPOTWORKSPACE)/src/share/vm/includeDB_gc_parallel \
a61af66fc99e Initial load
duke
parents:
diff changeset
56 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_shared \
a61af66fc99e Initial load
duke
parents:
diff changeset
57 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_parNew \
a61af66fc99e Initial load
duke
parents:
diff changeset
58 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_parallelScavenge \
442
8fa025608ec6 6771742: Remove duplicate files from G1 merge
jmasa
parents: 196
diff changeset
59 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_concurrentMarkSweep \
8fa025608ec6 6771742: Remove duplicate files from G1 merge
jmasa
parents: 196
diff changeset
60 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_g1
0
a61af66fc99e Initial load
duke
parents:
diff changeset
61
a61af66fc99e Initial load
duke
parents:
diff changeset
62
a61af66fc99e Initial load
duke
parents:
diff changeset
63 IncludeDBs_kernel =$(IncludeDBs_base) \
a61af66fc99e Initial load
duke
parents:
diff changeset
64 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
a61af66fc99e Initial load
duke
parents:
diff changeset
65
a61af66fc99e Initial load
duke
parents:
diff changeset
66 IncludeDBs_core =$(IncludeDBs_base) $(IncludeDBs_gc) \
a61af66fc99e Initial load
duke
parents:
diff changeset
67 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_features
a61af66fc99e Initial load
duke
parents:
diff changeset
68
a61af66fc99e Initial load
duke
parents:
diff changeset
69 IncludeDBs_compiler1=$(IncludeDBs_core) \
a61af66fc99e Initial load
duke
parents:
diff changeset
70 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
a61af66fc99e Initial load
duke
parents:
diff changeset
71
a61af66fc99e Initial load
duke
parents:
diff changeset
72 IncludeDBs_compiler2=$(IncludeDBs_core) \
a61af66fc99e Initial load
duke
parents:
diff changeset
73 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
a61af66fc99e Initial load
duke
parents:
diff changeset
74
a61af66fc99e Initial load
duke
parents:
diff changeset
75 IncludeDBs_tiered=$(IncludeDBs_core) \
a61af66fc99e Initial load
duke
parents:
diff changeset
76 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1 \
a61af66fc99e Initial load
duke
parents:
diff changeset
77 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
a61af66fc99e Initial load
duke
parents:
diff changeset
78
a61af66fc99e Initial load
duke
parents:
diff changeset
79
a61af66fc99e Initial load
duke
parents:
diff changeset
80 !if "$(Variant)" == "compiler1"
a61af66fc99e Initial load
duke
parents:
diff changeset
81 IncludeDBs = $(IncludeDBs_compiler1)
a61af66fc99e Initial load
duke
parents:
diff changeset
82 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
83
a61af66fc99e Initial load
duke
parents:
diff changeset
84 !if "$(Variant)" == "compiler2"
a61af66fc99e Initial load
duke
parents:
diff changeset
85 IncludeDBs = $(IncludeDBs_compiler2)
a61af66fc99e Initial load
duke
parents:
diff changeset
86 # Pick up rules for building adlc
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
87 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
88 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
89
a61af66fc99e Initial load
duke
parents:
diff changeset
90 !if "$(Variant)" == "tiered"
a61af66fc99e Initial load
duke
parents:
diff changeset
91 IncludeDBs = $(IncludeDBs_tiered)
a61af66fc99e Initial load
duke
parents:
diff changeset
92 # Pick up rules for building adlc
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
93 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
94 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
95
a61af66fc99e Initial load
duke
parents:
diff changeset
96 !if "$(Variant)" == "core"
a61af66fc99e Initial load
duke
parents:
diff changeset
97 IncludeDBs = $(IncludeDBs_core)
a61af66fc99e Initial load
duke
parents:
diff changeset
98 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
99
a61af66fc99e Initial load
duke
parents:
diff changeset
100 !if "$(Variant)" == "kernel"
a61af66fc99e Initial load
duke
parents:
diff changeset
101 IncludeDBs = $(IncludeDBs_kernel)
a61af66fc99e Initial load
duke
parents:
diff changeset
102 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
103
a61af66fc99e Initial load
duke
parents:
diff changeset
104 !include $(HOTSPOTWORKSPACE)/make/hotspot_version
a61af66fc99e Initial load
duke
parents:
diff changeset
105
a61af66fc99e Initial load
duke
parents:
diff changeset
106 !if "$(HOTSPOT_RELEASE_VERSION)" != ""
a61af66fc99e Initial load
duke
parents:
diff changeset
107 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)"
a61af66fc99e Initial load
duke
parents:
diff changeset
108 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
109 HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)"
a61af66fc99e Initial load
duke
parents:
diff changeset
110 !endif
1977
c7db7adb83b4 6987107: Add variable to add to but not modify non-fcs version string
ohair
parents: 1552
diff changeset
111 !if "$(USER_RELEASE_SUFFIX)" != ""
c7db7adb83b4 6987107: Add variable to add to but not modify non-fcs version string
ohair
parents: 1552
diff changeset
112 HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal-$(USER_RELEASE_SUFFIX)
c7db7adb83b4 6987107: Add variable to add to but not modify non-fcs version string
ohair
parents: 1552
diff changeset
113 !else
0
a61af66fc99e Initial load
duke
parents:
diff changeset
114 HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal
1977
c7db7adb83b4 6987107: Add variable to add to but not modify non-fcs version string
ohair
parents: 1552
diff changeset
115 !endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
116 !if "$(HOTSPOT_BUILD_VERSION)" != ""
a61af66fc99e Initial load
duke
parents:
diff changeset
117 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)"
a61af66fc99e Initial load
duke
parents:
diff changeset
118 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
119 !if "$(JRE_RELEASE_VERSION)" != ""
a61af66fc99e Initial load
duke
parents:
diff changeset
120 JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)"
a61af66fc99e Initial load
duke
parents:
diff changeset
121 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
122 JRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)"
a61af66fc99e Initial load
duke
parents:
diff changeset
123 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
124
a61af66fc99e Initial load
duke
parents:
diff changeset
125 # Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
a61af66fc99e Initial load
duke
parents:
diff changeset
126 # and if it is not see if we have the src/closed directory
a61af66fc99e Initial load
duke
parents:
diff changeset
127 !if "$(HOTSPOT_VM_DISTRO)" != ""
a61af66fc99e Initial load
duke
parents:
diff changeset
128 HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)"
a61af66fc99e Initial load
duke
parents:
diff changeset
129 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
130 !if exists($(HOTSPOTWORKSPACE)\src\closed)
a61af66fc99e Initial load
duke
parents:
diff changeset
131 HOTSPOT_VM_DISTRO="Java HotSpot(TM)"
a61af66fc99e Initial load
duke
parents:
diff changeset
132 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
133 HOTSPOT_VM_DISTRO="OpenJDK"
a61af66fc99e Initial load
duke
parents:
diff changeset
134 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
135 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
136
a61af66fc99e Initial load
duke
parents:
diff changeset
137 MakeDepsIDEOptions = $(MakeDepsIDEOptions) \
a61af66fc99e Initial load
duke
parents:
diff changeset
138 -includeDB_kernel $(HOTSPOTBUILDSPACE)\includeDB_kernel \
a61af66fc99e Initial load
duke
parents:
diff changeset
139 -includeDB_core $(HOTSPOTBUILDSPACE)\includeDB_core \
a61af66fc99e Initial load
duke
parents:
diff changeset
140 -includeDB_compiler1 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
a61af66fc99e Initial load
duke
parents:
diff changeset
141 -includeDB_compiler2 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
a61af66fc99e Initial load
duke
parents:
diff changeset
142 -includeDB_tiered $(HOTSPOTBUILDSPACE)\includeDB_tiered \
a61af66fc99e Initial load
duke
parents:
diff changeset
143 -platform $(Platform) \
a61af66fc99e Initial load
duke
parents:
diff changeset
144 -define HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \
a61af66fc99e Initial load
duke
parents:
diff changeset
145 -define JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \
a61af66fc99e Initial load
duke
parents:
diff changeset
146 -define HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\"
a61af66fc99e Initial load
duke
parents:
diff changeset
147
a61af66fc99e Initial load
duke
parents:
diff changeset
148 incls:
a61af66fc99e Initial load
duke
parents:
diff changeset
149 @mkdir incls
a61af66fc99e Initial load
duke
parents:
diff changeset
150
a61af66fc99e Initial load
duke
parents:
diff changeset
151 includeDB.current $(ProjectFile) Dependencies: local.make $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class \
a61af66fc99e Initial load
duke
parents:
diff changeset
152 $(IncludeDBs) incls
a61af66fc99e Initial load
duke
parents:
diff changeset
153 @rm -f includeDB $(HOTSPOTBUILDSPACE)\includeDB_kernel \
a61af66fc99e Initial load
duke
parents:
diff changeset
154 $(HOTSPOTBUILDSPACE)\includeDB_core \
a61af66fc99e Initial load
duke
parents:
diff changeset
155 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
a61af66fc99e Initial load
duke
parents:
diff changeset
156 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
a61af66fc99e Initial load
duke
parents:
diff changeset
157 $(HOTSPOTBUILDSPACE)\includeDB_tiered
a61af66fc99e Initial load
duke
parents:
diff changeset
158 @cat $(IncludeDBs_kernel) > $(HOTSPOTBUILDSPACE)\includeDB_kernel
a61af66fc99e Initial load
duke
parents:
diff changeset
159 @cat $(IncludeDBs_core) > $(HOTSPOTBUILDSPACE)\includeDB_core
a61af66fc99e Initial load
duke
parents:
diff changeset
160 @cat $(IncludeDBs_compiler1) > $(HOTSPOTBUILDSPACE)\includeDB_compiler1
a61af66fc99e Initial load
duke
parents:
diff changeset
161 @cat $(IncludeDBs_compiler2) > $(HOTSPOTBUILDSPACE)\includeDB_compiler2
a61af66fc99e Initial load
duke
parents:
diff changeset
162 @cat $(IncludeDBs_tiered) > $(HOTSPOTBUILDSPACE)\includeDB_tiered
a61af66fc99e Initial load
duke
parents:
diff changeset
163 @echo java.cpp jni.h > includeDB
a61af66fc99e Initial load
duke
parents:
diff changeset
164 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps diffs WinGammaPlatform$(VcVersion) \
a61af66fc99e Initial load
duke
parents:
diff changeset
165 $(Platform) includeDB.current $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
a61af66fc99e Initial load
duke
parents:
diff changeset
166 @rm -f includeDB.current
a61af66fc99e Initial load
duke
parents:
diff changeset
167 @cp includeDB includeDB.current
a61af66fc99e Initial load
duke
parents:
diff changeset
168
a61af66fc99e Initial load
duke
parents:
diff changeset
169 lists: $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class FORCE
a61af66fc99e Initial load
duke
parents:
diff changeset
170 @if exist incls rmdir /s /q incls
a61af66fc99e Initial load
duke
parents:
diff changeset
171 @rm -f includeDB
a61af66fc99e Initial load
duke
parents:
diff changeset
172 @cat $(IncludeDBs) > includeDB
a61af66fc99e Initial load
duke
parents:
diff changeset
173 @mkdir incls
a61af66fc99e Initial load
duke
parents:
diff changeset
174 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps WinGammaPlatform$(VcVersion) \
a61af66fc99e Initial load
duke
parents:
diff changeset
175 $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
a61af66fc99e Initial load
duke
parents:
diff changeset
176 @rm -f includeDB.current
a61af66fc99e Initial load
duke
parents:
diff changeset
177 @cp includeDB includeDB.current
a61af66fc99e Initial load
duke
parents:
diff changeset
178
a61af66fc99e Initial load
duke
parents:
diff changeset
179 clean:
a61af66fc99e Initial load
duke
parents:
diff changeset
180 @rm -rf incls $(HOTSPOTBUILDSPACE)/classes
a61af66fc99e Initial load
duke
parents:
diff changeset
181 @rm -f includeDB includeDB.current $(ProjectFile) Dependencies
a61af66fc99e Initial load
duke
parents:
diff changeset
182
a61af66fc99e Initial load
duke
parents:
diff changeset
183 $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class: $(MakeDepsSources)
a61af66fc99e Initial load
duke
parents:
diff changeset
184 @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
a61af66fc99e Initial load
duke
parents:
diff changeset
185 @mkdir $(HOTSPOTBUILDSPACE)\classes
971
0fc81f0a8ca8 6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk
andrew
parents: 442
diff changeset
186 @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\MakeDeps -d $(HOTSPOTBUILDSPACE)/classes $(MakeDepsSources)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
187
a61af66fc99e Initial load
duke
parents:
diff changeset
188 FORCE: