Wed, 13 Jun 2012 16:53:07 -0700
Merge
duke@1 | 1 | # |
ohair@240 | 2 | # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
duke@1 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@1 | 4 | # |
duke@1 | 5 | # This code is free software; you can redistribute it and/or modify it |
duke@1 | 6 | # under the terms of the GNU General Public License version 2 only, as |
ohair@158 | 7 | # published by the Free Software Foundation. Oracle designates this |
duke@1 | 8 | # particular file as subject to the "Classpath" exception as provided |
ohair@158 | 9 | # by Oracle in the LICENSE file that accompanied this code. |
duke@1 | 10 | # |
duke@1 | 11 | # This code is distributed in the hope that it will be useful, but WITHOUT |
duke@1 | 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@1 | 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@1 | 14 | # version 2 for more details (a copy is included in the LICENSE file that |
duke@1 | 15 | # accompanied this code). |
duke@1 | 16 | # |
duke@1 | 17 | # You should have received a copy of the GNU General Public License version |
duke@1 | 18 | # 2 along with this work; if not, write to the Free Software Foundation, |
duke@1 | 19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@1 | 20 | # |
ohair@158 | 21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@158 | 22 | # or visit www.oracle.com if you need additional information or have any |
ohair@158 | 23 | # questions. |
duke@1 | 24 | # |
duke@1 | 25 | |
duke@1 | 26 | # |
duke@1 | 27 | # Definitions for Solaris. |
duke@1 | 28 | # |
duke@1 | 29 | |
duke@1 | 30 | # Default for COMPILER_WARNINGS_FATAL on Solaris (C & C++ compiler warnings) |
duke@1 | 31 | ifndef COMPILER_WARNINGS_FATAL |
duke@1 | 32 | COMPILER_WARNINGS_FATAL=false |
duke@1 | 33 | endif |
duke@1 | 34 | |
duke@1 | 35 | # Solaris should use parallel compilation for best build times |
duke@1 | 36 | ifndef COMPILE_APPROACH |
duke@1 | 37 | COMPILE_APPROACH = parallel |
duke@1 | 38 | endif |
duke@1 | 39 | |
duke@1 | 40 | # Indication that we are doing an incremental build. |
duke@1 | 41 | # This may trigger the creation of make depend files. |
duke@1 | 42 | ifndef INCREMENTAL_BUILD |
duke@1 | 43 | INCREMENTAL_BUILD = false |
duke@1 | 44 | endif |
duke@1 | 45 | |
duke@1 | 46 | # FullPath just makes sure it never ends with a / and no duplicates |
duke@1 | 47 | define FullPath |
duke@1 | 48 | $(shell cd $1 2> $(DEV_NULL) && pwd) |
duke@1 | 49 | endef |
duke@1 | 50 | |
duke@1 | 51 | # OptFullPath: Absolute path name of a dir that might not initially exist. |
duke@1 | 52 | define OptFullPath |
duke@1 | 53 | $(shell if [ "$1" != "" -a -d "$1" ]; then (cd $1 && pwd); else echo "$1"; fi) |
duke@1 | 54 | endef |
duke@1 | 55 | |
duke@1 | 56 | # Location on system where jdk installs might be |
duke@1 | 57 | USRJDKINSTANCES_PATH =/usr/jdk/instances |
duke@1 | 58 | |
duke@1 | 59 | # UNIXCOMMAND_PATH: path to where the most common Unix commands are. |
duke@1 | 60 | # NOTE: Must end with / so that it could be empty, allowing PATH usage. |
duke@1 | 61 | ifneq "$(origin ALT_UNIXCOMMAND_PATH)" "undefined" |
duke@1 | 62 | UNIXCOMMAND_PATH :=$(call PrefixPath,$(ALT_UNIXCOMMAND_PATH)) |
duke@1 | 63 | else |
duke@1 | 64 | UNIXCOMMAND_PATH = /usr/bin/ |
duke@1 | 65 | endif |
duke@1 | 66 | |
duke@1 | 67 | # UNIXCCS_PATH: path to where the less common UNIX commands can be found |
duke@1 | 68 | # NOTE: Must end with / so that it could be empty, allowing PATH usage. |
duke@1 | 69 | ifneq "$(origin ALT_UNIXCCS_PATH)" "undefined" |
duke@1 | 70 | UNIXCCS_PATH :=$(call PrefixPath,$(ALT_UNIXCCS_PATH)) |
duke@1 | 71 | else |
duke@1 | 72 | UNIXCCS_PATH = /usr/ccs/bin/ |
duke@1 | 73 | endif |
duke@1 | 74 | |
duke@1 | 75 | # SLASH_JAVA: location of all network accessable files |
duke@1 | 76 | ifdef ALT_SLASH_JAVA |
duke@1 | 77 | SLASH_JAVA :=$(ALT_SLASH_JAVA) |
duke@1 | 78 | else |
duke@1 | 79 | SLASH_JAVA := $(call DirExists,/java,/java,/NOT-SET) |
duke@1 | 80 | endif |
duke@1 | 81 | |
duke@1 | 82 | # JDK_DEVTOOLS_DIR: common path for all the java devtools |
duke@1 | 83 | ifdef ALT_JDK_DEVTOOLS_DIR |
duke@1 | 84 | JDK_DEVTOOLS_DIR =$(ALT_JDK_DEVTOOLS_DIR) |
duke@1 | 85 | else |
duke@1 | 86 | JDK_DEVTOOLS_DIR =$(SLASH_JAVA)/devtools |
duke@1 | 87 | endif |
duke@1 | 88 | |
duke@1 | 89 | # DEVTOOLS_PATH: for other tools required for building (such as zip, etc.) |
duke@1 | 90 | # NOTE: Must end with / so that it could be empty, allowing PATH usage. |
duke@1 | 91 | ifneq "$(origin ALT_DEVTOOLS_PATH)" "undefined" |
duke@1 | 92 | DEVTOOLS_PATH :=$(call PrefixPath,$(ALT_DEVTOOLS_PATH)) |
duke@1 | 93 | else |
duke@1 | 94 | ifdef ALT_JDK_DEVTOOLS_DIR |
duke@1 | 95 | DEVTOOLS_PATH =$(JDK_DEVTOOLS_DIR)/$(ARCH_FAMILY)/bin/ |
duke@1 | 96 | else |
duke@1 | 97 | DEVTOOLS_PATH =$(JDK_DEVTOOLS_DIR)/$(ARCH_FAMILY)/bin/ |
duke@1 | 98 | endif |
duke@1 | 99 | endif |
duke@1 | 100 | |
duke@1 | 101 | # _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK. |
duke@1 | 102 | # _BOOTDIR2: Second choice |
duke@1 | 103 | ifndef ALT_BOOTDIR |
duke@1 | 104 | _BOOTDIR1 =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH) |
duke@1 | 105 | _BOOTDIR2 =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION) |
duke@1 | 106 | endif |
duke@1 | 107 | |
duke@1 | 108 | # Import JDK images allow for partial builds, components not built are |
duke@1 | 109 | # imported (or copied from) these import areas when needed. |
duke@1 | 110 | |
duke@1 | 111 | # BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for |
duke@1 | 112 | # multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc. |
duke@1 | 113 | ifdef ALT_BUILD_JDK_IMPORT_PATH |
duke@1 | 114 | BUILD_JDK_IMPORT_PATH :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH)) |
duke@1 | 115 | else |
duke@1 | 116 | BUILD_JDK_IMPORT_PATH = $(PROMOTED_BUILD_BINARIES) |
duke@1 | 117 | endif |
duke@1 | 118 | BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH) |
duke@1 | 119 | |
duke@1 | 120 | # JDK_IMPORT_PATH: location of previously built JDK (this version) to import |
duke@1 | 121 | ifdef ALT_JDK_IMPORT_PATH |
duke@1 | 122 | JDK_IMPORT_PATH :=$(call FullPath,$(ALT_JDK_IMPORT_PATH)) |
duke@1 | 123 | else |
duke@1 | 124 | JDK_IMPORT_PATH = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT) |
duke@1 | 125 | endif |
duke@1 | 126 | JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH) |
duke@1 | 127 |