equal
deleted
inserted
replaced
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. |
284 # BUILDARCH - build directory |
284 # BUILDARCH - build directory |
285 # LIBARCH - directory name in JDK/JRE |
285 # LIBARCH - directory name in JDK/JRE |
286 |
286 |
287 # Use uname output for SRCARCH, but deal with platform differences. If ARCH |
287 # Use uname output for SRCARCH, but deal with platform differences. If ARCH |
288 # is not explicitly listed below, it is treated as x86. |
288 # is not explicitly listed below, it is treated as x86. |
289 SRCARCH = $(ARCH/$(filter sparc sparc64 ia64 amd64 x86_64 arm ppc ppc64 aarch64 zero,$(ARCH))) |
289 SRCARCH ?= $(ARCH/$(filter sparc sparc64 ia64 amd64 x86_64 ppc ppc64 aarch64 zero,$(ARCH))) |
290 ARCH/ = x86 |
290 ARCH/ = x86 |
291 ARCH/sparc = sparc |
291 ARCH/sparc = sparc |
292 ARCH/sparc64= sparc |
292 ARCH/sparc64= sparc |
293 ARCH/ia64 = ia64 |
293 ARCH/ia64 = ia64 |
294 ARCH/amd64 = x86 |
294 ARCH/amd64 = x86 |
295 ARCH/x86_64 = x86 |
295 ARCH/x86_64 = x86 |
296 ARCH/ppc64 = ppc |
296 ARCH/ppc64 = ppc |
297 ARCH/ppc = ppc |
297 ARCH/ppc = ppc |
298 ARCH/arm = arm |
|
299 ARCH/aarch64= aarch64 |
298 ARCH/aarch64= aarch64 |
300 ARCH/zero = zero |
299 ARCH/zero = zero |
301 |
300 |
302 # BUILDARCH is usually the same as SRCARCH, except for sparcv9 |
301 # BUILDARCH is usually the same as SRCARCH, except for sparcv9 |
303 BUILDARCH = $(SRCARCH) |
302 BUILDARCH ?= $(SRCARCH) |
304 ifeq ($(BUILDARCH), x86) |
303 ifeq ($(BUILDARCH), x86) |
305 ifdef LP64 |
304 ifdef LP64 |
306 BUILDARCH = amd64 |
305 BUILDARCH = amd64 |
307 else |
306 else |
308 BUILDARCH = i486 |
307 BUILDARCH = i486 |
318 BUILDARCH = ppc64 |
317 BUILDARCH = ppc64 |
319 endif |
318 endif |
320 endif |
319 endif |
321 |
320 |
322 # LIBARCH is 1:1 mapping from BUILDARCH |
321 # LIBARCH is 1:1 mapping from BUILDARCH |
323 LIBARCH = $(LIBARCH/$(BUILDARCH)) |
322 LIBARCH ?= $(LIBARCH/$(BUILDARCH)) |
324 LIBARCH/i486 = i386 |
323 LIBARCH/i486 = i386 |
325 LIBARCH/amd64 = amd64 |
324 LIBARCH/amd64 = amd64 |
326 LIBARCH/sparc = sparc |
325 LIBARCH/sparc = sparc |
327 LIBARCH/sparcv9 = sparcv9 |
326 LIBARCH/sparcv9 = sparcv9 |
328 LIBARCH/ia64 = ia64 |
327 LIBARCH/ia64 = ia64 |
329 LIBARCH/ppc64 = ppc64 |
328 LIBARCH/ppc64 = ppc64 |
330 LIBARCH/aarch64 = aarch64 |
329 LIBARCH/aarch64 = aarch64 |
331 LIBARCH/ppc = ppc |
|
332 LIBARCH/arm = arm |
|
333 LIBARCH/zero = $(ZERO_LIBARCH) |
330 LIBARCH/zero = $(ZERO_LIBARCH) |
334 |
331 |
335 LP64_ARCH = sparcv9 amd64 ia64 ppc64 aarch64 zero |
332 LP64_ARCH = sparcv9 amd64 ia64 ppc64 aarch64 zero |
336 endif |
333 endif |
337 |
334 |