Defs-control.gmk revision 171
0N/A#
0N/A# Copyright 1995-2007 Sun Microsystems, Inc. All Rights Reserved.
87N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A#
0N/A# This code is free software; you can redistribute it and/or modify it
0N/A# under the terms of the GNU General Public License version 2 only, as
0N/A# published by the Free Software Foundation. Sun designates this
0N/A# particular file as subject to the "Classpath" exception as provided
0N/A# by Sun in the LICENSE file that accompanied this code.
0N/A#
0N/A# This code is distributed in the hope that it will be useful, but WITHOUT
0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A# version 2 for more details (a copy is included in the LICENSE file that
0N/A# accompanied this code).
0N/A#
0N/A# You should have received a copy of the GNU General Public License version
0N/A# 2 along with this work; if not, write to the Free Software Foundation,
0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A#
0N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
0N/A# CA 95054 USA or visit www.sun.com if you need additional information or
0N/A# have any questions.
0N/A#
0N/A
0N/A#
87N/A# Common variables used by all the Java makefiles. This file should
87N/A# not contain rules.
87N/A#
87N/A
87N/A# WARNING: This file is shared with other components.
87N/A#
0N/A
87N/Aifndef JDK_MAKE_SHARED_DIR
87N/A JDK_MAKE_SHARED_DIR = $(JDK_TOPDIR)/make/common/shared
87N/Aendif
87N/A
87N/Aifndef CONTROL_TOPDIR
87N/A CONTROL_TOPDIR=$(TOPDIR)
0N/Aendif
87N/Aifndef HOTSPOT_TOPDIR
87N/A HOTSPOT_TOPDIR=$(TOPDIR)/hotspot
87N/Aendif
87N/Aifndef LANGTOOLS_TOPDIR
87N/A LANGTOOLS_TOPDIR=$(TOPDIR)/langtools
87N/Aendif
87N/Aifndef CORBA_TOPDIR
87N/A CORBA_TOPDIR=$(TOPDIR)/corba
87N/Aendif
0N/Aifndef JAXP_TOPDIR
87N/A JAXP_TOPDIR=$(TOPDIR)/jaxp
94N/Aendif
94N/Aifndef JAXWS_TOPDIR
94N/A JAXWS_TOPDIR=$(TOPDIR)/jaxws
94N/Aendif
94N/Aifndef JDK_TOPDIR
94N/A JDK_TOPDIR=$(TOPDIR)/jdk
94N/Aendif
87N/Aifndef INSTALL_TOPDIR
87N/A INSTALL_TOPDIR=$(TOPDIR)/install
0N/Aendif
87N/Aifndef SPONSORS_TOPDIR
87N/A SPONSORS_TOPDIR=$(TOPDIR)/sponsors
87N/Aendif
87N/Aifndef DEPLOY_TOPDIR
87N/A DEPLOY_TOPDIR=$(TOPDIR)/deploy
87N/Aendif
87N/A
87N/A# Get shared platform settings
87N/Ainclude $(JDK_MAKE_SHARED_DIR)/Platform.gmk
87N/A
87N/A# Default directory immediately above the "build" output directory (OUTPUTDIR)
87N/ABUILD_PARENT_DIRECTORY=$(TOPDIR)
87N/A
0N/A# Get platform specific settings
0N/Ainclude $(JDK_MAKE_SHARED_DIR)/Defs.gmk
87N/A
87N/ASRC_BUNDLEDIR = $(OUTPUTDIR)/source-bundles
87N/AABS_SRC_BUNDLEDIR = $(ABS_OUTPUTDIR)/source-bundles
87N/ABIN_BUNDLEDIR = $(OUTPUTDIR)/bundles
87N/AABS_BIN_BUNDLEDIR = $(ABS_OUTPUTDIR)/bundles
87N/AJRL_BUNDLEDIR = $(OUTPUTDIR)/java.net
87N/AABS_JRL_BUNDLEDIR = $(ABS_OUTPUTDIR)/java.net
0N/A
0N/Adummy := $(shell $(MKDIR) -p $(BIN_BUNDLEDIR))
87N/Adummy := $(shell $(MKDIR) -p $(SRC_BUNDLEDIR) )
87N/Adummy := $(shell $(MKDIR) -p $(JRL_BUNDLEDIR) )
87N/A
87N/ATEMP_DIR = $(OUTPUTDIR)/tmp
87N/AABS_TEMP_DIR = $(ABS_OUTPUTDIR)/tmp
87N/A
87N/Adummy := $(shell $(MKDIR) -p $(TEMP_DIR))
87N/A
87N/A# The class version we want for this jdk build
87N/ATARGET_CLASS_VERSION=5
87N/A
87N/A# The MESSAGE, WARNING and ERROR files are used to store sanity check and
87N/A# source check messages, warnings and errors.
87N/Aexport ERROR_FILE := $(ABS_OUTPUTDIR)/sanityCheckErrors.txt
87N/Aexport WARNING_FILE := $(ABS_OUTPUTDIR)/sanityCheckWarnings.txt
87N/Aexport MESSAGE_FILE := $(ABS_OUTPUTDIR)/sanityCheckMessages.txt
87N/A
87N/A# source bundle generation definitions
87N/ABUNDLE_DATE := $(shell $(DATE) '+%d_%b_%Y' | $(TR) "[A-Z]" "[a-z]")
87N/Aifdef ALT_BUNDLE_DATE
87N/A BUNDLE_DATE := $(ALT_BUNDLE_DATE)
0N/Aendif
0N/A
87N/A# If the update version contains non-numeric characters, we need
87N/A# to massage it into a numeric format. Unfortunately, the
87N/A# Windows VERSIONINFO resource that we stick in jvm.dll cannot
87N/A# handle non-numeric characters. We have to do this here because
87N/A# Hotspot (nmake) cannot handle calculations. So we use the
87N/A# following formula:
87N/A# COOKED_JDK_UPDATE_VERSION = JDK_UPDATE_VERSION * 10 + EXCEPTION_VERSION
99N/A#
99N/A# Here are some examples:
99N/A# 1.5.0 b01 -> 5,0,0,1
99N/A# 1.5.0_10 b01 -> 5,0,100,1
0N/A# 1.4.2 b01 -> 4,2,0,1
0N/A# 1.4.2_02 b01 -> 4,2,20,1
0N/A# 1.4.2_02a b01 -> 4,2,21,1
87N/A# 1.4.2_02b b01 -> 4,2,22,1
50N/Aifdef JDK_UPDATE_VERSION
0N/A VTMP := $(shell $(ECHO) $(JDK_UPDATE_VERSION) | $(TR) "abcde" "12345")
87N/A CHAR1 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 1, 1);}')
87N/A CHAR2 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 2, 1);}')
87N/A CHAR3 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 3, 1);}')
87N/A ifeq ($(CHAR3),)
87N/A CHAR3 := 0
87N/A endif
87N/A ifeq ($(CHAR1), 0)
87N/A COOKED_JDK_UPDATE_VERSION := $(CHAR2)$(CHAR3)
87N/A else
87N/A COOKED_JDK_UPDATE_VERSION := $(CHAR1)$(CHAR2)$(CHAR3)
87N/A endif
87N/Aendif
87N/A
87N/Aifneq ($(JDK_BUILD_NUMBER),)
87N/A COOKED_BUILD_NUMBER = $(shell $(ECHO) $(JDK_BUILD_NUMBER) \
87N/A | $(SED) -e 's/^b//' | $(SED) -e 's/^0//')
0N/Aelse
0N/A COOKED_BUILD_NUMBER = 0
94N/Aendif
94N/A
94N/A