1 #
2 # Copyright (c) 2006, 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 #
160 MAKE_ARGS += MV="${MV}"
161
162
163 # On 32 bit windows we build server and client, on 64 bit just server.
164 ifeq ($(JVM_VARIANTS),)
165 ifeq ($(ARCH_DATA_MODEL), 32)
166 JVM_VARIANTS:=client,server
167 JVM_VARIANT_CLIENT:=true
168 JVM_VARIANT_SERVER:=true
169 else
170 JVM_VARIANTS:=server
171 JVM_VARIANT_SERVER:=true
172 endif
173 endif
174
175 JDK_INCLUDE_SUBDIR=win32
176
177 # Library suffix
178 LIBRARY_SUFFIX=dll
179
180 # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined
181 # and added to MAKE_ARGS list in $(GAMMADIR)/make/defs.make.
182
183 # next parameters are defined in $(GAMMADIR)/make/defs.make.
184 MAKE_ARGS += JDK_MKTG_VERSION=$(JDK_MKTG_VERSION)
185 MAKE_ARGS += JDK_MAJOR_VERSION=$(JDK_MAJOR_VERSION)
186 MAKE_ARGS += JDK_MINOR_VERSION=$(JDK_MINOR_VERSION)
187 MAKE_ARGS += JDK_MICRO_VERSION=$(JDK_MICRO_VERSION)
188
189 ifdef COOKED_JDK_UPDATE_VERSION
190 MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION)
191 endif
192
193 # COOKED_BUILD_NUMBER should only be set if we have a numeric
194 # build number. It must not be zero padded.
195 ifdef COOKED_BUILD_NUMBER
196 MAKE_ARGS += JDK_BUILD_NUMBER=$(COOKED_BUILD_NUMBER)
197 endif
198
199 NMAKE= MAKEFLAGS= MFLAGS= EXTRA_CFLAGS="$(EXTRA_CFLAGS)" nmake -NOLOGO
200 ifndef SYSTEM_UNAME
201 SYSTEM_UNAME := $(shell uname)
202 export SYSTEM_UNAME
203 endif
204
205 # Check for CYGWIN
206 ifneq (,$(findstring CYGWIN,$(SYSTEM_UNAME)))
207 USING_CYGWIN=true
208 else
209 USING_CYGWIN=false
210 endif
211 # Check for MinGW
212 ifneq (,$(findstring MINGW,$(SYSTEM_UNAME)))
213 USING_MINGW=true
214 endif
215
216 # Windows wants particular paths due to nmake (must be after macros defined)
217 # It is important that gnumake invokes nmake with C:\\...\\ formated
|
1 #
2 # Copyright (c) 2006, 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 #
160 MAKE_ARGS += MV="${MV}"
161
162
163 # On 32 bit windows we build server and client, on 64 bit just server.
164 ifeq ($(JVM_VARIANTS),)
165 ifeq ($(ARCH_DATA_MODEL), 32)
166 JVM_VARIANTS:=client,server
167 JVM_VARIANT_CLIENT:=true
168 JVM_VARIANT_SERVER:=true
169 else
170 JVM_VARIANTS:=server
171 JVM_VARIANT_SERVER:=true
172 endif
173 endif
174
175 JDK_INCLUDE_SUBDIR=win32
176
177 # Library suffix
178 LIBRARY_SUFFIX=dll
179
180 # next parameters are defined in $(GAMMADIR)/make/defs.make.
181 MAKE_ARGS += VERSION_SHORT=$(VERSION_SHORT)
182 MAKE_ARGS += VERSION_MAJOR=$(VERSION_MAJOR)
183 MAKE_ARGS += VERSION_MINOR=$(VERSION_MINOR)
184 MAKE_ARGS += VERSION_SECURITY=$(VERSION_SECURITY)
185 MAKE_ARGS += VERSION_BUILD=$(VERSION_BUILD)
186
187 # JDK_DOTVER and JDK_VER are needed in Windows RC files
188 COMMA:=,
189 MAKE_ARGS += JDK_DOTVER=$(VERSION_NUMBER_FOUR_POSITIONS)
190 MAKE_ARGS += JDK_VER=$(subst .,$(COMMA),$(VERSION_NUMBER_FOUR_POSITIONS))
191
192 NMAKE= MAKEFLAGS= MFLAGS= EXTRA_CFLAGS="$(EXTRA_CFLAGS)" nmake -NOLOGO
193 ifndef SYSTEM_UNAME
194 SYSTEM_UNAME := $(shell uname)
195 export SYSTEM_UNAME
196 endif
197
198 # Check for CYGWIN
199 ifneq (,$(findstring CYGWIN,$(SYSTEM_UNAME)))
200 USING_CYGWIN=true
201 else
202 USING_CYGWIN=false
203 endif
204 # Check for MinGW
205 ifneq (,$(findstring MINGW,$(SYSTEM_UNAME)))
206 USING_MINGW=true
207 endif
208
209 # Windows wants particular paths due to nmake (must be after macros defined)
210 # It is important that gnumake invokes nmake with C:\\...\\ formated
|