make/Defs-internal.gmk
author dcubed
Tue, 15 Feb 2011 19:00:22 -0800
changeset 8306 e8b13a27a0e2
parent 8055 7c023d700f09
child 8441 30f5ad688d4a
permissions -rw-r--r--
6954420: 2/4 jps shows "process information unavailable" sometimes Summary: Make sure the backing store file is flushed in create_sharedmem_resources() and get_user_name_slow() no longer checks the size of the backing store file. Reviewed-by: briand, swamyv, acorn, poonam
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     1
#
7654
a8d5f59bbae6 6962318: Update copyright year
ohair
parents: 5743
diff changeset
     2
# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
0
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
5499
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4557
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5499
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4557
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
0
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
#
5499
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4557
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4557
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4557
diff changeset
    23
# questions.
0
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
3789
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    31
# Indicate that we are visiting a separate repo or component 
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    32
define MakeStart
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    33
$(PRINTF) "\n\n%s\n%s\n##### %-60.60s #####\n%s\n" \
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    34
"########################################################################" \
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    35
"########################################################################" \
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    36
"Entering $1 for target $2" \
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    37
"########################################################################"
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    38
endef
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    39
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    40
define MakeFinish
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    41
$(PRINTF) "%s\n##### %-60.60s #####\n%s\n%s\n\n" \
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    42
"########################################################################" \
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    43
"Leaving $1 for target $2" \
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    44
"########################################################################" \
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    45
"########################################################################"
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    46
endef
2040d99c6f14 6855174: Improve log output when builds transition from one workspace to another
ohair
parents: 3571
diff changeset
    47
19
1a94d6d22dbb 6674232: OPENJDK=false is same as OPENJDK=true
ohair
parents: 18
diff changeset
    48
ifdef OPENJDK
1a94d6d22dbb 6674232: OPENJDK=false is same as OPENJDK=true
ohair
parents: 18
diff changeset
    49
  ifneq ($(OPENJDK),true)
1a94d6d22dbb 6674232: OPENJDK=false is same as OPENJDK=true
ohair
parents: 18
diff changeset
    50
    x:=$(error "OPENJDK (if defined) can only be set to true")
1a94d6d22dbb 6674232: OPENJDK=false is same as OPENJDK=true
ohair
parents: 18
diff changeset
    51
  endif
1a94d6d22dbb 6674232: OPENJDK=false is same as OPENJDK=true
ohair
parents: 18
diff changeset
    52
endif
1a94d6d22dbb 6674232: OPENJDK=false is same as OPENJDK=true
ohair
parents: 18
diff changeset
    53
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    54
# Define absolute paths to TOPDIRs
fd16c54261b3 Initial load
duke
parents:
diff changeset
    55
