Defs-internal.gmk revision 7
608N/A#
608N/A# Copyright 1995-2007 Sun Microsystems, Inc. All Rights Reserved.
608N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
608N/A#
608N/A# This code is free software; you can redistribute it and/or modify it
608N/A# under the terms of the GNU General Public License version 2 only, as
608N/A# published by the Free Software Foundation. Sun designates this
608N/A# particular file as subject to the "Classpath" exception as provided
608N/A# by Sun in the LICENSE file that accompanied this code.
608N/A#
608N/A# This code is distributed in the hope that it will be useful, but WITHOUT
608N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
608N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
608N/A# version 2 for more details (a copy is included in the LICENSE file that
608N/A# accompanied this code).
608N/A#
608N/A# You should have received a copy of the GNU General Public License version
608N/A# 2 along with this work; if not, write to the Free Software Foundation,
608N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
608N/A#
608N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
608N/A# CA 95054 USA or visit www.sun.com if you need additional information or
608N/A# have any questions.
608N/A#
608N/A
608N/A#
608N/A# Common variables used by all the Java makefiles. This file should
608N/A# not contain rules.
608N/A#
608N/A
608N/Aifdef OPENJDK
608N/A ifneq ($(OPENJDK),true)
608N/A x:=$(error "OPENJDK (if defined) can only be set to true")
608N/A endif
608N/Aendif
608N/A
608N/A# Define absolute paths to TOPDIRs
608N/AABS_CONTROL_TOPDIR:=$(call OptFullPath,"$(CONTROL_TOPDIR)")
608N/AABS_LANGTOOLS_TOPDIR:=$(call OptFullPath,"$(LANGTOOLS_TOPDIR)")
608N/AABS_CORBA_TOPDIR:=$(call OptFullPath,"$(CORBA_TOPDIR)")
608N/AABS_JAXP_TOPDIR:=$(call OptFullPath,"$(JAXP_TOPDIR)")
608N/AABS_JAXWS_TOPDIR:=$(call OptFullPath,"$(JAXWS_TOPDIR)")
608N/AABS_JDK_TOPDIR:=$(call OptFullPath,"$(JDK_TOPDIR)")
608N/AABS_HOTSPOT_TOPDIR:=$(call OptFullPath,"$(HOTSPOT_TOPDIR)")
608N/AABS_INSTALL_TOPDIR:=$(call OptFullPath,"$(INSTALL_TOPDIR)")
608N/AABS_SPONSORS_TOPDIR:=$(call OptFullPath,"$(SPONSORS_TOPDIR)")
608N/AABS_DEPLOY_TOPDIR:=$(call OptFullPath,"$(DEPLOY_TOPDIR)")
608N/A
608N/A# Macro to return true or false if a file exists and is readable
608N/Adefine MkExists
608N/A$(shell if [ -r $1 ]; then $(ECHO) true; else $(ECHO) false; fi)
608N/Aendef
608N/A
608N/AHOTSPOT_SRC_AVAILABLE := $(call MkExists,$(HOTSPOT_TOPDIR)/make/Makefile)
608N/Aifndef BUILD_HOTSPOT
608N/A ifdef ALT_HOTSPOT_IMPORT_PATH
608N/A BUILD_HOTSPOT := false
608N/A else
608N/A BUILD_HOTSPOT := $(HOTSPOT_SRC_AVAILABLE)
608N/A endif
608N/Aendif
608N/A
608N/ALANGTOOLS_SRC_AVAILABLE := $(call MkExists,$(LANGTOOLS_TOPDIR)/make/Makefile)
608N/Aifndef BUILD_LANGTOOLS
608N/A ifdef ALT_LANGTOOLS_DIST
608N/A BUILD_LANGTOOLS := false
608N/A else
608N/A BUILD_LANGTOOLS := $(LANGTOOLS_SRC_AVAILABLE)
608N/A endif
608N/Aendif
608N/A
608N/ACORBA_SRC_AVAILABLE := $(call MkExists,$(CORBA_TOPDIR)/make/Makefile)
608N/Aifndef BUILD_CORBA
608N/A ifdef ALT_CORBA_DIST
608N/A BUILD_CORBA := false
608N/A else
608N/A BUILD_CORBA := $(CORBA_SRC_AVAILABLE)
608N/A endif
608N/Aendif
608N/A
608N/AJAXP_SRC_AVAILABLE := $(call MkExists,$(JAXP_TOPDIR)/make/Makefile)
608N/Aifndef BUILD_JAXP
608N/A ifdef ALT_JAXP_DIST
608N/A BUILD_JAXP := false
608N/A else
608N/A BUILD_JAXP := $(JAXP_SRC_AVAILABLE)
608N/A endif
608N/Aendif
608N/A
608N/AJAXWS_SRC_AVAILABLE := $(call MkExists,$(JAXWS_TOPDIR)/make/Makefile)
608N/Aifndef BUILD_JAXWS
608N/A ifdef ALT_JAXWS_DIST
744N/A BUILD_JAXWS := false
608N/A else
608N/A BUILD_JAXWS := $(JAXWS_SRC_AVAILABLE)
608N/A endif
608N/Aendif
608N/A
608N/AJDK_SRC_AVAILABLE := $(call MkExists,$(JDK_TOPDIR)/make/Makefile)
608N/Aifndef BUILD_JDK
608N/A BUILD_JDK := $(JDK_SRC_AVAILABLE)
608N/Aendif
608N/Aifeq ($(JDK_SRC_AVAILABLE),true)
608N/A JDK_CLOSED_SRC_AVAILABLE := $(call MkExists,$(JDK_TOPDIR)/src/closed)
608N/A ifeq ($(JDK_CLOSED_SRC_AVAILABLE),false)
608N/A OPENJDK = true
608N/A endif
608N/Aendif
608N/A
608N/ADEPLOY_SRC_AVAILABLE := $(call MkExists,$(DEPLOY_TOPDIR)/make/Makefile)
608N/Aifndef BUILD_DEPLOY
608N/A BUILD_DEPLOY := $(DEPLOY_SRC_AVAILABLE)
608N/Aendif
608N/A
744N/AINSTALL_SRC_AVAILABLE := $(call MkExists,$(INSTALL_TOPDIR)/make/Makefile)
608N/Aifndef BUILD_INSTALL
608N/A ifdef DEV_ONLY
608N/A BUILD_INSTALL := false
608N/A else
608N/A BUILD_INSTALL := $(INSTALL_SRC_AVAILABLE)
608N/A endif
608N/Aendif
608N/A
608N/ASPONSORS_SRC_AVAILABLE := $(call MkExists,$(SPONSORS_TOPDIR)/make/Makefile)
608N/Aifndef BUILD_SPONSORS
608N/A ifdef DEV_ONLY
608N/A BUILD_SPONSORS := false
608N/A else
608N/A BUILD_SPONSORS := $(SPONSORS_SRC_AVAILABLE)
608N/A endif
608N/Aendif
608N/A
608N/A
608N/A# Do we build the source and openjdk binary plug bundles?
608N/ABUNDLE_RULES = $(JDK_TOPDIR)/make/closed/bundles.gmk
608N/ABUNDLE_RULES_AVAILABLE := $(call MkExists,$(BUNDLE_RULES))
744N/A
608N/A# Current things we do NOT build for OPENJDK
608N/Aifdef OPENJDK
608N/A BUILD_DEPLOY = false
608N/A BUILD_INSTALL = false
608N/A BUILD_SPONSORS = false
608N/A BUNDLE_RULES_AVAILABLE := false
608N/A # These could be over-ridden on the command line or in environment
608N/A ifndef SKIP_FASTDEBUG_BUILD
608N/A SKIP_FASTDEBUG_BUILD = true
608N/A endif
608N/A ifndef SKIP_DEBUG_BUILD
608N/A SKIP_DEBUG_BUILD = true
608N/A endif
608N/A ifndef SKIP_COMPARE_IMAGES
608N/A SKIP_COMPARE_IMAGES = true
608N/A endif
608N/A SKIP_OPENJDK_BUILD = true
608N/Aelse
608N/A ifndef SKIP_OPENJDK_BUILD
608N/A #SKIP_OPENJDK_BUILD = false
608N/A # Until 6675289 is resolved, or this feature is removed.
608N/A SKIP_OPENJDK_BUILD = true
608N/A endif
744N/Aendif
608N/A
608N/A# Solaris 64 bit builds are not complete enough to ever do this
608N/Aifeq ($(PLATFORM)$(ARCH_DATA_MODEL),solaris64)
608N/A SKIP_OPENJDK_BUILD = true
608N/Aendif
608N/A
608N/A# Many reasons why we would want to skip the comparison to previous jdk
608N/Aifndef SKIP_COMPARE_IMAGES
608N/A ifeq ($(BUILD_JDK), false)
608N/A SKIP_COMPARE_IMAGES = true
608N/A endif
608N/A ifeq ($(BUILD_DEPLOY), false)
608N/A SKIP_COMPARE_IMAGES = true
608N/A endif
608N/A ifeq ($(BUILD_INSTALL), false)
608N/A SKIP_COMPARE_IMAGES = true
608N/A endif
608N/A ifdef DEV_ONLY
608N/A SKIP_COMPARE_IMAGES = true
608N/A endif
608N/Aendif
608N/A
744N/A# Select defaults if these are not set to true or false
608N/Aifndef SKIP_DEBUG_BUILD
608N/A SKIP_DEBUG_BUILD=true
608N/Aendif
608N/Aifndef SKIP_FASTDEBUG_BUILD
608N/A SKIP_FASTDEBUG_BUILD=false
608N/Aendif
608N/A
608N/A# Output directory for hotspot build
608N/AHOTSPOT_DIR = $(ABS_OUTPUTDIR)/hotspot
608N/A
608N/A# If we are building components
608N/Aifndef ALT_LANGTOOLS_DIST
608N/A LANGTOOLS_OUTPUTDIR = $(ABS_OUTPUTDIR)/langtools
608N/A ABS_LANGTOOLS_DIST = $(LANGTOOLS_OUTPUTDIR)/dist
608N/Aendif
608N/Aifndef ALT_CORBA_DIST
608N/A CORBA_OUTPUTDIR = $(ABS_OUTPUTDIR)/corba
608N/A ABS_CORBA_DIST = $(CORBA_OUTPUTDIR)/dist
608N/Aendif
608N/Aifndef ALT_JAXP_DIST
608N/A JAXP_OUTPUTDIR = $(ABS_OUTPUTDIR)/jaxp
608N/A ABS_JAXP_DIST = $(JAXP_OUTPUTDIR)/dist
608N/Aendif
608N/Aifndef ALT_JAXWS_DIST
608N/A JAXWS_OUTPUTDIR = $(ABS_OUTPUTDIR)/jaxws
744N/A ABS_JAXWS_DIST = $(JAXWS_OUTPUTDIR)/dist
608N/Aendif
608N/A
608N/A# Common make arguments (supplied to all component builds)
608N/ACOMMON_BUILD_ARGUMENTS = \
608N/A JDK_TOPDIR=$(ABS_JDK_TOPDIR) \
608N/A JDK_MAKE_SHARED_DIR=$(ABS_JDK_TOPDIR)/make/common/shared \
608N/A EXTERNALSANITYCONTROL=true \
608N/A TARGET_CLASS_VERSION=$(TARGET_CLASS_VERSION) \
608N/A MILESTONE=$(MILESTONE) \
608N/A BUILD_NUMBER=$(BUILD_NUMBER) \
608N/A JDK_BUILD_NUMBER=$(JDK_BUILD_NUMBER) \
608N/A FULL_VERSION=$(FULL_VERSION) \
608N/A PREVIOUS_JDK_VERSION=$(PREVIOUS_JDK_VERSION) \
608N/A JDK_VERSION=$(JDK_VERSION) \
608N/A JDK_MKTG_VERSION=$(JDK_MKTG_VERSION) \
608N/A JDK_MAJOR_VERSION=$(JDK_MAJOR_VERSION) \
608N/A JDK_MINOR_VERSION=$(JDK_MINOR_VERSION) \
608N/A JDK_MICRO_VERSION=$(JDK_MICRO_VERSION)
608N/A
608N/Aifdef ARCH_DATA_MODEL
608N/A COMMON_BUILD_ARGUMENTS += ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)
608N/Aendif
608N/A
744N/Aifeq ($(DEBUG_NAME), debug)
608N/A COMMON_BUILD_ARGUMENTS += VARIANT=DBG DEBUG_CLASSFILES=true
608N/Aendif
608N/A
608N/Aifeq ($(DEBUG_NAME), fastdebug)
608N/A COMMON_BUILD_ARGUMENTS += VARIANT=DBG FASTDEBUG=true DEBUG_CLASSFILES=true
608N/Aendif
608N/A
608N/Aifdef COOKED_JDK_UPDATE_VERSION
608N/A COMMON_BUILD_ARGUMENTS += COOKED_JDK_UPDATE_VERSION=$(COOKED_JDK_UPDATE_VERSION)
608N/Aendif
608N/A
608N/Aifdef COOKED_BUILD_NUMBER
608N/A COMMON_BUILD_ARGUMENTS += COOKED_BUILD_NUMBER=$(COOKED_BUILD_NUMBER)
608N/Aendif
608N/A
608N/Aifdef ANT_HOME
608N/A COMMON_BUILD_ARGUMENTS += ANT_HOME="$(ANT_HOME)"
608N/Aendif
608N/A
608N/Aifdef FINDBUGS_HOME
608N/A COMMON_BUILD_ARGUMENTS += FINDBUGS_HOME="$(FINDBUGS_HOME)"
608N/Aendif
608N/A
608N/A
608N/A