0N/A#
438N/A# Copyright (c) 2001, 2012, 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
180N/A# published by the Free Software Foundation. Oracle designates this
0N/A# particular file as subject to the "Classpath" exception as provided
180N/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#
180N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
180N/A# or visit www.oracle.com if you need additional information or have any
180N/A# questions.
0N/A#
0N/A
0N/A################################################################
0N/A# HOTSPOT TARGETS
0N/A################################################################
0N/A
0N/A# All the output from a hotspot build should be re-located to the
0N/A# build output area.
0N/A#
0N/AHOTSPOT_OUTPUTDIR = $(HOTSPOT_DIR)/outputdir
0N/A
0N/A# HOTSPOT_EXPORT_PATH points to a dir that contains files
0N/A# that are needed in an SDK build, in the same relative positions as
0N/A# these files are in an SDK image.
0N/A# The SDK java/redist/Makefile will copy files from HOTSPOT_EXPORT_PATH
0N/A# into the SDK being built.
0N/A# This is the export path supplied to the hotspot makefiles.
0N/A#
0N/AHOTSPOT_EXPORT_PATH = $(HOTSPOT_DIR)/import
0N/A
0N/A# Default targets
0N/AHOTSPOT = hotspot-sanity hotspot-build
0N/A
0N/Ahotspot:: $(HOTSPOT)
0N/A
0N/A# Hotspot clobber removes the output directory and exported files
0N/Ahotspot-clobber::
0N/A $(RM) -r $(HOTSPOT_OUTPUTDIR)
0N/A $(RM) -r $(HOTSPOT_EXPORT_PATH)
0N/A
0N/Ahotspot-sanity::
0N/A @$(MKDIR) -p $(HOTSPOT_OUTPUTDIR)
0N/A @$(MKDIR) -p $(HOTSPOT_EXPORT_PATH)
0N/A @$(ECHO) "Hotspot Settings: \n" \
0N/A " HOTSPOT_BUILD_JOBS = $(HOTSPOT_BUILD_JOBS) \n" \
0N/A " HOTSPOT_OUTPUTDIR = $(HOTSPOT_OUTPUTDIR) \n" \
0N/A " HOTSPOT_EXPORT_PATH = $(HOTSPOT_EXPORT_PATH) \n" \
0N/A "\n" >> $(MESSAGE_FILE)
0N/A
0N/A#
0N/A# Basic hotspot build and export of it's files
0N/A#
0N/A
0N/AHOTSPOT_TARGET = all_product
0N/Aifeq ($(DEBUG_NAME), debug)
0N/A HOTSPOT_TARGET = all_debug
0N/Aendif
0N/Aifeq ($(DEBUG_NAME), fastdebug)
0N/A HOTSPOT_TARGET = all_fastdebug
0N/Aendif
438N/ABUILD_FLAVOR=$(HOTSPOT_TARGET:all_%=%)
0N/A
134N/Aifeq ($(ZERO_BUILD), true)
215N/A ifeq ($(SHARK_BUILD), true)
215N/A HOTSPOT_TARGET := $(HOTSPOT_TARGET)shark
215N/A else
215N/A HOTSPOT_TARGET := $(HOTSPOT_TARGET)zero
215N/A endif
134N/Aendif
134N/A
0N/AHOTSPOT_BUILD_ARGUMENTS += $(COMMON_BUILD_ARGUMENTS)
0N/AHOTSPOT_BUILD_ARGUMENTS += ALT_OUTPUTDIR=$(HOTSPOT_OUTPUTDIR)
0N/AHOTSPOT_BUILD_ARGUMENTS += ALT_EXPORT_PATH=$(HOTSPOT_EXPORT_PATH)
438N/AHOTSPOT_BUILD_ARGUMENTS += BUILD_FLAVOR=$(BUILD_FLAVOR)
0N/A
0N/A# Why do these need to be passed in? Because of windows nmake? and MAKEFLAGS=?
0N/A# Or is there something wrong with hotspot/make/Makefile?
0N/AHOTSPOT_BUILD_ARGUMENTS += ALT_SLASH_JAVA=$(SLASH_JAVA)
0N/AHOTSPOT_BUILD_ARGUMENTS += ALT_BOOTDIR=$(BOOTDIR)
0N/A
0N/Aifeq ($(BUILD_LANGTOOLS), true)
0N/A HOTSPOT_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
0N/Aendif
0N/A
438N/A# Move to COMMON_BUILD_ARGUMENTS when all repos support
438N/A# FULL_DEBUG_SYMBOLS and ZIP_DEBUGINFO_FILES:
438N/Aifdef FULL_DEBUG_SYMBOLS
438N/A HOTSPOT_BUILD_ARGUMENTS += FULL_DEBUG_SYMBOLS=$(FULL_DEBUG_SYMBOLS)
438N/Aendif
438N/A
438N/Aifdef ZIP_DEBUGINFO_FILES
438N/A HOTSPOT_BUILD_ARGUMENTS += ZIP_DEBUGINFO_FILES="$(ZIP_DEBUGINFO_FILES)"
438N/Aendif
438N/A
664N/A-include ${JDK_TOPDIR}/make/closed/common/Defs.gmk
664N/A
0N/Ahotspot-build::
0N/A $(MKDIR) -p $(HOTSPOT_OUTPUTDIR)
0N/A $(MKDIR) -p $(HOTSPOT_EXPORT_PATH)
311N/A @$(call MakeStart,hotspot,$(HOTSPOT_TARGET))
0N/A $(CD) $(HOTSPOT_TOPDIR)/make && \
0N/A $(MAKE) $(HOTSPOT_BUILD_ARGUMENTS) $(HOTSPOT_TARGET)
311N/A @$(call MakeFinish,hotspot,$(HOTSPOT_TARGET))
0N/A
0N/A#####################
0N/A# .PHONY
0N/A#####################
0N/A.PHONY: hotspot-build hotspot-clobber hotspot-sanity
0N/A