Thu, 19 Mar 2009 13:25:19 -0700
Added tag jdk7-b51 for changeset 3eb8f1047a74
duke@1 | 1 | # |
duke@1 | 2 | # Copyright 2005-2007 Sun Microsystems, Inc. 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 |
duke@1 | 7 | # published by the Free Software Foundation. Sun designates this |
duke@1 | 8 | # particular file as subject to the "Classpath" exception as provided |
duke@1 | 9 | # by Sun 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 | # |
duke@1 | 21 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
duke@1 | 22 | # CA 95054 USA or visit www.sun.com if you need additional information or |
duke@1 | 23 | # have any questions. |
duke@1 | 24 | # |
duke@1 | 25 | |
duke@1 | 26 | # |
duke@1 | 27 | # Definitions for Linux. |
duke@1 | 28 | # |
duke@1 | 29 | |
duke@1 | 30 | # Default for COMPILER_WARNINGS_FATAL on Linux (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 | # Linux 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 =/opt/java |
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 = /bin/ |
duke@1 | 65 | endif |
duke@1 | 66 | |
duke@1 | 67 | # USRBIN_PATH: path to where the most common Unix commands are. |
duke@1 | 68 | # NOTE: Must end with / so that it could be empty, allowing PATH usage. |
duke@1 | 69 | ifneq "$(origin ALT_USRBIN_PATH)" "undefined" |
duke@1 | 70 | USRBIN_PATH :=$(call PrefixPath,$(ALT_USRBIN_PATH)) |
duke@1 | 71 | else |
duke@1 | 72 | USRBIN_PATH = /usr/bin/ |
duke@1 | 73 | endif |
duke@1 | 74 | |
duke@1 | 75 | # UNIXCCS_PATH: path to where the Solaris ported UNIX commands can be found |
duke@1 | 76 | # NOTE: Must end with / so that it could be empty, allowing PATH usage. |
duke@1 | 77 | ifneq "$(origin ALT_UNIXCCS_PATH)" "undefined" |
duke@1 | 78 | UNIXCCS_PATH :=$(call PrefixPath,$(ALT_UNIXCCS_PATH)) |
duke@1 | 79 | else |
duke@1 | 80 | UNIXCCS_PATH = /usr/ccs/bin/ |
duke@1 | 81 | endif |
duke@1 | 82 | |
duke@1 | 83 | # SLASH_JAVA: location of all network accessable files |
duke@1 | 84 | ifdef ALT_SLASH_JAVA |
duke@1 | 85 | SLASH_JAVA :=$(ALT_SLASH_JAVA) |
duke@1 | 86 | else |
duke@1 | 87 | SLASH_JAVA := $(call DirExists,/java,/java,/NOT-SET) |
duke@1 | 88 | endif |
duke@1 | 89 | |
duke@1 | 90 | # JDK_DEVTOOLS_DIR: common path for all the java devtools |
duke@1 | 91 | ifdef ALT_JDK_DEVTOOLS_DIR |
duke@1 | 92 | JDK_DEVTOOLS_DIR =$(ALT_JDK_DEVTOOLS_DIR) |
duke@1 | 93 | else |
duke@1 | 94 | JDK_DEVTOOLS_DIR =$(SLASH_JAVA)/devtools |
duke@1 | 95 | endif |
duke@1 | 96 | |
duke@1 | 97 | # COMPILER_PATH: path to where the compiler and tools are installed. |
duke@1 | 98 | # NOTE: Must end with / so that it could be empty, allowing PATH usage. |
duke@1 | 99 | ifneq "$(origin ALT_COMPILER_PATH)" "undefined" |
duke@1 | 100 | COMPILER_PATH :=$(call PrefixPath,$(ALT_COMPILER_PATH)) |
duke@1 | 101 | else |
duke@1 | 102 | COMPILER_PATH =/usr/bin/ |
duke@1 | 103 | endif |
duke@1 | 104 | |
duke@1 | 105 | # DEVTOOLS_PATH: for other tools required for building (such as zip, etc.) |
duke@1 | 106 | # NOTE: Must end with / so that it could be empty, allowing PATH usage. |
duke@1 | 107 | ifneq "$(origin ALT_DEVTOOLS_PATH)" "undefined" |
duke@1 | 108 | DEVTOOLS_PATH :=$(call PrefixPath,$(ALT_DEVTOOLS_PATH)) |
duke@1 | 109 | else |
duke@1 | 110 | DEVTOOLS_PATH =/usr/bin/ |
duke@1 | 111 | endif |
duke@1 | 112 | |
duke@1 | 113 | # _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK. |
duke@1 | 114 | # _BOOTDIR2: Second choice |
duke@1 | 115 | ifndef ALT_BOOTDIR |
duke@1 | 116 | _BOOTDIR1 =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH) |
duke@1 | 117 | _BOOTDIR2 =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION) |
duke@1 | 118 | endif |
duke@1 | 119 | |
duke@1 | 120 | # Import JDK images allow for partial builds, components not built are |
duke@1 | 121 | # imported (or copied from) these import areas when needed. |
duke@1 | 122 | |
duke@1 | 123 | # BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for |
duke@1 | 124 | # multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc. |
duke@1 | 125 | ifdef ALT_BUILD_JDK_IMPORT_PATH |
duke@1 | 126 | BUILD_JDK_IMPORT_PATH :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH)) |
duke@1 | 127 | else |
duke@1 | 128 | BUILD_JDK_IMPORT_PATH = $(PROMOTED_BUILD_BINARIES) |
duke@1 | 129 | endif |
duke@1 | 130 | BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH) |
duke@1 | 131 | |
duke@1 | 132 | # JDK_IMPORT_PATH: location of JDK install tree (this version) to import |
duke@1 | 133 | ifdef ALT_JDK_IMPORT_PATH |
duke@1 | 134 | JDK_IMPORT_PATH :=$(call FullPath,$(ALT_JDK_IMPORT_PATH)) |
duke@1 | 135 | else |
duke@1 | 136 | JDK_IMPORT_PATH = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT) |
duke@1 | 137 | endif |
duke@1 | 138 | JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH) |
duke@1 | 139 |