corba/make/common/shared/Defs-bsd.gmk
author michaelm
Tue, 06 Mar 2012 20:25:43 +0000
changeset 12061 902aeaf97ec5
child 14238 172cbca33d89
permissions -rw-r--r--
7113349: Initial changeset for Macosx port to jdk Reviewed-by: jjh, alanb, dholmes, anthony, ohrstrom, ksrini, jrose, weijun, smarks Contributed-by: Alan Bateman <alan.bateman@oracle.com>, Alexander Potochkin <alexander.potochkin@oracle.com>, Alexander Zuev <alexander.zuev@oracle.com>, Andrew Brygin <andrew.brygin@oracle.com>, Artem Ananiev <artem.ananiev@oracle.com>, Alex Strange <astrange@apple.com>, Bino George <bino@apple.com>, Christine Lu <christine.lu@oracle.com>, David Katleman <david.katleman@oracle.com>, David Durrence <david_durrence@apple.com>, Dmitry Cherepanov <dmitry.cherepanov@oracle.com>, Greg Lewis <glewis@eyesbeyond.com>, Kevin Miller <kevin_m_miller@apple.com>, Kurt Miller <kurt@intricatesoftware.com>, Landon Fuller <landonf@plausiblelabs.com>, Leonid Romanov <leonid.romanov@oracle.com>, Loefty Walkowiak <loefty@apple.com>, Mark Reinhold <mark.reinhold@oracle.com>, Naoto Sato <naoto.sato@oracle.com>, Philip Race <philip.race@oracle.com>, Roger Hoover <rhoover@apple.com>, Scott Kovatch <scott.kovatch@oracle.com>, Sergey ByloKhov <sergey.bylokhov@oracle.com>, Mike Swingler <swingler@apple.com>, Tomas Hurka <tomas.hurka@oracle.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12061
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     1
#
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     2
# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     4
#
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    10
#
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    15
# accompanied this code).
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    16
#
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    20
#
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    23
# questions.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    24
#
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    25
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    26
#
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    27
# Definitions for Bsd.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    28
#
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    29
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    30
# Default for COMPILER_WARNINGS_FATAL on Bsd (C & C++ compiler warnings)
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    31
ifndef COMPILER_WARNINGS_FATAL
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    32
  COMPILER_WARNINGS_FATAL=false
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    33
endif
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    34
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    35
# Bsd should use parallel compilation for best build times
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    36
ifndef COMPILE_APPROACH
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    37
  COMPILE_APPROACH = parallel
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    38
endif
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    39
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    40
# Indication that we are doing an incremental build.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    41
#    This may trigger the creation of make depend files.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    42
ifndef INCREMENTAL_BUILD
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    43
  INCREMENTAL_BUILD = false
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    44
endif
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    45
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    46
# FullPath just makes sure it never ends with a / and no duplicates
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    47
define FullPath
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    48
$(shell cd $1 2> $(DEV_NULL) && pwd)
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    49
endef
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    50
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    51
# OptFullPath: Absolute path name of a dir that might not initially exist.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    52
define OptFullPath
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    53
$(shell if [ "$1" != "" -a -d "$1" ]; then (cd $1 && pwd); else echo "$1"; fi)
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    54
endef
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    55
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    56
# Location on system where jdk installs might be
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    57
USRJDKINSTANCES_PATH =$(PACKAGE_PATH)
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    58
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    59
# UNIXCOMMAND_PATH: path to where the most common Unix commands are.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    60
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    61
ifneq "$(origin ALT_UNIXCOMMAND_PATH)" "undefined"
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    62
  UNIXCOMMAND_PATH :=$(call PrefixPath,$(ALT_UNIXCOMMAND_PATH))
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    63
else
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    64
  UNIXCOMMAND_PATH  = /bin/
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    65
endif
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    66
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    67
# USRBIN_PATH: path to where the most common Unix commands are.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    68
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    69
ifneq "$(origin ALT_USRBIN_PATH)" "undefined"
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    70
  USRBIN_PATH :=$(call PrefixPath,$(ALT_USRBIN_PATH))
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    71
else
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    72
  USRBIN_PATH  = /usr/bin/
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    73
endif
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    74
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    75
# UNIXCCS_PATH: path to where the Solaris ported UNIX commands can be found
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    76
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    77
ifneq "$(origin ALT_UNIXCCS_PATH)" "undefined"
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    78
  UNIXCCS_PATH :=$(call PrefixPath,$(ALT_UNIXCCS_PATH))
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    79
else
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    80
  UNIXCCS_PATH = /usr/ccs/bin/
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    81
endif
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    82
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    83
# SLASH_JAVA: location of all network accessable files
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    84
ifdef ALT_SLASH_JAVA
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    85
  SLASH_JAVA  :=$(ALT_SLASH_JAVA)
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    86
else
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    87
  SLASH_JAVA  := $(call DirExists,/java,/java,/NOT-SET)
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    88
endif
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    89
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    90
# JDK_DEVTOOLS_DIR: common path for all the java devtools
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    91
ifdef ALT_JDK_DEVTOOLS_DIR
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    92
  JDK_DEVTOOLS_DIR  =$(ALT_JDK_DEVTOOLS_DIR)
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    93
else
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    94
  JDK_DEVTOOLS_DIR =$(SLASH_JAVA)/devtools
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    95
endif
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    96
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    97
# DEVTOOLS_PATH: for other tools required for building (such as zip, etc.)
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    98
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    99
ifneq "$(origin ALT_DEVTOOLS_PATH)" "undefined"
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   100
  DEVTOOLS_PATH :=$(call PrefixPath,$(ALT_DEVTOOLS_PATH))
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   101
else
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   102
  DEVTOOLS_PATH =$(PACKAGE_PATH)/bin/
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   103
endif
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   104
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   105
# _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   106
# _BOOTDIR2: Second choice
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   107
ifndef ALT_BOOTDIR
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   108
  _BOOTDIR1  =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   109
  _BOOTDIR2  =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION)
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   110
endif
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   111
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   112
# Import JDK images allow for partial builds, components not built are
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   113
#    imported (or copied from) these import areas when needed.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   114
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   115
# BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   116
#   multiple platforms, e.g. windows-i586, solaris-sparc, bsd-586, etc.
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   117
ifdef ALT_BUILD_JDK_IMPORT_PATH
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   118
  BUILD_JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH))
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   119
else
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   120
  BUILD_JDK_IMPORT_PATH   = $(PROMOTED_BUILD_BINARIES)
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   121
endif
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   122
BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH)
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   123
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   124
# JDK_IMPORT_PATH: location of JDK install tree (this version) to import
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   125
ifdef ALT_JDK_IMPORT_PATH
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   126
  JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_JDK_IMPORT_PATH))
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   127
else
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   128
  JDK_IMPORT_PATH   = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT)
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   129
endif
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   130
JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH)
902aeaf97ec5 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   131