make/common/shared/Defs-linux.gmk

changeset 1
55540e827aef
child 158
91006f157c46
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/make/common/shared/Defs-linux.gmk	Sat Dec 01 00:00:00 2007 +0000
     1.3 @@ -0,0 +1,139 @@
     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 Linux.
    1.31 +#
    1.32 +
    1.33 +# Default for COMPILER_WARNINGS_FATAL on Linux (C & C++ compiler warnings)
    1.34 +ifndef COMPILER_WARNINGS_FATAL
    1.35 +  COMPILER_WARNINGS_FATAL=false
    1.36 +endif
    1.37 +
    1.38 +# Linux 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 =/opt/java
    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  = /bin/
    1.68 +endif
    1.69 +
    1.70 +# USRBIN_PATH: path to where the most common Unix commands are.
    1.71 +#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
    1.72 +ifneq "$(origin ALT_USRBIN_PATH)" "undefined"
    1.73 +  USRBIN_PATH :=$(call PrefixPath,$(ALT_USRBIN_PATH))
    1.74 +else
    1.75 +  USRBIN_PATH  = /usr/bin/
    1.76 +endif
    1.77 +
    1.78 +# UNIXCCS_PATH: path to where the Solaris ported UNIX commands can be found
    1.79 +#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
    1.80 +ifneq "$(origin ALT_UNIXCCS_PATH)" "undefined"
    1.81 +  UNIXCCS_PATH :=$(call PrefixPath,$(ALT_UNIXCCS_PATH))
    1.82 +else
    1.83 +  UNIXCCS_PATH = /usr/ccs/bin/
    1.84 +endif
    1.85 +
    1.86 +# SLASH_JAVA: location of all network accessable files
    1.87 +ifdef ALT_SLASH_JAVA
    1.88 +  SLASH_JAVA  :=$(ALT_SLASH_JAVA)
    1.89 +else
    1.90 +  SLASH_JAVA  := $(call DirExists,/java,/java,/NOT-SET)
    1.91 +endif
    1.92 +
    1.93 +# JDK_DEVTOOLS_DIR: common path for all the java devtools
    1.94 +ifdef ALT_JDK_DEVTOOLS_DIR
    1.95 +  JDK_DEVTOOLS_DIR  =$(ALT_JDK_DEVTOOLS_DIR)
    1.96 +else
    1.97 +  JDK_DEVTOOLS_DIR =$(SLASH_JAVA)/devtools
    1.98 +endif
    1.99 +
   1.100 +# COMPILER_PATH: path to where the compiler and tools are installed.
   1.101 +#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
   1.102 +ifneq "$(origin ALT_COMPILER_PATH)" "undefined"
   1.103 +  COMPILER_PATH :=$(call PrefixPath,$(ALT_COMPILER_PATH))
   1.104 +else
   1.105 +  COMPILER_PATH  =/usr/bin/
   1.106 +endif
   1.107 +
   1.108 +# DEVTOOLS_PATH: for other tools required for building (such as zip, etc.)
   1.109 +#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
   1.110 +ifneq "$(origin ALT_DEVTOOLS_PATH)" "undefined"
   1.111 +  DEVTOOLS_PATH :=$(call PrefixPath,$(ALT_DEVTOOLS_PATH))
   1.112 +else
   1.113 +  DEVTOOLS_PATH =/usr/bin/
   1.114 +endif
   1.115 +
   1.116 +# _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
   1.117 +# _BOOTDIR2: Second choice
   1.118 +ifndef ALT_BOOTDIR
   1.119 +  _BOOTDIR1  =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
   1.120 +  _BOOTDIR2  =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION)
   1.121 +endif
   1.122 +
   1.123 +# Import JDK images allow for partial builds, components not built are
   1.124 +#    imported (or copied from) these import areas when needed.
   1.125 +
   1.126 +# BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for 
   1.127 +#   multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc.
   1.128 +ifdef ALT_BUILD_JDK_IMPORT_PATH
   1.129 +  BUILD_JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH))
   1.130 +else
   1.131 +  BUILD_JDK_IMPORT_PATH   = $(PROMOTED_BUILD_BINARIES)
   1.132 +endif
   1.133 +BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH)
   1.134 +
   1.135 +# JDK_IMPORT_PATH: location of JDK install tree (this version) to import
   1.136 +ifdef ALT_JDK_IMPORT_PATH
   1.137 +  JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_JDK_IMPORT_PATH))
   1.138 +else
   1.139 +  JDK_IMPORT_PATH   = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT)
   1.140 +endif
   1.141 +JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH)
   1.142 +

mercurial