make/common/shared/Defs-linux.gmk

Tue, 28 Dec 2010 15:52:36 -0800

author
ohair
date
Tue, 28 Dec 2010 15:52:36 -0800
changeset 240
f90b3e014e83
parent 194
0f60cf26c5b5
permissions
-rw-r--r--

6962318: Update copyright year
Reviewed-by: xdono

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 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 # DEVTOOLS_PATH: for other tools required for building (such as zip, etc.)
duke@1 98 # NOTE: Must end with / so that it could be empty, allowing PATH usage.
duke@1 99 ifneq "$(origin ALT_DEVTOOLS_PATH)" "undefined"
duke@1 100 DEVTOOLS_PATH :=$(call PrefixPath,$(ALT_DEVTOOLS_PATH))
duke@1 101 else
duke@1 102 DEVTOOLS_PATH =/usr/bin/
duke@1 103 endif
duke@1 104
duke@1 105 # _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
duke@1 106 # _BOOTDIR2: Second choice
duke@1 107 ifndef ALT_BOOTDIR
duke@1 108 _BOOTDIR1 =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
duke@1 109 _BOOTDIR2 =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION)
duke@1 110 endif
duke@1 111
duke@1 112 # Import JDK images allow for partial builds, components not built are
duke@1 113 # imported (or copied from) these import areas when needed.
duke@1 114
duke@1 115 # BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for
duke@1 116 # multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc.
duke@1 117 ifdef ALT_BUILD_JDK_IMPORT_PATH
duke@1 118 BUILD_JDK_IMPORT_PATH :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH))
duke@1 119 else
duke@1 120 BUILD_JDK_IMPORT_PATH = $(PROMOTED_BUILD_BINARIES)
duke@1 121 endif
duke@1 122 BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH)
duke@1 123
duke@1 124 # JDK_IMPORT_PATH: location of JDK install tree (this version) to import
duke@1 125 ifdef ALT_JDK_IMPORT_PATH
duke@1 126 JDK_IMPORT_PATH :=$(call FullPath,$(ALT_JDK_IMPORT_PATH))
duke@1 127 else
duke@1 128 JDK_IMPORT_PATH = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT)
duke@1 129 endif
duke@1 130 JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH)
duke@1 131

mercurial