make/Defs-internal.gmk
author kvn
Wed, 05 Mar 2008 11:33:31 -0800
changeset 210 6da234892f4a
parent 0 fd16c54261b3
child 16 13adabd0ff72
permissions -rw-r--r--
6671250: In Parse::do_if() old Cmp node 'c' should be replaced with new one after BoolNode transformation Summary: In Parse::do_if() 'c' (CmpNode) node may be changed during BoolNode transformation so 'c' may became dead but the node is referenced later in the code. Reviewed-by: never
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     1
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
     2
# Copyright 1995-2007 Sun Microsystems, Inc.  All Rights Reserved.
fd16c54261b3 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
fd16c54261b3 Initial load
duke
parents:
diff changeset
     4
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
fd16c54261b3 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
fd16c54261b3 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.  Sun designates this
fd16c54261b3 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
fd16c54261b3 Initial load
duke
parents:
diff changeset
     9
# by Sun in the LICENSE file that accompanied this code.
fd16c54261b3 Initial load
duke
parents:
diff changeset
    10
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
fd16c54261b3 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fd16c54261b3 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
fd16c54261b3 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
fd16c54261b3 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
fd16c54261b3 Initial load
duke
parents:
diff changeset
    16
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
fd16c54261b3 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
fd16c54261b3 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
fd16c54261b3 Initial load
duke
parents:
diff changeset
    20
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    21
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
fd16c54261b3 Initial load
duke
parents:
diff changeset
    22
# CA 95054 USA or visit www.sun.com if you need additional information or
fd16c54261b3 Initial load
duke
parents:
diff changeset
    23
# have any questions.
fd16c54261b3 Initial load
duke
parents:
diff changeset
    24
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    25
fd16c54261b3 Initial load
duke
parents:
diff changeset
    26
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    27
# Common variables used by all the Java makefiles.  This file should
fd16c54261b3 Initial load
duke
parents:
diff changeset
    28
# not contain rules.
fd16c54261b3 Initial load
duke
parents:
diff changeset
    29
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    30
fd16c54261b3 Initial load
duke
parents:
diff changeset
    31
# Define absolute paths to TOPDIRs
fd16c54261b3 Initial load
duke
parents:
diff changeset
    32
