1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/make/common/shared/Defs-solaris.gmk Sat Dec 01 00:00:00 2007 +0000 1.3 @@ -0,0 +1,145 @@ 1.4 +# 1.5 +# Copyright 2005-2007 Sun Microsystems, Inc. All Rights Reserved. 1.6 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 +# 1.8 +# This code is free software; you can redistribute it and/or modify it 1.9 +# under the terms of the GNU General Public License version 2 only, as 1.10 +# published by the Free Software Foundation. Sun designates this 1.11 +# particular file as subject to the "Classpath" exception as provided 1.12 +# by Sun in the LICENSE file that accompanied this code. 1.13 +# 1.14 +# This code is distributed in the hope that it will be useful, but WITHOUT 1.15 +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.16 +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.17 +# version 2 for more details (a copy is included in the LICENSE file that 1.18 +# accompanied this code). 1.19 +# 1.20 +# You should have received a copy of the GNU General Public License version 1.21 +# 2 along with this work; if not, write to the Free Software Foundation, 1.22 +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.23 +# 1.24 +# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 1.25 +# CA 95054 USA or visit www.sun.com if you need additional information or 1.26 +# have any questions. 1.27 +# 1.28 + 1.29 +# 1.30 +# Definitions for Solaris. 1.31 +# 1.32 + 1.33 +# Default for COMPILER_WARNINGS_FATAL on Solaris (C & C++ compiler warnings) 1.34 +ifndef COMPILER_WARNINGS_FATAL 1.35 + COMPILER_WARNINGS_FATAL=false 1.36 +endif 1.37 + 1.38 +# Solaris should use parallel compilation for best build times 1.39 +ifndef COMPILE_APPROACH 1.40 + COMPILE_APPROACH = parallel 1.41 +endif 1.42 + 1.43 +# Indication that we are doing an incremental build. 1.44 +# This may trigger the creation of make depend files. 1.45 +ifndef INCREMENTAL_BUILD 1.46 + INCREMENTAL_BUILD = false 1.47 +endif 1.48 + 1.49 +# FullPath just makes sure it never ends with a / and no duplicates 1.50 +define FullPath 1.51 +$(shell cd $1 2> $(DEV_NULL) && pwd) 1.52 +endef 1.53 + 1.54 +# OptFullPath: Absolute path name of a dir that might not initially exist. 1.55 +define OptFullPath 1.56 +$(shell if [ "$1" != "" -a -d "$1" ]; then (cd $1 && pwd); else echo "$1"; fi) 1.57 +endef 1.58 + 1.59 +# Location on system where jdk installs might be 1.60 +USRJDKINSTANCES_PATH =/usr/jdk/instances 1.61 + 1.62 +# UNIXCOMMAND_PATH: path to where the most common Unix commands are. 1.63 +# NOTE: Must end with / so that it could be empty, allowing PATH usage. 1.64 +ifneq "$(origin ALT_UNIXCOMMAND_PATH)" "undefined" 1.65 + UNIXCOMMAND_PATH :=$(call PrefixPath,$(ALT_UNIXCOMMAND_PATH)) 1.66 +else 1.67 + UNIXCOMMAND_PATH = /usr/bin/ 1.68 +endif 1.69 + 1.70 +# UNIXCCS_PATH: path to where the less common UNIX commands can be found 1.71 +# NOTE: Must end with / so that it could be empty, allowing PATH usage. 1.72 +ifneq "$(origin ALT_UNIXCCS_PATH)" "undefined" 1.73 + UNIXCCS_PATH :=$(call PrefixPath,$(ALT_UNIXCCS_PATH)) 1.74 +else 1.75 + UNIXCCS_PATH = /usr/ccs/bin/ 1.76 +endif 1.77 + 1.78 +# SLASH_JAVA: location of all network accessable files 1.79 +ifdef ALT_SLASH_JAVA 1.80 + SLASH_JAVA :=$(ALT_SLASH_JAVA) 1.81 +else 1.82 + SLASH_JAVA := $(call DirExists,/java,/java,/NOT-SET) 1.83 +endif 1.84 + 1.85 +# JDK_DEVTOOLS_DIR: common path for all the java devtools 1.86 +ifdef ALT_JDK_DEVTOOLS_DIR 1.87 + JDK_DEVTOOLS_DIR =$(ALT_JDK_DEVTOOLS_DIR) 1.88 +else 1.89 + JDK_DEVTOOLS_DIR =$(SLASH_JAVA)/devtools 1.90 +endif 1.91 + 1.92 +# COMPILER_PATH: path to where the compiler and tools are installed. 1.93 +# NOTE: Must end with / so that it could be empty, allowing PATH usage. 1.94 +ifneq "$(origin ALT_COMPILER_PATH)" "undefined" 1.95 + COMPILER_PATH :=$(call PrefixPath,$(ALT_COMPILER_PATH)) 1.96 +else 1.97 + # Careful here, COMPILER_VERSION may not be defined yet (see Compiler.gmk) 1.98 + # If the place where we keep a set of Sun Studio compilers doesn't exist, 1.99 + # try and use /opt/SUNWspro, the default location for the SS compilers. 1.100 + # (DirExists checks for this path twice, an automount double check) 1.101 + _SUNSTUDIO_SET_ROOT=$(JDK_DEVTOOLS_DIR)/$(ARCH_FAMILY)/SUNWspro 1.102 + SUNSTUDIO_SET_ROOT:=$(call DirExists,$(_SUNSTUDIO_SET_ROOT),$(_SUNSTUDIO_SET_ROOT),) 1.103 + ifneq ($(SUNSTUDIO_SET_ROOT),) 1.104 + COMPILER_PATH =$(SUNSTUDIO_SET_ROOT)/$(COMPILER_VERSION)/bin/ 1.105 + else 1.106 + COMPILER_PATH =/opt/SUNWspro/bin/ 1.107 + endif 1.108 +endif 1.109 + 1.110 +# DEVTOOLS_PATH: for other tools required for building (such as zip, etc.) 1.111 +# NOTE: Must end with / so that it could be empty, allowing PATH usage. 1.112 +ifneq "$(origin ALT_DEVTOOLS_PATH)" "undefined" 1.113 + DEVTOOLS_PATH :=$(call PrefixPath,$(ALT_DEVTOOLS_PATH)) 1.114 +else 1.115 + ifdef ALT_JDK_DEVTOOLS_DIR 1.116 + DEVTOOLS_PATH =$(JDK_DEVTOOLS_DIR)/$(ARCH_FAMILY)/bin/ 1.117 + else 1.118 + DEVTOOLS_PATH =$(JDK_DEVTOOLS_DIR)/$(ARCH_FAMILY)/bin/ 1.119 + endif 1.120 +endif 1.121 + 1.122 +# _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK. 1.123 +# _BOOTDIR2: Second choice 1.124 +ifndef ALT_BOOTDIR 1.125 + _BOOTDIR1 =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH) 1.126 + _BOOTDIR2 =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION) 1.127 +endif 1.128 + 1.129 +# Import JDK images allow for partial builds, components not built are 1.130 +# imported (or copied from) these import areas when needed. 1.131 + 1.132 +# BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for 1.133 +# multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc. 1.134 +ifdef ALT_BUILD_JDK_IMPORT_PATH 1.135 + BUILD_JDK_IMPORT_PATH :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH)) 1.136 +else 1.137 + BUILD_JDK_IMPORT_PATH = $(PROMOTED_BUILD_BINARIES) 1.138 +endif 1.139 +BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH) 1.140 + 1.141 +# JDK_IMPORT_PATH: location of previously built JDK (this version) to import 1.142 +ifdef ALT_JDK_IMPORT_PATH 1.143 + JDK_IMPORT_PATH :=$(call FullPath,$(ALT_JDK_IMPORT_PATH)) 1.144 +else 1.145 + JDK_IMPORT_PATH = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT) 1.146 +endif 1.147 +JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH) 1.148 +