ABS_LANGTOOLS_TOPDIR:=$(call OptFullPath,"$(LANGTOOLS_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    56
ABS_CORBA_TOPDIR:=$(call OptFullPath,"$(CORBA_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    57
ABS_JAXP_TOPDIR:=$(call OptFullPath,"$(JAXP_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    58
ABS_JAXWS_TOPDIR:=$(call OptFullPath,"$(JAXWS_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    59
ABS_JDK_TOPDIR:=$(call OptFullPath,"$(JDK_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    60
ABS_HOTSPOT_TOPDIR:=$(call OptFullPath,"$(HOTSPOT_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    61
ABS_INSTALL_TOPDIR:=$(call OptFullPath,"$(INSTALL_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    62
ABS_SPONSORS_TOPDIR:=$(call OptFullPath,"$(SPONSORS_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    63
ABS_DEPLOY_TOPDIR:=$(call OptFullPath,"$(DEPLOY_TOPDIR)")
fd16c54261b3 Initial load
duke
parents:
diff changeset
    64
fd16c54261b3 Initial load
duke
parents:
diff changeset
    65
# Macro to return true or false if a file exists and is readable
fd16c54261b3 Initial load
duke
parents:
diff changeset
    66
define MkExists
fd16c54261b3 Initial load
duke
parents:
diff changeset
    67
$(shell if [ -r $1 ]; then $(ECHO) true; else $(ECHO) false; fi)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    68
endef
fd16c54261b3 Initial load
duke
parents:
diff changeset
    69
fd16c54261b3 Initial load
duke
parents:
diff changeset
    70
HOTSPOT_SRC_AVAILABLE := $(call MkExists,$(HOTSPOT_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    71
ifndef BUILD_HOTSPOT
fd16c54261b3 Initial load
duke
parents:
diff changeset
    72
  ifdef ALT_HOTSPOT_IMPORT_PATH
fd16c54261b3 Initial load
duke
parents:
diff changeset
    73
    BUILD_HOTSPOT := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
    74
  else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    75
    BUILD_HOTSPOT := $(HOTSPOT_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    76
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    77
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    78
fd16c54261b3 Initial load
duke
parents:
diff changeset
    79
LANGTOOLS_SRC_AVAILABLE := $(call MkExists,$(LANGTOOLS_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    80
ifndef BUILD_LANGTOOLS
fd16c54261b3 Initial load
duke
parents:
diff changeset
    81
  ifdef ALT_LANGTOOLS_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
    82
    BUILD_LANGTOOLS := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
    83
  else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    84
    BUILD_LANGTOOLS := $(LANGTOOLS_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    85
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    86
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    87
fd16c54261b3 Initial load
duke
parents:
diff changeset
    88
CORBA_SRC_AVAILABLE := $(call MkExists,$(CORBA_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    89
ifndef BUILD_CORBA
fd16c54261b3 Initial load
duke
parents:
diff changeset
    90
  ifdef ALT_CORBA_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
    91
    BUILD_CORBA := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
    92
  else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    93
    BUILD_CORBA := $(CORBA_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    94
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    95
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    96
fd16c54261b3 Initial load
duke
parents:
diff changeset
    97
JAXP_SRC_AVAILABLE := $(call MkExists,$(JAXP_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    98
ifndef BUILD_JAXP
fd16c54261b3 Initial load
duke
parents:
diff changeset
    99
  ifdef ALT_JAXP_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
   100
    BUILD_JAXP := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   101
  else
fd16c54261b3 Initial load
duke
parents:
diff changeset
   102
    BUILD_JAXP := $(JAXP_SRC_AVAILABLE)
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
JAXWS_SRC_AVAILABLE := $(call MkExists,$(JAXWS_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   107
ifndef BUILD_JAXWS
fd16c54261b3 Initial load
duke
parents:
diff changeset
   108
  ifdef ALT_JAXWS_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
   109
    BUILD_JAXWS := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   110
  else
fd16c54261b3 Initial load
duke
parents:
diff changeset
   111
    BUILD_JAXWS := $(JAXWS_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   112
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   113
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   114
fd16c54261b3 Initial load
duke
parents:
diff changeset
   115
JDK_SRC_AVAILABLE := $(call MkExists,$(JDK_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   116
ifndef BUILD_JDK
fd16c54261b3 Initial load
duke
parents:
diff changeset
   117
  BUILD_JDK := $(JDK_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   118
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   119
ifeq ($(JDK_SRC_AVAILABLE),true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   120
  JDK_CLOSED_SRC_AVAILABLE := $(call MkExists,$(JDK_TOPDIR)/src/closed)
19
1a94d6d22dbb 6674232: OPENJDK=false is same as OPENJDK=true
ohair
parents: 18
diff changeset
   121
  ifeq ($(JDK_CLOSED_SRC_AVAILABLE),false)
1a94d6d22dbb 6674232: OPENJDK=false is same as OPENJDK=true
ohair
parents: 18
diff changeset
   122
    OPENJDK = true
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   123
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   124
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   125
fd16c54261b3 Initial load
duke
parents:
diff changeset
   126
DEPLOY_SRC_AVAILABLE := $(call MkExists,$(DEPLOY_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   127
ifndef BUILD_DEPLOY
fd16c54261b3 Initial load
duke
parents:
diff changeset
   128
  BUILD_DEPLOY := $(DEPLOY_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   129
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   130
fd16c54261b3 Initial load
duke
parents:
diff changeset
   131
INSTALL_SRC_AVAILABLE := $(call MkExists,$(INSTALL_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   132
ifndef BUILD_INSTALL
fd16c54261b3 Initial load
duke
parents:
diff changeset
   133
  ifdef DEV_ONLY
fd16c54261b3 Initial load
duke
parents:
diff changeset
   134
    BUILD_INSTALL := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   135
  else
fd16c54261b3 Initial load
duke
parents:
diff changeset
   136
    BUILD_INSTALL := $(INSTALL_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   137
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   138
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   139
fd16c54261b3 Initial load
duke
parents:
diff changeset
   140
SPONSORS_SRC_AVAILABLE := $(call MkExists,$(SPONSORS_TOPDIR)/make/Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   141
ifndef BUILD_SPONSORS
fd16c54261b3 Initial load
duke
parents:
diff changeset
   142
  ifdef DEV_ONLY
fd16c54261b3 Initial load
duke
parents:
diff changeset
   143
    BUILD_SPONSORS := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   144
  else
fd16c54261b3 Initial load
duke
parents:
diff changeset
   145
    BUILD_SPONSORS := $(SPONSORS_SRC_AVAILABLE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   146
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   147
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   148
fd16c54261b3 Initial load
duke
parents:
diff changeset
   149
7873
4ff5acee11e8 7009969: Remove SKIP_OPENJDK_BUILD from top Makefile
ohair
parents: 7654
diff changeset
   150
# Do we build the source bundles?
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   151
BUNDLE_RULES = $(JDK_TOPDIR)/make/closed/bundles.gmk
3571
764028d95393 6872177: JCE framework and provider builds broken following -target 7 changes
wetmore
parents: 3040
diff changeset
   152
ifeq ($(SKIP_BUNDLES_BUILD), true)
764028d95393 6872177: JCE framework and provider builds broken following -target 7 changes
wetmore
parents: 3040
diff changeset
   153
  BUNDLE_RULES_AVAILABLE := false
764028d95393 6872177: JCE framework and provider builds broken following -target 7 changes
wetmore
parents: 3040
diff changeset
   154
else 
764028d95393 6872177: JCE framework and provider builds broken following -target 7 changes
wetmore
parents: 3040
diff changeset
   155
  BUNDLE_RULES_AVAILABLE := $(call MkExists,$(BUNDLE_RULES))
764028d95393 6872177: JCE framework and provider builds broken following -target 7 changes
wetmore
parents: 3040
diff changeset
   156
endif
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   157
fd16c54261b3 Initial load
duke
parents:
diff changeset
   158
# Current things we do NOT build for OPENJDK
fd16c54261b3 Initial load
duke
parents:
diff changeset
   159
ifdef OPENJDK
fd16c54261b3 Initial load
duke
parents:
diff changeset
   160
  BUILD_DEPLOY = false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   161
  BUILD_INSTALL = false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   162
  BUILD_SPONSORS = false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   163
  BUNDLE_RULES_AVAILABLE := false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   164
  # These could be over-ridden on the command line or in environment
fd16c54261b3 Initial load
duke
parents:
diff changeset
   165
  ifndef SKIP_FASTDEBUG_BUILD
fd16c54261b3 Initial load
duke
parents:
diff changeset
   166
    SKIP_FASTDEBUG_BUILD = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   167
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   168
  ifndef SKIP_DEBUG_BUILD
fd16c54261b3 Initial load
duke
parents:
diff changeset
   169
    SKIP_DEBUG_BUILD = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   170
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   171
  ifndef SKIP_COMPARE_IMAGES
fd16c54261b3 Initial load
duke
parents:
diff changeset
   172
    SKIP_COMPARE_IMAGES = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   173
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   174
else
3040
48f8548b018b 6857805: Fix openjdk builds to avoid building deploy repository
ohair
parents: 2905
diff changeset
   175
  
48f8548b018b 6857805: Fix openjdk builds to avoid building deploy repository
ohair
parents: 2905
diff changeset
   176
  # Various non-OPENJDK reasons to NOT build the deploy repository
48f8548b018b 6857805: Fix openjdk builds to avoid building deploy repository
ohair
parents: 2905
diff changeset
   177
  ifeq ($(ARCH), ia64)
48f8548b018b 6857805: Fix openjdk builds to avoid building deploy repository
ohair
parents: 2905
diff changeset
   178
    BUILD_DEPLOY=false
48f8548b018b 6857805: Fix openjdk builds to avoid building deploy repository
ohair
parents: 2905
diff changeset
   179
  endif
48f8548b018b 6857805: Fix openjdk builds to avoid building deploy repository
ohair
parents: 2905
diff changeset
   180
  ifeq ($(ARCH), sparcv9)
48f8548b018b 6857805: Fix openjdk builds to avoid building deploy repository
ohair
parents: 2905
diff changeset
   181
    BUILD_DEPLOY=false
48f8548b018b 6857805: Fix openjdk builds to avoid building deploy repository
ohair
parents: 2905
diff changeset
   182
  endif
48f8548b018b 6857805: Fix openjdk builds to avoid building deploy repository
ohair
parents: 2905
diff changeset
   183
  ifeq ($(ARCH), amd64)
48f8548b018b 6857805: Fix openjdk builds to avoid building deploy repository
ohair
parents: 2905
diff changeset
   184
    ifeq ($(PLATFORM), solaris)
48f8548b018b 6857805: Fix openjdk builds to avoid building deploy repository
ohair
parents: 2905
diff changeset
   185
      BUILD_DEPLOY=false
48f8548b018b 6857805: Fix openjdk builds to avoid building deploy repository
ohair
parents: 2905
diff changeset
   186
    endif
48f8548b018b 6857805: Fix openjdk builds to avoid building deploy repository
ohair
parents: 2905
diff changeset
   187
  endif
48f8548b018b 6857805: Fix openjdk builds to avoid building deploy repository
ohair
parents: 2905
diff changeset
   188
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   189
endif
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   190
ifndef SKIP_PRODUCT_BUILD
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   191
  SKIP_PRODUCT_BUILD = false
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   192
endif
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   193
fd16c54261b3 Initial load
duke
parents:
diff changeset
   194
# Many reasons why we would want to skip the comparison to previous jdk
fd16c54261b3 Initial load
duke
parents:
diff changeset
   195
ifndef SKIP_COMPARE_IMAGES
fd16c54261b3 Initial load
duke
parents:
diff changeset
   196
  ifeq ($(BUILD_JDK), false)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   197
    SKIP_COMPARE_IMAGES = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   198
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   199
  ifeq ($(BUILD_DEPLOY), false)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   200
    SKIP_COMPARE_IMAGES = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   201
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   202
  ifeq ($(BUILD_INSTALL), false)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   203
    SKIP_COMPARE_IMAGES = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   204
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   205
  ifdef DEV_ONLY
fd16c54261b3 Initial load
duke
parents:
diff changeset
   206
    SKIP_COMPARE_IMAGES = true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   207
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   208
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   209
fd16c54261b3 Initial load
duke
parents:
diff changeset
   210
# Select defaults if these are not set to true or false
fd16c54261b3 Initial load
duke
parents:
diff changeset
   211
ifndef SKIP_DEBUG_BUILD
fd16c54261b3 Initial load
duke
parents:
diff changeset
   212
  SKIP_DEBUG_BUILD=true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   213
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   214
ifndef SKIP_FASTDEBUG_BUILD
8055
7c023d700f09 7014634: By default, only build the product bits with a closed jdk build (like openjdk does)
ohair
parents: 7873
diff changeset
   215
  SKIP_FASTDEBUG_BUILD=true
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   216
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   217
4309
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   218
# Select javadoc setting GENERATE_DOCS
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   219
ifndef NO_DOCS
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   220
  # Default value (we want javadoc run)
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   221
  GENERATE_DOCS=true
4557
06b5b429d9f5 6914986: Make sure openjdk doc generation not turned off with JDK_UPDATE_VERSION
andrew
parents: 4309
diff changeset
   222
  # No DOCS build when JDK_UPDATE_VERSION set on non-OPENJDK builds
06b5b429d9f5 6914986: Make sure openjdk doc generation not turned off with JDK_UPDATE_VERSION
andrew
parents: 4309
diff changeset
   223
  ifndef OPENJDK
06b5b429d9f5 6914986: Make sure openjdk doc generation not turned off with JDK_UPDATE_VERSION
andrew
parents: 4309
diff changeset
   224
    ifdef JDK_UPDATE_VERSION
06b5b429d9f5 6914986: Make sure openjdk doc generation not turned off with JDK_UPDATE_VERSION
andrew
parents: 4309
diff changeset
   225
      GENERATE_DOCS=false
06b5b429d9f5 6914986: Make sure openjdk doc generation not turned off with JDK_UPDATE_VERSION
andrew
parents: 4309
diff changeset
   226
    endif
4309
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   227
  endif
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   228
  # If langtools, corba, jaxp, and jaxws are not being built, 
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   229
  #   a full jdk javadoc is not possible
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   230
  ifneq ($(BUILD_LANGTOOLS), true)
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   231
    GENERATE_DOCS=false
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   232
  endif
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   233
  ifneq ($(BUILD_CORBA), true)
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   234
    GENERATE_DOCS=false
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   235
  endif
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   236
  ifneq ($(BUILD_JAXP), true)
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   237
    GENERATE_DOCS=false
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   238
  endif
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   239
  ifneq ($(BUILD_JAXWS), true)
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   240
    GENERATE_DOCS=false
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   241
  endif
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   242
  ifeq ($(GENERATE_DOCS),false)
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   243
    NO_DOCS=true
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   244
  endif
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   245
else
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   246
  GENERATE_DOCS=false
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   247
endif
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 3789
diff changeset
   248
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   249
# Output directory for hotspot build
fd16c54261b3 Initial load
duke
parents:
diff changeset
   250
HOTSPOT_DIR = $(ABS_OUTPUTDIR)/hotspot
fd16c54261b3 Initial load
duke
parents:
diff changeset
   251
fd16c54261b3 Initial load
duke
parents:
diff changeset
   252
# If we are building components
fd16c54261b3 Initial load
duke
parents:
diff changeset
   253
ifndef ALT_LANGTOOLS_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
   254
  LANGTOOLS_OUTPUTDIR = $(ABS_OUTPUTDIR)/langtools
fd16c54261b3 Initial load
duke
parents:
diff changeset
   255
  ABS_LANGTOOLS_DIST = $(LANGTOOLS_OUTPUTDIR)/dist
fd16c54261b3 Initial load
duke
parents:
diff changeset
   256
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   257
ifndef ALT_CORBA_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
   258
  CORBA_OUTPUTDIR = $(ABS_OUTPUTDIR)/corba
fd16c54261b3 Initial load
duke
parents:
diff changeset
   259
  ABS_CORBA_DIST = $(CORBA_OUTPUTDIR)/dist
fd16c54261b3 Initial load
duke
parents:
diff changeset
   260
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   261
ifndef ALT_JAXP_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
   262
  JAXP_OUTPUTDIR = $(ABS_OUTPUTDIR)/jaxp
fd16c54261b3 Initial load
duke
parents:
diff changeset
   263
  ABS_JAXP_DIST = $(JAXP_OUTPUTDIR)/dist
fd16c54261b3 Initial load
duke
parents:
diff changeset
   264
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   265
ifndef ALT_JAXWS_DIST
fd16c54261b3 Initial load
duke
parents:
diff changeset
   266
  JAXWS_OUTPUTDIR = $(ABS_OUTPUTDIR)/jaxws
fd16c54261b3 Initial load
duke
parents:
diff changeset
   267
  ABS_JAXWS_DIST = $(JAXWS_OUTPUTDIR)/dist
fd16c54261b3 Initial load
duke
parents:
diff changeset
   268
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   269
fd16c54261b3 Initial load
duke
parents:
diff changeset
   270
# Common make arguments (supplied to all component builds)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   271
COMMON_BUILD_ARGUMENTS = \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   272
    JDK_TOPDIR=$(ABS_JDK_TOPDIR) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   273
    JDK_MAKE_SHARED_DIR=$(ABS_JDK_TOPDIR)/make/common/shared \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   274
    EXTERNALSANITYCONTROL=true \
2905
4fa83b3a1b96 6827026: Change javac source and target default to 7
jjg
parents: 2099
diff changeset
   275
    SOURCE_LANGUAGE_VERSION=$(SOURCE_LANGUAGE_VERSION) \
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   276
    TARGET_CLASS_VERSION=$(TARGET_CLASS_VERSION) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   277
    MILESTONE=$(MILESTONE) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   278
    BUILD_NUMBER=$(BUILD_NUMBER) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   279
    JDK_BUILD_NUMBER=$(JDK_BUILD_NUMBER) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   280
    FULL_VERSION=$(FULL_VERSION) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   281
    PREVIOUS_JDK_VERSION=$(PREVIOUS_JDK_VERSION) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   282
    JDK_VERSION=$(JDK_VERSION) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   283
    JDK_MKTG_VERSION=$(JDK_MKTG_VERSION) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   284
    JDK_MAJOR_VERSION=$(JDK_MAJOR_VERSION) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   285
    JDK_MINOR_VERSION=$(JDK_MINOR_VERSION) \
575
8ad8d219b074 6710904: COMMON_BUILD_ARGUMENTS needs PREVIOUS_..._VERSION settings
martin
parents: 19
diff changeset
   286
    JDK_MICRO_VERSION=$(JDK_MICRO_VERSION) \
8ad8d219b074 6710904: COMMON_BUILD_ARGUMENTS needs PREVIOUS_..._VERSION settings
martin
parents: 19
diff changeset
   287
    PREVIOUS_MAJOR_VERSION=$(PREVIOUS_MAJOR_VERSION) \
8ad8d219b074 6710904: COMMON_BUILD_ARGUMENTS needs PREVIOUS_..._VERSION settings
martin
parents: 19
diff changeset
   288
    PREVIOUS_MINOR_VERSION=$(PREVIOUS_MINOR_VERSION) \
8ad8d219b074 6710904: COMMON_BUILD_ARGUMENTS needs PREVIOUS_..._VERSION settings
martin
parents: 19
diff changeset
   289
    PREVIOUS_MICRO_VERSION=$(PREVIOUS_MICRO_VERSION)
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   290
fd16c54261b3 Initial load
duke
parents:
diff changeset
   291
ifdef ARCH_DATA_MODEL
fd16c54261b3 Initial load
duke
parents:
diff changeset
   292
  COMMON_BUILD_ARGUMENTS += ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   293
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   294
fd16c54261b3 Initial load
duke
parents:
diff changeset
   295
ifeq ($(DEBUG_NAME), debug)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   296
  COMMON_BUILD_ARGUMENTS += VARIANT=DBG DEBUG_CLASSFILES=true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   297
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   298
fd16c54261b3 Initial load
duke
parents:
diff changeset
   299
ifeq ($(DEBUG_NAME), fastdebug)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   300
  COMMON_BUILD_ARGUMENTS += VARIANT=DBG FASTDEBUG=true DEBUG_CLASSFILES=true
fd16c54261b3 Initial load
duke
parents:
diff changeset
   301
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   302
fd16c54261b3 Initial load
duke
parents:
diff changeset
   303
ifdef COOKED_JDK_UPDATE_VERSION
fd16c54261b3 Initial load
duke
parents:
diff changeset
   304
  COMMON_BUILD_ARGUMENTS += COOKED_JDK_UPDATE_VERSION=$(COOKED_JDK_UPDATE_VERSION)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   305
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   306
fd16c54261b3 Initial load
duke
parents:
diff changeset
   307
ifdef COOKED_BUILD_NUMBER
fd16c54261b3 Initial load
duke
parents:
diff changeset
   308
  COMMON_BUILD_ARGUMENTS += COOKED_BUILD_NUMBER=$(COOKED_BUILD_NUMBER)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   309
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   310
fd16c54261b3 Initial load
duke
parents:
diff changeset
   311
ifdef ANT_HOME
fd16c54261b3 Initial load
duke
parents:
diff changeset
   312
  COMMON_BUILD_ARGUMENTS += ANT_HOME="$(ANT_HOME)"
fd16c54261b3 Initial load
duke
parents:
diff changeset
   313
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   314