1 #
2 # Copyright (c) 1998, 2014, 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 #
106 VARIANT_TEXT=Server
107 realVariant=tiered
108 !else
109 VARIANT_TEXT=Server
110 !endif
111 !elseif "$(Variant)" == "tiered"
112 VARIANT_TEXT=Tiered
113 !endif
114
115 #########################################################################
116 # Parameters for VERSIONINFO resource for jvm.dll.
117 # These can be overridden via the nmake.exe command line.
118 # They are overridden by RE during the control builds.
119 #
120 !include "$(WorkSpace)/make/jdk_version"
121
122 # Define HOTSPOT_VM_DISTRO based on settings in make/openjdk_distro
123 # or make/hotspot_distro.
124 !ifndef HOTSPOT_VM_DISTRO
125 !if exists($(WorkSpace)\src\closed)
126
127 # if the build is for JDK6 or earlier version, it should include jdk6_hotspot_distro,
128 # instead of hotspot_distro.
129 JDK6_OR_EARLIER=0
130 !if "$(JDK_MAJOR_VERSION)" != "" && "$(JDK_MINOR_VERSION)" != "" && "$(JDK_MICRO_VERSION)" != ""
131 !if $(JDK_MAJOR_VERSION) == 1 && $(JDK_MINOR_VERSION) < 7
132 JDK6_OR_EARLIER=1
133 !endif
134 !else
135 !if $(JDK_MAJOR_VER) == 1 && $(JDK_MINOR_VER) < 7
136 JDK6_OR_EARLIER=1
137 !endif
138 !endif
139
140 !if $(JDK6_OR_EARLIER) == 1
141 !include $(WorkSpace)\make\jdk6_hotspot_distro
142 !else
143 !include $(WorkSpace)\make\hotspot_distro
144 !endif
145 !else
146 !include $(WorkSpace)\make\openjdk_distro
147 !endif
148 !endif
149
150 # Following the Web Start / Plugin model here....
151 # We can have update versions like "01a", but Windows requires
152 # we use only integers in the file version field. So:
153 # JDK_UPDATE_VER = JDK_UPDATE_VERSION * 10 + EXCEPTION_VERSION
154 #
155 JDK_UPDATE_VER=0
156 JDK_BUILD_NUMBER=0
157
158 HS_FILEDESC=$(HOTSPOT_VM_DISTRO) $(ARCH_TEXT) $(VARIANT_TEXT) VM
159
160 # JDK ProductVersion:
161 # 1.5.0_<wx>-b<yz> will have DLL version 5.0.wx*10.yz
162 # Thus, 1.5.0_10-b04 will be 5.0.100.4
163 # 1.6.0-b01 will be 6.0.0.1
164 # 1.6.0_01a-b02 will be 6.0.11.2
165 #
166 # JDK_* variables are defined in make/jdk_version or on command line
167 #
168 JDK_VER=$(JDK_MINOR_VER),$(JDK_MICRO_VER),$(JDK_UPDATE_VER),$(JDK_BUILD_NUMBER)
169 JDK_DOTVER=$(JDK_MINOR_VER).$(JDK_MICRO_VER).$(JDK_UPDATE_VER).$(JDK_BUILD_NUMBER)
170 !if "$(JRE_RELEASE_VERSION)" == ""
171 JRE_RELEASE_VER=$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)
172 !else
173 JRE_RELEASE_VER=$(JRE_RELEASE_VERSION)
174 !endif
175 !if "$(JDK_MKTG_VERSION)" == ""
176 JDK_MKTG_VERSION=$(JDK_MINOR_VER).$(JDK_MICRO_VER)
177 !endif
178
179 # Hotspot Express VM FileVersion:
180 # 10.0-b<yz> will have DLL version 10.0.0.yz (need 4 numbers).
181 #
182 #
183 HS_VER=$(JDK_VER)
184 HS_DOTVER=$(JDK_DOTVER)
185
186 !if "$(HOTSPOT_RELEASE_VERSION)" == ""
187 HOTSPOT_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
188 !endif
189
190 !if "$(HOTSPOT_BUILD_VERSION)" == ""
191 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)
192 !else
193 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
194 !endif
195
196 # End VERSIONINFO parameters
197
198 # if hotspot-only build and/or OPENJDK isn't passed down, need to set OPENJDK
199 !ifndef OPENJDK
200 !if !exists($(WorkSpace)\src\closed)
201 OPENJDK=true
202 !endif
203 !endif
204
205 # We don't support SA on ia64, and we can't
206 # build it if we are using a version of Vis Studio
207 # older than .Net 2003.
208 # SA_INCLUDE and SA_LIB are hold-overs from a previous
209 # implementation in which we could build SA using
210 # Debugging Tools For Windows, in which the .h/.lib files
211 # and the .dlls are in different places than
212 # they are for Vis Studio .Net 2003.
213 # If that code ever needs to be resurrected, these vars
263
264 clean: checkVariant
265 - rm -r -f $(variantDir)
266
267 $(variantDir):
268 mkdir $(variantDir)
269
270 $(variantDir)\local.make: checks
271 @ echo # Generated file > $@
272 @ echo Variant=$(realVariant) >> $@
273 @ echo WorkSpace=$(WorkSpace) >> $@
274 @ echo BootStrapDir=$(BootStrapDir) >> $@
275 @ if "$(USERNAME)" NEQ "" echo BuildUser=$(USERNAME) >> $@
276 @ echo HS_VER=$(HS_VER) >> $@
277 @ echo HS_DOTVER=$(HS_DOTVER) >> $@
278 @ echo HS_COMPANY=$(COMPANY_NAME) >> $@
279 @ echo HS_FILEDESC=$(HS_FILEDESC) >> $@
280 @ echo HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO) >> $@
281 @ if "$(OPENJDK)" NEQ "" echo OPENJDK=$(OPENJDK) >> $@
282 @ echo HS_COPYRIGHT=$(HOTSPOT_VM_COPYRIGHT) >> $@
283 @ echo HS_NAME=$(PRODUCT_NAME) $(JDK_MKTG_VERSION) >> $@
284 @ echo HS_BUILD_VER=$(HS_BUILD_VER) >> $@
285 @ echo BUILD_WIN_SA=$(BUILD_WIN_SA) >> $@
286 @ echo SA_BUILD_VERSION=$(HS_BUILD_VER) >> $@
287 @ echo SA_INCLUDE=$(SA_INCLUDE) >> $@
288 @ echo SA_LIB=$(SA_LIB) >> $@
289 @ echo JDK_VER=$(JDK_VER) >> $@
290 @ echo JDK_DOTVER=$(JDK_DOTVER) >> $@
291 @ echo JRE_RELEASE_VER=$(JRE_RELEASE_VER) >> $@
292 @ echo BUILDARCH=$(BUILDARCH) >> $@
293 @ echo Platform_arch=$(Platform_arch) >> $@
294 @ echo Platform_arch_model=$(Platform_arch_model) >> $@
295 @ echo CXX=$(CXX) >> $@
296 @ echo LD=$(LD) >> $@
297 @ echo MT=$(MT) >> $@
298 @ echo RC=$(RC) >> $@
299 @ sh $(WorkSpace)/make/windows/get_msc_ver.sh >> $@
300 @ if "$(ENABLE_FULL_DEBUG_SYMBOLS)" NEQ "" echo ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS) >> $@
301 @ if "$(ZIP_DEBUGINFO_FILES)" NEQ "" echo ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES) >> $@
302 @ if "$(RM)" NEQ "" echo RM=$(RM) >> $@
303 @ if "$(CP)" NEQ "" echo CP=$(CP) >> $@
304 @ if "$(MV)" NEQ "" echo MV=$(MV) >> $@
305 @ if "$(ZIPEXE)" NEQ "" echo ZIPEXE=$(ZIPEXE) >> $@
306
307 checks: checkVariant checkWorkSpace checkSA
308
309 checkVariant:
310 @ if "$(Variant)"=="" echo Need to specify "Variant=[tiered|compiler2|compiler1|core]" && false
311 @ if "$(Variant)" NEQ "tiered" if "$(Variant)" NEQ "compiler2" if "$(Variant)" NEQ "compiler1" if "$(Variant)" NEQ "core" \
|
1 #
2 # Copyright (c) 1998, 2015, 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 #
106 VARIANT_TEXT=Server
107 realVariant=tiered
108 !else
109 VARIANT_TEXT=Server
110 !endif
111 !elseif "$(Variant)" == "tiered"
112 VARIANT_TEXT=Tiered
113 !endif
114
115 #########################################################################
116 # Parameters for VERSIONINFO resource for jvm.dll.
117 # These can be overridden via the nmake.exe command line.
118 # They are overridden by RE during the control builds.
119 #
120 !include "$(WorkSpace)/make/jdk_version"
121
122 # Define HOTSPOT_VM_DISTRO based on settings in make/openjdk_distro
123 # or make/hotspot_distro.
124 !ifndef HOTSPOT_VM_DISTRO
125 !if exists($(WorkSpace)\src\closed)
126 !include $(WorkSpace)\make\hotspot_distro
127 !else
128 !include $(WorkSpace)\make\openjdk_distro
129 !endif
130 !endif
131
132 HS_FILEDESC=$(HOTSPOT_VM_DISTRO) $(ARCH_TEXT) $(VARIANT_TEXT) VM
133
134 # JDK ProductVersion:
135 # 1.5.0_<wx>-b<yz> will have DLL version 5.0.wx*10.yz
136 # Thus, 1.5.0_10-b04 will be 5.0.100.4
137 # 1.6.0-b01 will be 6.0.0.1
138 # 1.6.0_01a-b02 will be 6.0.11.2
139 #
140 # STANDALONE_JDK_* variables are defined in make/jdk_version or on command line
141 #
142 !if "$(JDK_VER)" == ""
143 JDK_VER=$(STANDALONE_JDK_MAJOR_VER),$(STANDALONE_JDK_MINOR_VER),$(STANDALONE_JDK_SECURITY_VER),$(STANDALONE_JDK_PATCH_VER)
144 !endif
145 !if "$(JDK_DOTVER)" == ""
146 JDK_DOTVER=$(STANDALONE_JDK_MAJOR_VER).$(STANDALONE_JDK_MINOR_VER).$(STANDALONE_JDK_SECURITY_VER).$(STANDALONE_JDK_PATCH_VER)
147 !endif
148 !if "$(VERSION_SHORT)" == ""
149 VERSION_SHORT=$(STANDALONE_JDK_MAJOR_VER).$(STANDALONE_JDK_MINOR_VER).$(STANDALONE_JDK_SECURITY_VER)
150 !endif
151
152 HS_VER=$(JDK_VER)
153 HS_DOTVER=$(JDK_DOTVER)
154
155 !if "$(HOTSPOT_RELEASE_VERSION)" == ""
156 HOTSPOT_RELEASE_VERSION=$(VERSION_STRING)
157 !endif
158
159 !if "$(HOTSPOT_VERSION_STRING)" == ""
160 HOTSPOT_VERSION_STRING=$(HOTSPOT_RELEASE_VERSION)
161 !endif
162
163 # End VERSIONINFO parameters
164
165 # if hotspot-only build and/or OPENJDK isn't passed down, need to set OPENJDK
166 !ifndef OPENJDK
167 !if !exists($(WorkSpace)\src\closed)
168 OPENJDK=true
169 !endif
170 !endif
171
172 # We don't support SA on ia64, and we can't
173 # build it if we are using a version of Vis Studio
174 # older than .Net 2003.
175 # SA_INCLUDE and SA_LIB are hold-overs from a previous
176 # implementation in which we could build SA using
177 # Debugging Tools For Windows, in which the .h/.lib files
178 # and the .dlls are in different places than
179 # they are for Vis Studio .Net 2003.
180 # If that code ever needs to be resurrected, these vars
230
231 clean: checkVariant
232 - rm -r -f $(variantDir)
233
234 $(variantDir):
235 mkdir $(variantDir)
236
237 $(variantDir)\local.make: checks
238 @ echo # Generated file > $@
239 @ echo Variant=$(realVariant) >> $@
240 @ echo WorkSpace=$(WorkSpace) >> $@
241 @ echo BootStrapDir=$(BootStrapDir) >> $@
242 @ if "$(USERNAME)" NEQ "" echo BuildUser=$(USERNAME) >> $@
243 @ echo HS_VER=$(HS_VER) >> $@
244 @ echo HS_DOTVER=$(HS_DOTVER) >> $@
245 @ echo HS_COMPANY=$(COMPANY_NAME) >> $@
246 @ echo HS_FILEDESC=$(HS_FILEDESC) >> $@
247 @ echo HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO) >> $@
248 @ if "$(OPENJDK)" NEQ "" echo OPENJDK=$(OPENJDK) >> $@
249 @ echo HS_COPYRIGHT=$(HOTSPOT_VM_COPYRIGHT) >> $@
250 @ echo HS_NAME=$(PRODUCT_NAME) $(VERSION_SHORT) >> $@
251 @ echo HOTSPOT_VERSION_STRING=$(HOTSPOT_VERSION_STRING) >> $@
252 @ echo BUILD_WIN_SA=$(BUILD_WIN_SA) >> $@
253 @ echo SA_BUILD_VERSION=$(HOTSPOT_VERSION_STRING) >> $@
254 @ echo SA_INCLUDE=$(SA_INCLUDE) >> $@
255 @ echo SA_LIB=$(SA_LIB) >> $@
256 @ echo JDK_VER=$(JDK_VER) >> $@
257 @ echo JDK_DOTVER=$(JDK_DOTVER) >> $@
258 @ echo VERSION_STRING=$(VERSION_STRING) >> $@
259 @ echo BUILDARCH=$(BUILDARCH) >> $@
260 @ echo Platform_arch=$(Platform_arch) >> $@
261 @ echo Platform_arch_model=$(Platform_arch_model) >> $@
262 @ echo CXX=$(CXX) >> $@
263 @ echo LD=$(LD) >> $@
264 @ echo MT=$(MT) >> $@
265 @ echo RC=$(RC) >> $@
266 @ sh $(WorkSpace)/make/windows/get_msc_ver.sh >> $@
267 @ if "$(ENABLE_FULL_DEBUG_SYMBOLS)" NEQ "" echo ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS) >> $@
268 @ if "$(ZIP_DEBUGINFO_FILES)" NEQ "" echo ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES) >> $@
269 @ if "$(RM)" NEQ "" echo RM=$(RM) >> $@
270 @ if "$(CP)" NEQ "" echo CP=$(CP) >> $@
271 @ if "$(MV)" NEQ "" echo MV=$(MV) >> $@
272 @ if "$(ZIPEXE)" NEQ "" echo ZIPEXE=$(ZIPEXE) >> $@
273
274 checks: checkVariant checkWorkSpace checkSA
275
276 checkVariant:
277 @ if "$(Variant)"=="" echo Need to specify "Variant=[tiered|compiler2|compiler1|core]" && false
278 @ if "$(Variant)" NEQ "tiered" if "$(Variant)" NEQ "compiler2" if "$(Variant)" NEQ "compiler1" if "$(Variant)" NEQ "core" \
|