ABS_CONTROL_TOPDIR:=$(call OptFullPath,"$(CONTROL_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    33
ABS_LANGTOOLS_TOPDIR:=$(call OptFullPath,"$(LANGTOOLS_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    34
ABS_CORBA_TOPDIR:=$(call OptFullPath,"$(CORBA_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    35
ABS_JAXP_TOPDIR:=$(call OptFullPath,"$(JAXP_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    36
ABS_JAXWS_TOPDIR:=$(call OptFullPath,"$(JAXWS_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    37
ABS_JDK_TOPDIR:=$(call OptFullPath,"$(JDK_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    38
ABS_HOTSPOT_TOPDIR:=$(call OptFullPath,"$(HOTSPOT_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    39
ABS_INSTALL_TOPDIR:=$(call OptFullPath,"$(INSTALL_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    40
ABS_SPONSORS_TOPDIR:=$(call OptFullPath,"$(SPONSORS_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    41
ABS_DEPLOY_TOPDIR:=$(call OptFullPath,"$(DEPLOY_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    42
fd16c54261b3 Initial load
duke
parents:
diff changeset
    43
# Macro to return true or false if a file exists and is readable
fd16c54261b3 Initial load
duke
parents:
diff changeset
    44
define MkExists
fd16c54261b3 Initial load
duke
parents:
diff changeset
    45
$(shell if [ -r $1 ]; then $(ECHO) true; else $(ECHO) false; fi)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    46
endef
fd16c54261b3 Initial load
duke
parents:
diff changeset
    47
fd16c54261b3 Initial load
duke
parents:
diff changeset
    48
HOTSPOT_SRC_AVAILABLE := $(call MkExists,$(HOTSPOT_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    49
ifndef BUILD_HOTSPOT
fd16c54261b3 Initial load
duke
parents:
diff changeset
    50
  ifdef ALT_HOTSPOT_IMPORT_PATH
fd16c54261b3 Initial load
duke
parents:
diff changeset
    51
    BUILD_HOTSPOT := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
    52
  else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    53
    BUILD_HOTSPOT := $(HOTSPOT_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    54
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    55
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    56
fd16c54261b3 Initial load
duke
parents:
diff changeset
    57
LANGTOOLS_SRC_AVAILABLE := $(call MkExists,$(LANGTOOLS_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    58
ifndef BUILD_LANGTOOLS
fd16c54261b3 Initial load
duke
parents:
diff changeset
    59
  ifdef ALT_LANGTOOLS_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
    60
    BUILD_LANGTOOLS := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
    61
  else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    62
    BUILD_LANGTOOLS := $(LANGTOOLS_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    63
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    64
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    65
fd16c54261b3 Initial load
duke
parents:
diff changeset
    66
CORBA_SRC_AVAILABLE := $(call MkExists,$(CORBA_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    67
ifndef BUILD_CORBA
fd16c54261b3 Initial load
duke
parents:
diff changeset
    68
  ifdef ALT_CORBA_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
    69
    BUILD_CORBA := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
    70
  else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    71
    BUILD_CORBA := $(CORBA_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    72
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    73
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    74
fd16c54261b3 Initial load
duke
parents:
diff changeset
    75
JAXP_SRC_AVAILABLE := $(call MkExists,$(JAXP_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    76
ifndef BUILD_JAXP
fd16c54261b3 Initial load
duke
parents:
diff changeset
    77
  ifdef ALT_JAXP_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
    78
    BUILD_JAXP := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
    79
  else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    80
    BUILD_JAXP := $(JAXP_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    81
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    82
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    83
fd16c54261b3 Initial load
duke
parents:
diff changeset
    84
JAXWS_SRC_AVAILABLE := $(call MkExists,$(JAXWS_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    85
ifndef BUILD_JAXWS
fd16c54261b3 Initial load
duke
parents:
diff changeset
    86
  ifdef ALT_JAXWS_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
    87
    BUILD_JAXWS := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
    88
  else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    89
    BUILD_JAXWS := $(JAXWS_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    90
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    91
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    92
fd16c54261b3 Initial load
duke
parents:
diff changeset
    93
JDK_SRC_AVAILABLE := $(call MkExists,$(JDK_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    94
ifndef BUILD_JDK
fd16c54261b3 Initial load
duke
parents:
diff changeset
    95
  BUILD_JDK := $(JDK_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    96
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    97
ifeq ($(JDK_SRC_AVAILABLE),true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    98
  JDK_CLOSED_SRC_AVAILABLE := $(call MkExists,$(JDK_TOPDIR)/src/closed)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    99
  ifndef OPENJDK
fd16c54261b3 Initial load
duke
parents:
diff changeset
   100
    ifeq ($(JDK_CLOSED_SRC_AVAILABLE),false)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   101
      OPENJDK = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   102
    endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   103
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   104
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   105
fd16c54261b3 Initial load
duke
parents:
diff changeset
   106
DEPLOY_SRC_AVAILABLE := $(call MkExists,$(DEPLOY_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   107
ifndef BUILD_DEPLOY
fd16c54261b3 Initial load
duke
parents:
diff changeset
   108
  BUILD_DEPLOY := $(DEPLOY_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   109
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   110
fd16c54261b3 Initial load
duke
parents:
diff changeset
   111
INSTALL_SRC_AVAILABLE := $(call MkExists,$(INSTALL_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   112
ifndef BUILD_INSTALL
fd16c54261b3 Initial load
duke
parents:
diff changeset
   113
  ifdef DEV_ONLY
fd16c54261b3 Initial load
duke
parents:
diff changeset
   114
    BUILD_INSTALL := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   115
  else
fd16c54261b3 Initial load
duke
parents:
diff changeset
   116
    BUILD_INSTALL := $(INSTALL_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   117
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   118
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   119
fd16c54261b3 Initial load
duke
parents:
diff changeset
   120
SPONSORS_SRC_AVAILABLE := $(call MkExists,$(SPONSORS_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   121
ifndef BUILD_SPONSORS
fd16c54261b3 Initial load
duke
parents:
diff changeset
   122
  ifdef DEV_ONLY
fd16c54261b3 Initial load
duke
parents:
diff changeset
   123
    BUILD_SPONSORS := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   124
  else
fd16c54261b3 Initial load
duke
parents:
diff changeset
   125
    BUILD_SPONSORS := $(SPONSORS_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   126
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   127
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   128
fd16c54261b3 Initial load
duke
parents:
diff changeset
   129
fd16c54261b3 Initial load
duke
parents:
diff changeset
   130
# Do we build the source and openjdk binary plug bundles?
fd16c54261b3 Initial load
duke
parents:
diff changeset
   131
BUNDLE_RULES = $(JDK_TOPDIR)/make/closed/bundles.gmk
fd16c54261b3 Initial load
duke
parents:
diff changeset
   132
BUNDLE_RULES_AVAILABLE := $(call MkExists,$(BUNDLE_RULES))
fd16c54261b3 Initial load
duke
parents:
diff changeset
   133
fd16c54261b3 Initial load
duke
parents:
diff changeset
   134
# Current things we do NOT build for OPENJDK
fd16c54261b3 Initial load
duke
parents:
diff changeset
   135
ifdef OPENJDK
fd16c54261b3 Initial load
duke
parents:
diff changeset
   136
  BUILD_DEPLOY = false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   137
  BUILD_INSTALL = false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   138
  BUILD_SPONSORS = false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   139
  BUNDLE_RULES_AVAILABLE := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   140
  # These could be over-ridden on the command line or in environment
fd16c54261b3 Initial load
duke
parents:
diff changeset
   141
  ifndef SKIP_FASTDEBUG_BUILD
fd16c54261b3 Initial load
duke
parents:
diff changeset
   142
    SKIP_FASTDEBUG_BUILD = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   143
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   144
  ifndef SKIP_DEBUG_BUILD
fd16c54261b3 Initial load
duke
parents:
diff changeset
   145
    SKIP_DEBUG_BUILD = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   146
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   147
  ifndef SKIP_COMPARE_IMAGES
fd16c54261b3 Initial load
duke
parents:
diff changeset
   148
    SKIP_COMPARE_IMAGES = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   149
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   150
  SKIP_OPENJDK_BUILD = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   151
else
fd16c54261b3 Initial load
duke
parents:
diff changeset
   152
  ifndef SKIP_OPENJDK_BUILD
fd16c54261b3 Initial load
duke
parents:
diff changeset
   153
    SKIP_OPENJDK_BUILD = false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   154
    # FIXUP: until freetype fixed on linux and solaris rmi build fixed
fd16c54261b3 Initial load
duke
parents:
diff changeset
   155
    SKIP_OPENJDK_BUILD = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   156
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   157
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   158
fd16c54261b3 Initial load
duke
parents:
diff changeset
   159
# Solaris 64 bit builds are not complete enough to ever do this
fd16c54261b3 Initial load
duke
parents:
diff changeset
   160
ifeq ($(PLATFORM)$(ARCH_DATA_MODEL),solaris64)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   161
  SKIP_OPENJDK_BUILD = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   162
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   163
fd16c54261b3 Initial load
duke
parents:
diff changeset
   164
# Many reasons why we would want to skip the comparison to previous jdk
fd16c54261b3 Initial load
duke
parents:
diff changeset
   165
ifndef SKIP_COMPARE_IMAGES
fd16c54261b3 Initial load
duke
parents:
diff changeset
   166
  ifeq ($(BUILD_JDK), false)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   167
    SKIP_COMPARE_IMAGES = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   168
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   169
  ifeq ($(BUILD_DEPLOY), false)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   170
    SKIP_COMPARE_IMAGES = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   171
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   172
  ifeq ($(BUILD_INSTALL), false)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   173
    SKIP_COMPARE_IMAGES = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   174
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   175
  ifdef DEV_ONLY
fd16c54261b3 Initial load
duke
parents:
diff changeset
   176
    SKIP_COMPARE_IMAGES = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   177
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   178
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   179
fd16c54261b3 Initial load
duke
parents:
diff changeset
   180
# Select defaults if these are not set to true or false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   181
ifndef SKIP_DEBUG_BUILD
fd16c54261b3 Initial load
duke
parents:
diff changeset
   182
  SKIP_DEBUG_BUILD=true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   183
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   184
ifndef SKIP_FASTDEBUG_BUILD
fd16c54261b3 Initial load
duke
parents:
diff changeset
   185
  SKIP_FASTDEBUG_BUILD=false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   186
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   187
fd16c54261b3 Initial load
duke
parents:
diff changeset
   188
# Output directory for hotspot build
fd16c54261b3 Initial load
duke
parents:
diff changeset
   189
HOTSPOT_DIR = $(ABS_OUTPUTDIR)/hotspot
fd16c54261b3 Initial load
duke
parents:
diff changeset
   190
fd16c54261b3 Initial load
duke
parents:
diff changeset
   191
# If we are building components
fd16c54261b3 Initial load
duke
parents:
diff changeset
   192
ifndef ALT_LANGTOOLS_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
   193
  LANGTOOLS_OUTPUTDIR = $(ABS_OUTPUTDIR)/langtools
fd16c54261b3 Initial load
duke
parents:
diff changeset
   194
  ABS_LANGTOOLS_DIST = $(LANGTOOLS_OUTPUTDIR)/dist
fd16c54261b3 Initial load
duke
parents:
diff changeset
   195
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   196
ifndef ALT_CORBA_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
   197
  CORBA_OUTPUTDIR = $(ABS_OUTPUTDIR)/corba
fd16c54261b3 Initial load
duke
parents:
diff changeset
   198
  ABS_CORBA_DIST = $(CORBA_OUTPUTDIR)/dist
fd16c54261b3 Initial load
duke
parents:
diff changeset
   199
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   200
ifndef ALT_JAXP_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
   201
  JAXP_OUTPUTDIR = $(ABS_OUTPUTDIR)/jaxp
fd16c54261b3 Initial load
duke
parents:
diff changeset
   202
  ABS_JAXP_DIST = $(JAXP_OUTPUTDIR)/dist
fd16c54261b3 Initial load
duke
parents:
diff changeset
   203
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   204
ifndef ALT_JAXWS_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
   205
  JAXWS_OUTPUTDIR = $(ABS_OUTPUTDIR)/jaxws
fd16c54261b3 Initial load
duke
parents:
diff changeset
   206
  ABS_JAXWS_DIST = $(JAXWS_OUTPUTDIR)/dist
fd16c54261b3 Initial load
duke
parents:
diff changeset
   207
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   208
fd16c54261b3 Initial load
duke
parents:
diff changeset
   209
# Common make arguments (supplied to all component builds)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   210
COMMON_BUILD_ARGUMENTS = \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   211
    JDK_TOPDIR=$(ABS_JDK_TOPDIR) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   212
    JDK_MAKE_SHARED_DIR=$(ABS_JDK_TOPDIR)/make/common/shared \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   213
    EXTERNALSANITYCONTROL=true \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   214
    TARGET_CLASS_VERSION=$(TARGET_CLASS_VERSION) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   215
    MILESTONE=$(MILESTONE) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   216
    BUILD_NUMBER=$(BUILD_NUMBER) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   217
    JDK_BUILD_NUMBER=$(JDK_BUILD_NUMBER) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   218
    FULL_VERSION=$(FULL_VERSION) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   219
    PREVIOUS_JDK_VERSION=$(PREVIOUS_JDK_VERSION) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   220
    JDK_VERSION=$(JDK_VERSION) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   221
    JDK_MKTG_VERSION=$(JDK_MKTG_VERSION) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   222
    JDK_MAJOR_VERSION=$(JDK_MAJOR_VERSION) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   223
    JDK_MINOR_VERSION=$(JDK_MINOR_VERSION) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   224
    JDK_MICRO_VERSION=$(JDK_MICRO_VERSION)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   225
fd16c54261b3 Initial load
duke
parents:
diff changeset
   226
ifdef ARCH_DATA_MODEL
fd16c54261b3 Initial load
duke
parents:
diff changeset
   227
  COMMON_BUILD_ARGUMENTS += ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   228
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   229
fd16c54261b3 Initial load
duke
parents:
diff changeset
   230
ifeq ($(DEBUG_NAME), debug)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   231
  COMMON_BUILD_ARGUMENTS += VARIANT=DBG DEBUG_CLASSFILES=true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   232
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   233
fd16c54261b3 Initial load
duke
parents:
diff changeset
   234
ifeq ($(DEBUG_NAME), fastdebug)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   235
  COMMON_BUILD_ARGUMENTS += VARIANT=DBG FASTDEBUG=true DEBUG_CLASSFILES=true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   236
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   237
fd16c54261b3 Initial load
duke
parents:
diff changeset
   238
ifdef COOKED_JDK_UPDATE_VERSION
fd16c54261b3 Initial load
duke
parents:
diff changeset
   239
  COMMON_BUILD_ARGUMENTS += COOKED_JDK_UPDATE_VERSION=$(COOKED_JDK_UPDATE_VERSION)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   240
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   241
fd16c54261b3 Initial load
duke
parents:
diff changeset
   242
ifdef COOKED_BUILD_NUMBER
fd16c54261b3 Initial load
duke
parents:
diff changeset
   243
  COMMON_BUILD_ARGUMENTS += COOKED_BUILD_NUMBER=$(COOKED_BUILD_NUMBER)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   244
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   245
fd16c54261b3 Initial load
duke
parents:
diff changeset
   246
ifdef ANT_HOME
fd16c54261b3 Initial load
duke
parents:
diff changeset
   247
  COMMON_BUILD_ARGUMENTS += ANT_HOME="$(ANT_HOME)"
fd16c54261b3 Initial load
duke
parents:
diff changeset
   248
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   249
fd16c54261b3 Initial load
duke
parents:
diff changeset
   250
ifdef FINDBUGS_HOME
fd16c54261b3 Initial load
duke
parents:
diff changeset
   251
  COMMON_BUILD_ARGUMENTS += FINDBUGS_HOME="$(FINDBUGS_HOME)"
fd16c54261b3 Initial load
duke
parents:
diff changeset
   252
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   253
fd16c54261b3 Initial load
duke
parents:
diff changeset
   254