Wed, 02 Feb 2011 11:35:26 -0500
7016023: Enable building ARM and PPC from src/closed repository
Reviewed-by: dholmes, bdelsart
bobv@2508 | 1 | # |
bobv@2508 | 2 | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
bobv@2508 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
bobv@2508 | 4 | # |
bobv@2508 | 5 | # This code is free software; you can redistribute it and/or modify it |
bobv@2508 | 6 | # under the terms of the GNU General Public License version 2 only, as |
bobv@2508 | 7 | # published by the Free Software Foundation. |
bobv@2508 | 8 | # |
bobv@2508 | 9 | # This code is distributed in the hope that it will be useful, but WITHOUT |
bobv@2508 | 10 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
bobv@2508 | 11 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
bobv@2508 | 12 | # version 2 for more details (a copy is included in the LICENSE file that |
bobv@2508 | 13 | # accompanied this code). |
bobv@2508 | 14 | # |
bobv@2508 | 15 | # You should have received a copy of the GNU General Public License version |
bobv@2508 | 16 | # 2 along with this work; if not, write to the Free Software Foundation, |
bobv@2508 | 17 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
bobv@2508 | 18 | # |
bobv@2508 | 19 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
bobv@2508 | 20 | # or visit www.oracle.com if you need additional information or have any |
bobv@2508 | 21 | # questions. |
bobv@2508 | 22 | # |
bobv@2508 | 23 | # |
bobv@2508 | 24 | |
bobv@2508 | 25 | # Support for setting HS_CLOSED_PATH, required GAMMADIR and SRCARCH |
bobv@2508 | 26 | |
bobv@2508 | 27 | CLOSED_DIR_EXISTS := $(shell \ |
bobv@2508 | 28 | if [ -d $(GAMMADIR)/src/closed ] ; then \ |
bobv@2508 | 29 | echo true; \ |
bobv@2508 | 30 | else \ |
bobv@2508 | 31 | echo false; \ |
bobv@2508 | 32 | fi) |
bobv@2508 | 33 | |
bobv@2508 | 34 | CLOSED_SRCARCH_DIR_EXISTS := $(shell \ |
bobv@2508 | 35 | if [ -d $(GAMMADIR)/src/closed/cpu/$(SRCARCH)/vm ] ; then \ |
bobv@2508 | 36 | echo true; \ |
bobv@2508 | 37 | else \ |
bobv@2508 | 38 | echo false; \ |
bobv@2508 | 39 | fi) |
bobv@2508 | 40 | |
bobv@2508 | 41 | ifeq ($(CLOSED_SRCARCH_DIR_EXISTS), true) |
bobv@2508 | 42 | HS_CLOSED_PATH=closed/ |
bobv@2508 | 43 | endif |
bobv@2508 | 44 | |
bobv@2508 | 45 | # Support for setting HS_JNI_ARCH_SRC, requires HS_SRC_DIR and HS_ARCH |
bobv@2508 | 46 | |
bobv@2508 | 47 | CLOSED_HS_ARCH_DIR_EXISTS := $(shell \ |
bobv@2508 | 48 | if [ -d $(HS_SRC_DIR)/closed/cpu/$(HS_ARCH)/vm ] ; then \ |
bobv@2508 | 49 | echo true; \ |
bobv@2508 | 50 | else \ |
bobv@2508 | 51 | echo false; \ |
bobv@2508 | 52 | fi) |
bobv@2508 | 53 | |
bobv@2508 | 54 | ifeq ($(CLOSED_HS_ARCH_DIR_EXISTS), true) |
bobv@2508 | 55 | HS_JNI_ARCH_SRC=$(HS_SRC_DIR)/closed/cpu/$(HS_ARCH)/vm/jni_$(HS_ARCH).h |
bobv@2508 | 56 | else |
bobv@2508 | 57 | HS_JNI_ARCH_SRC=$(HS_SRC_DIR)/cpu/$(HS_ARCH)/vm/jni_$(HS_ARCH).h |
bobv@2508 | 58 | endif |
bobv@2508 | 59 |