michaelm@340: # coffeys@409: # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. michaelm@340: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. michaelm@340: # michaelm@340: # This code is free software; you can redistribute it and/or modify it michaelm@340: # under the terms of the GNU General Public License version 2 only, as michaelm@340: # published by the Free Software Foundation. Oracle designates this michaelm@340: # particular file as subject to the "Classpath" exception as provided michaelm@340: # by Oracle in the LICENSE file that accompanied this code. michaelm@340: # michaelm@340: # This code is distributed in the hope that it will be useful, but WITHOUT michaelm@340: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or michaelm@340: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License michaelm@340: # version 2 for more details (a copy is included in the LICENSE file that michaelm@340: # accompanied this code). michaelm@340: # michaelm@340: # You should have received a copy of the GNU General Public License version michaelm@340: # 2 along with this work; if not, write to the Free Software Foundation, michaelm@340: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. michaelm@340: # michaelm@340: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA michaelm@340: # or visit www.oracle.com if you need additional information or have any michaelm@340: # questions. michaelm@340: # michaelm@340: michaelm@340: # michaelm@340: # Definitions for Bsd. michaelm@340: # michaelm@340: michaelm@340: # Default for COMPILER_WARNINGS_FATAL on Bsd (C & C++ compiler warnings) michaelm@340: ifndef COMPILER_WARNINGS_FATAL michaelm@340: COMPILER_WARNINGS_FATAL=false michaelm@340: endif michaelm@340: michaelm@340: # Bsd should use parallel compilation for best build times michaelm@340: ifndef COMPILE_APPROACH michaelm@340: COMPILE_APPROACH = parallel michaelm@340: endif michaelm@340: michaelm@340: # Indication that we are doing an incremental build. michaelm@340: # This may trigger the creation of make depend files. michaelm@340: ifndef INCREMENTAL_BUILD michaelm@340: INCREMENTAL_BUILD = false michaelm@340: endif michaelm@340: michaelm@340: # FullPath just makes sure it never ends with a / and no duplicates michaelm@340: define FullPath michaelm@340: $(shell cd $1 2> $(DEV_NULL) && pwd) michaelm@340: endef michaelm@340: michaelm@340: # OptFullPath: Absolute path name of a dir that might not initially exist. michaelm@340: define OptFullPath michaelm@340: $(shell if [ "$1" != "" -a -d "$1" ]; then (cd $1 && pwd); else echo "$1"; fi) michaelm@340: endef michaelm@340: michaelm@340: # Location on system where jdk installs might be michaelm@340: USRJDKINSTANCES_PATH =$(PACKAGE_PATH) michaelm@340: michaelm@340: # UNIXCOMMAND_PATH: path to where the most common Unix commands are. michaelm@340: # NOTE: Must end with / so that it could be empty, allowing PATH usage. michaelm@340: ifneq "$(origin ALT_UNIXCOMMAND_PATH)" "undefined" michaelm@340: UNIXCOMMAND_PATH :=$(call PrefixPath,$(ALT_UNIXCOMMAND_PATH)) michaelm@340: else michaelm@340: UNIXCOMMAND_PATH = /bin/ michaelm@340: endif michaelm@340: michaelm@340: # USRBIN_PATH: path to where the most common Unix commands are. michaelm@340: # NOTE: Must end with / so that it could be empty, allowing PATH usage. michaelm@340: ifneq "$(origin ALT_USRBIN_PATH)" "undefined" michaelm@340: USRBIN_PATH :=$(call PrefixPath,$(ALT_USRBIN_PATH)) michaelm@340: else michaelm@340: USRBIN_PATH = /usr/bin/ michaelm@340: endif michaelm@340: michaelm@340: # UNIXCCS_PATH: path to where the Solaris ported UNIX commands can be found michaelm@340: # NOTE: Must end with / so that it could be empty, allowing PATH usage. michaelm@340: ifneq "$(origin ALT_UNIXCCS_PATH)" "undefined" michaelm@340: UNIXCCS_PATH :=$(call PrefixPath,$(ALT_UNIXCCS_PATH)) michaelm@340: else michaelm@340: UNIXCCS_PATH = /usr/ccs/bin/ michaelm@340: endif michaelm@340: michaelm@340: # SLASH_JAVA: location of all network accessable files michaelm@340: ifdef ALT_SLASH_JAVA michaelm@340: SLASH_JAVA :=$(ALT_SLASH_JAVA) michaelm@340: else michaelm@340: SLASH_JAVA := $(call DirExists,/java,/java,/NOT-SET) michaelm@340: endif michaelm@340: michaelm@340: # JDK_DEVTOOLS_DIR: common path for all the java devtools michaelm@340: ifdef ALT_JDK_DEVTOOLS_DIR michaelm@340: JDK_DEVTOOLS_DIR =$(ALT_JDK_DEVTOOLS_DIR) michaelm@340: else michaelm@340: JDK_DEVTOOLS_DIR =$(SLASH_JAVA)/devtools michaelm@340: endif michaelm@340: michaelm@340: # DEVTOOLS_PATH: for other tools required for building (such as zip, etc.) michaelm@340: # NOTE: Must end with / so that it could be empty, allowing PATH usage. michaelm@340: ifneq "$(origin ALT_DEVTOOLS_PATH)" "undefined" michaelm@340: DEVTOOLS_PATH :=$(call PrefixPath,$(ALT_DEVTOOLS_PATH)) michaelm@340: else michaelm@340: DEVTOOLS_PATH =$(PACKAGE_PATH)/bin/ michaelm@340: endif michaelm@340: michaelm@340: # _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK. michaelm@340: # _BOOTDIR2: Second choice michaelm@340: ifndef ALT_BOOTDIR michaelm@340: _BOOTDIR1 =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH) michaelm@340: _BOOTDIR2 =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION) michaelm@340: endif michaelm@340: michaelm@340: # Import JDK images allow for partial builds, components not built are michaelm@340: # imported (or copied from) these import areas when needed. michaelm@340: michaelm@340: # BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for michaelm@340: # multiple platforms, e.g. windows-i586, solaris-sparc, bsd-586, etc. michaelm@340: ifdef ALT_BUILD_JDK_IMPORT_PATH michaelm@340: BUILD_JDK_IMPORT_PATH :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH)) michaelm@340: else michaelm@340: BUILD_JDK_IMPORT_PATH = $(PROMOTED_BUILD_BINARIES) michaelm@340: endif michaelm@340: BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH) michaelm@340: michaelm@340: # JDK_IMPORT_PATH: location of JDK install tree (this version) to import michaelm@340: ifdef ALT_JDK_IMPORT_PATH michaelm@340: JDK_IMPORT_PATH :=$(call FullPath,$(ALT_JDK_IMPORT_PATH)) michaelm@340: else michaelm@340: JDK_IMPORT_PATH = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT) michaelm@340: endif michaelm@340: JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH) michaelm@340: