0N/A#
3909N/A# Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
0N/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
2362N/A# published by the Free Software Foundation. Oracle designates this
0N/A# particular file as subject to the "Classpath" exception as provided
2362N/A# by Oracle 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#
2362N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A# or visit www.oracle.com if you need additional information or have any
2362N/A# questions.
0N/A#
0N/A
0N/A#
0N/A# Common variables used by all the Java makefiles. This file should
0N/A# not contain rules.
0N/A#
0N/A
0N/A# WARNING: This file is shared with other components.
0N/A#
0N/A
0N/Aifndef JDK_MAKE_SHARED_DIR
0N/A JDK_MAKE_SHARED_DIR = $(JDK_TOPDIR)/make/common/shared
0N/Aendif
0N/A
0N/Aifndef HOTSPOT_TOPDIR
0N/A HOTSPOT_TOPDIR=$(TOPDIR)/hotspot
0N/Aendif
0N/Aifndef LANGTOOLS_TOPDIR
0N/A LANGTOOLS_TOPDIR=$(TOPDIR)/langtools
0N/Aendif
0N/Aifndef CORBA_TOPDIR
0N/A CORBA_TOPDIR=$(TOPDIR)/corba
0N/Aendif
0N/Aifndef JAXP_TOPDIR
0N/A JAXP_TOPDIR=$(TOPDIR)/jaxp
0N/Aendif
0N/Aifndef JAXWS_TOPDIR
0N/A JAXWS_TOPDIR=$(TOPDIR)/jaxws
0N/Aendif
0N/Aifndef JDK_TOPDIR
0N/A JDK_TOPDIR=$(TOPDIR)/jdk
0N/Aendif
0N/Aifndef INSTALL_TOPDIR
0N/A INSTALL_TOPDIR=$(TOPDIR)/install
0N/Aendif
0N/Aifndef SPONSORS_TOPDIR
0N/A SPONSORS_TOPDIR=$(TOPDIR)/sponsors
0N/Aendif
0N/Aifndef DEPLOY_TOPDIR
0N/A DEPLOY_TOPDIR=$(TOPDIR)/deploy
0N/Aendif
0N/A
0N/A# Get shared platform settings
0N/Ainclude $(JDK_MAKE_SHARED_DIR)/Platform.gmk
0N/A
171N/A# Default directory immediately above the "build" output directory (OUTPUTDIR)
10N/ABUILD_PARENT_DIRECTORY=$(TOPDIR)
0N/A
0N/A# Get platform specific settings
0N/Ainclude $(JDK_MAKE_SHARED_DIR)/Defs.gmk
0N/A
0N/ASRC_BUNDLEDIR = $(OUTPUTDIR)/source-bundles
0N/AABS_SRC_BUNDLEDIR = $(ABS_OUTPUTDIR)/source-bundles
0N/ABIN_BUNDLEDIR = $(OUTPUTDIR)/bundles
4405N/ABIN_DEMOS_BUNDLEDIR = $(OUTPUTDIR)/demos-bundles
0N/AABS_BIN_BUNDLEDIR = $(ABS_OUTPUTDIR)/bundles
0N/A
0N/Adummy := $(shell $(MKDIR) -p $(BIN_BUNDLEDIR))
4405N/Adummy := $(shell $(MKDIR) -p $(BIN_DEMOS_BUNDLEDIR) )
0N/Adummy := $(shell $(MKDIR) -p $(SRC_BUNDLEDIR) )
0N/A
0N/ATEMP_DIR = $(OUTPUTDIR)/tmp
0N/AABS_TEMP_DIR = $(ABS_OUTPUTDIR)/tmp
0N/A
0N/Adummy := $(shell $(MKDIR) -p $(TEMP_DIR))
0N/A
1244N/A# The language version we want for this jdk build
1436N/ASOURCE_LANGUAGE_VERSION=7
0N/A# The class version we want for this jdk build
1436N/ATARGET_CLASS_VERSION=7
0N/A
0N/A# The MESSAGE, WARNING and ERROR files are used to store sanity check and
0N/A# source check messages, warnings and errors.
0N/Aexport ERROR_FILE := $(ABS_OUTPUTDIR)/sanityCheckErrors.txt
0N/Aexport WARNING_FILE := $(ABS_OUTPUTDIR)/sanityCheckWarnings.txt
0N/Aexport MESSAGE_FILE := $(ABS_OUTPUTDIR)/sanityCheckMessages.txt
0N/A
0N/A# source bundle generation definitions
0N/ABUNDLE_DATE := $(shell $(DATE) '+%d_%b_%Y' | $(TR) "[A-Z]" "[a-z]")
0N/Aifdef ALT_BUNDLE_DATE
0N/A BUNDLE_DATE := $(ALT_BUNDLE_DATE)
0N/Aendif
0N/A
0N/A# If the update version contains non-numeric characters, we need
0N/A# to massage it into a numeric format. Unfortunately, the
0N/A# Windows VERSIONINFO resource that we stick in jvm.dll cannot
0N/A# handle non-numeric characters. We have to do this here because
0N/A# Hotspot (nmake) cannot handle calculations. So we use the
0N/A# following formula:
0N/A# COOKED_JDK_UPDATE_VERSION = JDK_UPDATE_VERSION * 10 + EXCEPTION_VERSION
0N/A#
0N/A# Here are some examples:
0N/A# 1.5.0 b01 -> 5,0,0,1
0N/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
0N/A# 1.4.2_02b b01 -> 4,2,22,1
0N/Aifdef JDK_UPDATE_VERSION
0N/A VTMP := $(shell $(ECHO) $(JDK_UPDATE_VERSION) | $(TR) "abcde" "12345")
0N/A CHAR1 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 1, 1);}')
0N/A CHAR2 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 2, 1);}')
0N/A CHAR3 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 3, 1);}')
0N/A ifeq ($(CHAR3),)
0N/A CHAR3 := 0
0N/A endif
0N/A ifeq ($(CHAR1), 0)
0N/A COOKED_JDK_UPDATE_VERSION := $(CHAR2)$(CHAR3)
0N/A else
0N/A COOKED_JDK_UPDATE_VERSION := $(CHAR1)$(CHAR2)$(CHAR3)
0N/A endif
0N/Aendif
0N/A
0N/Aifneq ($(JDK_BUILD_NUMBER),)
0N/A COOKED_BUILD_NUMBER = $(shell $(ECHO) $(JDK_BUILD_NUMBER) \
0N/A | $(SED) -e 's/^b//' | $(SED) -e 's/^0//')
0N/Aelse
0N/A COOKED_BUILD_NUMBER = 0
0N/Aendif
0N/A