1 #
2 # Copyright (c) 2006, 2013, 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 #
256
257 # We are trying to put platform specific defintions
258 # files to make/$(OSNAME)/makefiles dictory. However
259 # some definitions are common for both linux and solaris,
260 # so we put them here.
261 ifneq ($(OSNAME),windows)
262 ABS_OUTPUTDIR := $(shell mkdir -p $(OUTPUTDIR); $(CD) $(OUTPUTDIR); $(PWD))
263 ABS_BOOTDIR := $(shell $(CD) $(BOOTDIR); $(PWD))
264 ABS_GAMMADIR := $(shell $(CD) $(GAMMADIR); $(PWD))
265 ABS_OS_MAKEFILE := $(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME); $(PWD))/Makefile
266
267 # uname, HotSpot source directory, build directory and JDK use different names
268 # for CPU architectures.
269 # ARCH - uname output
270 # SRCARCH - where to find HotSpot cpu and os_cpu source files
271 # BUILDARCH - build directory
272 # LIBARCH - directory name in JDK/JRE
273
274 # Use uname output for SRCARCH, but deal with platform differences. If ARCH
275 # is not explicitly listed below, it is treated as x86.
276 SRCARCH = $(ARCH/$(filter sparc sparc64 ia64 amd64 x86_64 arm ppc ppc64 zero,$(ARCH)))
277 ARCH/ = x86
278 ARCH/sparc = sparc
279 ARCH/sparc64= sparc
280 ARCH/ia64 = ia64
281 ARCH/amd64 = x86
282 ARCH/x86_64 = x86
283 ARCH/ppc64 = ppc
284 ARCH/ppc = ppc
285 ARCH/arm = arm
286 ARCH/zero = zero
287
288 # BUILDARCH is usually the same as SRCARCH, except for sparcv9
289 BUILDARCH = $(SRCARCH)
290 ifeq ($(BUILDARCH), x86)
291 ifdef LP64
292 BUILDARCH = amd64
293 else
294 BUILDARCH = i486
295 endif
296 endif
297 ifeq ($(BUILDARCH), sparc)
298 ifdef LP64
299 BUILDARCH = sparcv9
300 endif
301 endif
302 ifeq ($(BUILDARCH), ppc)
303 ifdef LP64
304 BUILDARCH = ppc64
305 endif
306 endif
307
308 # LIBARCH is 1:1 mapping from BUILDARCH
309 LIBARCH = $(LIBARCH/$(BUILDARCH))
310 LIBARCH/i486 = i386
311 LIBARCH/amd64 = amd64
312 LIBARCH/sparc = sparc
313 LIBARCH/sparcv9 = sparcv9
314 LIBARCH/ia64 = ia64
315 LIBARCH/ppc64 = ppc64
316 LIBARCH/ppc = ppc
317 LIBARCH/arm = arm
318 LIBARCH/zero = $(ZERO_LIBARCH)
319
320 LP64_ARCH = sparcv9 amd64 ia64 ppc64 zero
321 endif
322
323 # Required make macro settings for all platforms
324 MAKE_ARGS += BOOTDIR=$(ABS_BOOTDIR)
325 MAKE_ARGS += OUTPUTDIR=$(ABS_OUTPUTDIR)
326 MAKE_ARGS += GAMMADIR=$(ABS_GAMMADIR)
327 MAKE_ARGS += MAKE_VERBOSE=$(MAKE_VERBOSE)
328 MAKE_ARGS += HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION)
329 MAKE_ARGS += JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
330
331 # Pass HOTSPOT_BUILD_VERSION as argument to OS specific Makefile
332 # to overwrite the default definition since OS specific Makefile also
333 # includes this make/defs.make file.
334 MAKE_ARGS += HOTSPOT_BUILD_VERSION=$(HOTSPOT_BUILD_VERSION)
335
336 # Various export sub directories
337 EXPORT_INCLUDE_DIR = $(EXPORT_PATH)/include
338 EXPORT_DOCS_DIR = $(EXPORT_PATH)/docs
339 EXPORT_LIB_DIR = $(EXPORT_PATH)/lib
340 EXPORT_JRE_DIR = $(EXPORT_PATH)/jre
|
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 #
256
257 # We are trying to put platform specific defintions
258 # files to make/$(OSNAME)/makefiles dictory. However
259 # some definitions are common for both linux and solaris,
260 # so we put them here.
261 ifneq ($(OSNAME),windows)
262 ABS_OUTPUTDIR := $(shell mkdir -p $(OUTPUTDIR); $(CD) $(OUTPUTDIR); $(PWD))
263 ABS_BOOTDIR := $(shell $(CD) $(BOOTDIR); $(PWD))
264 ABS_GAMMADIR := $(shell $(CD) $(GAMMADIR); $(PWD))
265 ABS_OS_MAKEFILE := $(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME); $(PWD))/Makefile
266
267 # uname, HotSpot source directory, build directory and JDK use different names
268 # for CPU architectures.
269 # ARCH - uname output
270 # SRCARCH - where to find HotSpot cpu and os_cpu source files
271 # BUILDARCH - build directory
272 # LIBARCH - directory name in JDK/JRE
273
274 # Use uname output for SRCARCH, but deal with platform differences. If ARCH
275 # is not explicitly listed below, it is treated as x86.
276 SRCARCH ?= $(ARCH/$(filter sparc sparc64 ia64 amd64 x86_64 ppc64 zero,$(ARCH)))
277 ARCH/ = x86
278 ARCH/sparc = sparc
279 ARCH/sparc64= sparc
280 ARCH/ia64 = ia64
281 ARCH/amd64 = x86
282 ARCH/x86_64 = x86
283 ARCH/ppc64 = ppc
284 ARCH/zero = zero
285
286 # BUILDARCH is usually the same as SRCARCH, except for sparcv9
287 BUILDARCH ?= $(SRCARCH)
288 ifeq ($(BUILDARCH), x86)
289 ifdef LP64
290 BUILDARCH = amd64
291 else
292 BUILDARCH = i486
293 endif
294 endif
295 ifeq ($(BUILDARCH), sparc)
296 ifdef LP64
297 BUILDARCH = sparcv9
298 endif
299 endif
300 ifeq ($(BUILDARCH), ppc)
301 ifdef LP64
302 BUILDARCH = ppc64
303 endif
304 endif
305
306 # LIBARCH is 1:1 mapping from BUILDARCH
307 LIBARCH ?= $(LIBARCH/$(BUILDARCH))
308 LIBARCH/i486 = i386
309 LIBARCH/amd64 = amd64
310 LIBARCH/sparc = sparc
311 LIBARCH/sparcv9 = sparcv9
312 LIBARCH/ia64 = ia64
313 LIBARCH/ppc64 = ppc64
314 LIBARCH/zero = $(ZERO_LIBARCH)
315
316 LP64_ARCH += sparcv9 amd64 ia64 ppc64 zero
317 endif
318
319 # Required make macro settings for all platforms
320 MAKE_ARGS += BOOTDIR=$(ABS_BOOTDIR)
321 MAKE_ARGS += OUTPUTDIR=$(ABS_OUTPUTDIR)
322 MAKE_ARGS += GAMMADIR=$(ABS_GAMMADIR)
323 MAKE_ARGS += MAKE_VERBOSE=$(MAKE_VERBOSE)
324 MAKE_ARGS += HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION)
325 MAKE_ARGS += JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
326
327 # Pass HOTSPOT_BUILD_VERSION as argument to OS specific Makefile
328 # to overwrite the default definition since OS specific Makefile also
329 # includes this make/defs.make file.
330 MAKE_ARGS += HOTSPOT_BUILD_VERSION=$(HOTSPOT_BUILD_VERSION)
331
332 # Various export sub directories
333 EXPORT_INCLUDE_DIR = $(EXPORT_PATH)/include
334 EXPORT_DOCS_DIR = $(EXPORT_PATH)/docs
335 EXPORT_LIB_DIR = $(EXPORT_PATH)/lib
336 EXPORT_JRE_DIR = $(EXPORT_PATH)/jre
|