bobv@2508: # bobv@2508: # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. bobv@2508: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. bobv@2508: # bobv@2508: # This code is free software; you can redistribute it and/or modify it bobv@2508: # under the terms of the GNU General Public License version 2 only, as bobv@2508: # published by the Free Software Foundation. bobv@2508: # bobv@2508: # This code is distributed in the hope that it will be useful, but WITHOUT bobv@2508: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or bobv@2508: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License bobv@2508: # version 2 for more details (a copy is included in the LICENSE file that bobv@2508: # accompanied this code). bobv@2508: # bobv@2508: # You should have received a copy of the GNU General Public License version bobv@2508: # 2 along with this work; if not, write to the Free Software Foundation, bobv@2508: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. bobv@2508: # bobv@2508: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA bobv@2508: # or visit www.oracle.com if you need additional information or have any bobv@2508: # questions. bobv@2508: # bobv@2508: # bobv@2508: bobv@2508: # Support for setting HS_CLOSED_PATH, required GAMMADIR and SRCARCH bobv@2508: bobv@2508: CLOSED_DIR_EXISTS := $(shell \ bobv@2508: if [ -d $(GAMMADIR)/src/closed ] ; then \ bobv@2508: echo true; \ bobv@2508: else \ bobv@2508: echo false; \ bobv@2508: fi) bobv@2508: bobv@2508: CLOSED_SRCARCH_DIR_EXISTS := $(shell \ bobv@2508: if [ -d $(GAMMADIR)/src/closed/cpu/$(SRCARCH)/vm ] ; then \ bobv@2508: echo true; \ bobv@2508: else \ bobv@2508: echo false; \ bobv@2508: fi) bobv@2508: bobv@2508: ifeq ($(CLOSED_SRCARCH_DIR_EXISTS), true) bobv@2508: HS_CLOSED_PATH=closed/ bobv@2508: endif bobv@2508: bobv@2508: # Support for setting HS_JNI_ARCH_SRC, requires HS_SRC_DIR and HS_ARCH bobv@2508: bobv@2508: CLOSED_HS_ARCH_DIR_EXISTS := $(shell \ bobv@2508: if [ -d $(HS_SRC_DIR)/closed/cpu/$(HS_ARCH)/vm ] ; then \ bobv@2508: echo true; \ bobv@2508: else \ bobv@2508: echo false; \ bobv@2508: fi) bobv@2508: bobv@2508: ifeq ($(CLOSED_HS_ARCH_DIR_EXISTS), true) bobv@2508: HS_JNI_ARCH_SRC=$(HS_SRC_DIR)/closed/cpu/$(HS_ARCH)/vm/jni_$(HS_ARCH).h bobv@2508: else bobv@2508: HS_JNI_ARCH_SRC=$(HS_SRC_DIR)/cpu/$(HS_ARCH)/vm/jni_$(HS_ARCH).h bobv@2508: endif bobv@2508: