1 # |
1 # |
2 # Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2006, 2016, 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. |
283 # BUILDARCH - build directory |
283 # BUILDARCH - build directory |
284 # LIBARCH - directory name in JDK/JRE |
284 # LIBARCH - directory name in JDK/JRE |
285 |
285 |
286 # Use uname output for SRCARCH, but deal with platform differences. If ARCH |
286 # Use uname output for SRCARCH, but deal with platform differences. If ARCH |
287 # is not explicitly listed below, it is treated as x86. |
287 # is not explicitly listed below, it is treated as x86. |
288 SRCARCH ?= $(ARCH/$(filter sparc sparc64 ia64 amd64 x86_64 ppc64 zero,$(ARCH))) |
288 SRCARCH ?= $(ARCH/$(filter sparc sparc64 ia64 amd64 x86_64 ppc ppc64 zero,$(ARCH))) |
289 ARCH/ = x86 |
289 ARCH/ = x86 |
290 ARCH/sparc = sparc |
290 ARCH/sparc = sparc |
291 ARCH/sparc64= sparc |
291 ARCH/sparc64= sparc |
292 ARCH/ia64 = ia64 |
292 ARCH/ia64 = ia64 |
293 ARCH/amd64 = x86 |
293 ARCH/amd64 = x86 |
294 ARCH/x86_64 = x86 |
294 ARCH/x86_64 = x86 |
295 ARCH/ppc64 = ppc |
295 ARCH/ppc64 = ppc |
|
296 ARCH/ppc = ppc |
296 ARCH/zero = zero |
297 ARCH/zero = zero |
297 |
298 |
298 # BUILDARCH is usually the same as SRCARCH, except for sparcv9 |
299 # BUILDARCH is usually the same as SRCARCH, except for sparcv9 |
299 BUILDARCH ?= $(SRCARCH) |
300 BUILDARCH ?= $(SRCARCH) |
300 ifeq ($(BUILDARCH), x86) |
301 ifeq ($(BUILDARCH), x86) |