1 # |
1 # |
2 # Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved. |
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. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
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 |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. |
7 # published by the Free Software Foundation. |
271 # BUILDARCH - build directory |
271 # BUILDARCH - build directory |
272 # LIBARCH - directory name in JDK/JRE |
272 # LIBARCH - directory name in JDK/JRE |
273 |
273 |
274 # Use uname output for SRCARCH, but deal with platform differences. If ARCH |
274 # Use uname output for SRCARCH, but deal with platform differences. If ARCH |
275 # is not explicitly listed below, it is treated as x86. |
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))) |
276 SRCARCH ?= $(ARCH/$(filter sparc sparc64 ia64 amd64 x86_64 ppc64 zero,$(ARCH))) |
277 ARCH/ = x86 |
277 ARCH/ = x86 |
278 ARCH/sparc = sparc |
278 ARCH/sparc = sparc |
279 ARCH/sparc64= sparc |
279 ARCH/sparc64= sparc |
280 ARCH/ia64 = ia64 |
280 ARCH/ia64 = ia64 |
281 ARCH/amd64 = x86 |
281 ARCH/amd64 = x86 |
282 ARCH/x86_64 = x86 |
282 ARCH/x86_64 = x86 |
283 ARCH/ppc64 = ppc |
283 ARCH/ppc64 = ppc |
284 ARCH/ppc = ppc |
|
285 ARCH/arm = arm |
|
286 ARCH/zero = zero |
284 ARCH/zero = zero |
287 |
285 |
288 # BUILDARCH is usually the same as SRCARCH, except for sparcv9 |
286 # BUILDARCH is usually the same as SRCARCH, except for sparcv9 |
289 BUILDARCH = $(SRCARCH) |
287 BUILDARCH ?= $(SRCARCH) |
290 ifeq ($(BUILDARCH), x86) |
288 ifeq ($(BUILDARCH), x86) |
291 ifdef LP64 |
289 ifdef LP64 |
292 BUILDARCH = amd64 |
290 BUILDARCH = amd64 |
293 else |
291 else |
294 BUILDARCH = i486 |
292 BUILDARCH = i486 |
304 BUILDARCH = ppc64 |
302 BUILDARCH = ppc64 |
305 endif |
303 endif |
306 endif |
304 endif |
307 |
305 |
308 # LIBARCH is 1:1 mapping from BUILDARCH |
306 # LIBARCH is 1:1 mapping from BUILDARCH |
309 LIBARCH = $(LIBARCH/$(BUILDARCH)) |
307 LIBARCH ?= $(LIBARCH/$(BUILDARCH)) |
310 LIBARCH/i486 = i386 |
308 LIBARCH/i486 = i386 |
311 LIBARCH/amd64 = amd64 |
309 LIBARCH/amd64 = amd64 |
312 LIBARCH/sparc = sparc |
310 LIBARCH/sparc = sparc |
313 LIBARCH/sparcv9 = sparcv9 |
311 LIBARCH/sparcv9 = sparcv9 |
314 LIBARCH/ia64 = ia64 |
312 LIBARCH/ia64 = ia64 |
315 LIBARCH/ppc64 = ppc64 |
313 LIBARCH/ppc64 = ppc64 |
316 LIBARCH/ppc = ppc |
|
317 LIBARCH/arm = arm |
|
318 LIBARCH/zero = $(ZERO_LIBARCH) |
314 LIBARCH/zero = $(ZERO_LIBARCH) |
319 |
315 |
320 LP64_ARCH = sparcv9 amd64 ia64 ppc64 zero |
316 LP64_ARCH += sparcv9 amd64 ia64 ppc64 zero |
321 endif |
317 endif |
322 |
318 |
323 # Required make macro settings for all platforms |
319 # Required make macro settings for all platforms |
324 MAKE_ARGS += BOOTDIR=$(ABS_BOOTDIR) |
320 MAKE_ARGS += BOOTDIR=$(ABS_BOOTDIR) |
325 MAKE_ARGS += OUTPUTDIR=$(ABS_OUTPUTDIR) |
321 MAKE_ARGS += OUTPUTDIR=$(ABS_OUTPUTDIR) |