make/common/shared/Defs-bsd.gmk

Sun, 03 Nov 2013 07:32:11 +0000

author
chegar
date
Sun, 03 Nov 2013 07:32:11 +0000
changeset 559
98a5caae1990
parent 409
679e8ad9874f
permissions
-rw-r--r--

Merge

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

mercurial