jdk/make/common/shared/Defs-solaris.gmk
author never
Mon, 12 Jul 2010 22:27:18 -0700
changeset 5926 a36f90d986b6
parent 5506 202f599c92aa
child 7665 bc5dbdc44e1e
permissions -rw-r--r--
6968385: malformed xml in sweeper logging Reviewed-by: kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2188
diff changeset
     2
# Copyright (c) 2005, 2007, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2188
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2188
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2188
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2188
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2188
diff changeset
    23
# questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# Definitions for Solaris.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
# Default for COMPILER_WARNINGS_FATAL on Solaris (C & C++ compiler warnings)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
ifndef COMPILER_WARNINGS_FATAL
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
  COMPILER_WARNINGS_FATAL=false
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
# Solaris should use parallel compilation for best build times
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
ifndef COMPILE_APPROACH
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
  COMPILE_APPROACH = parallel
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
# Indication that we are doing an incremental build.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
#    This may trigger the creation of make depend files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
ifndef INCREMENTAL_BUILD
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
  INCREMENTAL_BUILD = false
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
# FullPath just makes sure it never ends with a / and no duplicates
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
define FullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
$(shell cd $1 2> $(DEV_NULL) && pwd)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
# OptFullPath: Absolute path name of a dir that might not initially exist.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
define OptFullPath
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
$(shell if [ "$1" != "" -a -d "$1" ]; then (cd $1 && pwd); else echo "$1"; fi)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
# Location on system where jdk installs might be
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
USRJDKINSTANCES_PATH =/usr/jdk/instances
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
# UNIXCOMMAND_PATH: path to where the most common Unix commands are.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
ifneq "$(origin ALT_UNIXCOMMAND_PATH)" "undefined"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
  UNIXCOMMAND_PATH :=$(call PrefixPath,$(ALT_UNIXCOMMAND_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
  UNIXCOMMAND_PATH  = /usr/bin/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
# UNIXCCS_PATH: path to where the less common UNIX commands can be found
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
ifneq "$(origin ALT_UNIXCCS_PATH)" "undefined"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
  UNIXCCS_PATH :=$(call PrefixPath,$(ALT_UNIXCCS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
  UNIXCCS_PATH = /usr/ccs/bin/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
# SLASH_JAVA: location of all network accessable files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
ifdef ALT_SLASH_JAVA
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
  SLASH_JAVA  :=$(ALT_SLASH_JAVA)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
  SLASH_JAVA  := $(call DirExists,/java,/java,/NOT-SET)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
# JDK_DEVTOOLS_DIR: common path for all the java devtools
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
ifdef ALT_JDK_DEVTOOLS_DIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
  JDK_DEVTOOLS_DIR  =$(ALT_JDK_DEVTOOLS_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
  JDK_DEVTOOLS_DIR =$(SLASH_JAVA)/devtools
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
# COMPILER_PATH: path to where the compiler and tools are installed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
ifneq "$(origin ALT_COMPILER_PATH)" "undefined"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
  COMPILER_PATH :=$(call PrefixPath,$(ALT_COMPILER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
else
2188
a1417beb3de8 6818565: Regression with fix 6816311: COMPILER_VERSION -> REQUIRED_COMPILER_VERSION
ohair
parents: 2
diff changeset
    94
  # Careful here, REQUIRED_COMPILER_VERSION may not be defined yet (see Defs-versions.gmk)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
  # If the place where we keep a set of Sun Studio compilers doesn't exist,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
  #  try and use /opt/SUNWspro, the default location for the SS compilers.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
  #  (DirExists checks for this path twice, an automount double check)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
  _SUNSTUDIO_SET_ROOT=$(JDK_DEVTOOLS_DIR)/$(ARCH_FAMILY)/SUNWspro
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
  SUNSTUDIO_SET_ROOT:=$(call DirExists,$(_SUNSTUDIO_SET_ROOT),$(_SUNSTUDIO_SET_ROOT),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
  ifneq ($(SUNSTUDIO_SET_ROOT),)
2188
a1417beb3de8 6818565: Regression with fix 6816311: COMPILER_VERSION -> REQUIRED_COMPILER_VERSION
ohair
parents: 2
diff changeset
   101
    COMPILER_PATH =$(SUNSTUDIO_SET_ROOT)/$(REQUIRED_COMPILER_VERSION)/bin/
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
    COMPILER_PATH =/opt/SUNWspro/bin/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
# DEVTOOLS_PATH: for other tools required for building (such as zip, etc.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
ifneq "$(origin ALT_DEVTOOLS_PATH)" "undefined"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
  DEVTOOLS_PATH :=$(call PrefixPath,$(ALT_DEVTOOLS_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
  ifdef ALT_JDK_DEVTOOLS_DIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
    DEVTOOLS_PATH =$(JDK_DEVTOOLS_DIR)/$(ARCH_FAMILY)/bin/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    ifdef OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
      DEVTOOLS_PATH = /usr/bin/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
      DEVTOOLS_PATH =$(JDK_DEVTOOLS_DIR)/$(ARCH_FAMILY)/bin/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
# _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
# _BOOTDIR2: Second choice
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
ifndef ALT_BOOTDIR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
  _BOOTDIR1  =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
  _BOOTDIR2  =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
# GCC_COMPILER_PATH: path to where the gcc/g++ compiler and tools are installed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
#  NOTE: Must end with / so that it could be empty, allowing PATH usage.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
ifneq "$(origin ALT_GCC_COMPILER_PATH)" "undefined"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
  GCC_COMPILER_PATH :=$(call PrefixPath,$(ALT_GCC_COMPILER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
  GCC_COMPILER_PATH = $(JDK_DEVTOOLS_DIR)/$(ARCH_FAMILY)/gnucc/bin/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
# Always build headless on Solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
BUILD_HEADLESS = true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
_CUPS_HEADERS_PATH=/opt/sfw/cups/include
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
# Import JDK images allow for partial builds, components not built are
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
#    imported (or copied from) these import areas when needed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
# BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
#   multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
ifdef ALT_BUILD_JDK_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
  BUILD_JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
  BUILD_JDK_IMPORT_PATH   = $(PROMOTED_BUILD_BINARIES)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
# JDK_IMPORT_PATH: location of previously built JDK (this version) to import
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
ifdef ALT_JDK_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
  JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_JDK_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
  JDK_IMPORT_PATH   = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
# HOTSPOT_IMPORT_PATH: location of hotspot pre-built files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
ifdef ALT_HOTSPOT_IMPORT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
  HOTSPOT_IMPORT_PATH :=$(call FullPath,$(ALT_HOTSPOT_IMPORT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
  HOTSPOT_IMPORT_PATH =$(JDK_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
HOTSPOT_IMPORT_PATH:=$(call AltCheckValue,HOTSPOT_IMPORT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
# HOTSPOT_CLIENT_PATH: location of client jvm library file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
  ifdef ALT_HOTSPOT_CLIENT_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
    HOTSPOT_CLIENT_PATH :=$(call FullPath,$(ALT_HOTSPOT_CLIENT_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    HOTSPOT_CLIENT_PATH   =$(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/client
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
  HOTSPOT_CLIENT_PATH:=$(call AltCheckValue,HOTSPOT_CLIENT_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
# HOTSPOT_SERVER_PATH: location of server jvm library file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
ifdef ALT_HOTSPOT_SERVER_PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
  HOTSPOT_SERVER_PATH :=$(call FullPath,$(ALT_HOTSPOT_SERVER_PATH))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
  HOTSPOT_SERVER_PATH   =$(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/server
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
HOTSPOT_SERVER_PATH:=$(call AltCheckValue,HOTSPOT_SERVER_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189