jdk-rules.gmk revision 142
0N/A#
63N/A# Copyright 2001-2009 Sun Microsystems, Inc. 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
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################################################################
0N/A# JDK TARGETS
0N/A################################################################
0N/A
0N/AJDK_JAVA_EXE = $(OUTPUTDIR)/bin/java$(EXE_SUFFIX)
0N/A
0N/A# NO_IMAGES may be set in conjunction with DEV_ONLY
142N/AIMAGES_TARGET = images
142N/Aifdef DEV_ONLY
142N/A ifdef NO_IMAGES
142N/A IMAGES_TARGET =
142N/A endif
0N/Aendif
0N/A
142N/A# GENERATE_DOCS determines if we ask for the docs target
142N/ADOCS_TARGET = docs
142N/Aifeq ($(GENERATE_DOCS),false)
0N/A DOCS_TARGET =
0N/Aendif
142N/A
142N/AJDK_BUILD_TARGETS = sanity all $(DOCS_TARGET) $(IMAGES_TARGET)
0N/A
0N/AJDK_CLOBBER_TARGETS = clobber
0N/A
0N/AJDK_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
0N/A ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)
0N/A
0N/Aifeq ($(BUILD_LANGTOOLS), true)
0N/A JDK_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
0N/Aendif
0N/Aifeq ($(BUILD_CORBA), true)
0N/A JDK_BUILD_ARGUMENTS += ALT_CORBA_DIST=$(ABS_CORBA_DIST)
0N/Aendif
0N/Aifeq ($(BUILD_JAXP), true)
0N/A JDK_BUILD_ARGUMENTS += ALT_JAXP_DIST=$(ABS_JAXP_DIST)
0N/Aendif
0N/Aifeq ($(BUILD_JAXWS), true)
0N/A JDK_BUILD_ARGUMENTS += ALT_JAXWS_DIST=$(ABS_JAXWS_DIST)
0N/Aendif
0N/A
0N/Aifeq ($(BUILD_HOTSPOT), true)
0N/A JDK_BUILD_ARGUMENTS += ALT_HOTSPOT_IMPORT_PATH=$(HOTSPOT_DIR)/import
0N/Aendif
0N/A
0N/AJDK_BUILD_ARGUMENTS += \
0N/A BUILD_HOTSPOT=$(BUILD_HOTSPOT)
0N/A
0N/A
0N/A$(JDK_JAVA_EXE):: jdk-build
0N/A
0N/Ajdk: jdk-build
0N/Ajdk-build:
126N/A @$(call MakeStart, jdk, $(JDK_BUILD_TARGETS))
0N/A ( $(CD) $(JDK_TOPDIR)/make && \
0N/A $(MAKE) $(JDK_BUILD_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
126N/A @$(call MakeFinish, jdk, $(JDK_BUILD_TARGETS))
0N/A
0N/Ajdk-clobber::
126N/A @$(call MakeStart, jdk, $(JDK_CLOBBER_TARGETS))
0N/A ( $(CD) $(JDK_TOPDIR)/make && \
0N/A $(MAKE) $(JDK_CLOBBER_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
126N/A @$(call MakeFinish, jdk, $(JDK_CLOBBER_TARGETS))
0N/A
0N/Ajdk-sanity::
60N/A ( $(CD) $(JDK_TOPDIR)/make && \
0N/A $(MAKE) sanity HOTSPOT_IMPORT_CHECK=false $(JDK_BUILD_ARGUMENTS) ; )
0N/A
0N/Acompare-images: compare-image
0N/Acompare-image:
126N/A @$(call MakeStart, jdk, compare-image)
0N/A ( $(CD) $(JDK_TOPDIR)/make && \
0N/A $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image )
126N/A @$(call MakeFinish, jdk, compare-image)
0N/A
0N/Acompare-images-clobber: compare-image-clobber
0N/Acompare-image-clobber:
126N/A @$(call MakeStart, jdk, compare-image-clobber)
0N/A ( $(CD) $(JDK_TOPDIR)/make && \
0N/A $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image-clobber )
126N/A @$(call MakeFinish, jdk, compare-image-clobber)
0N/A
0N/A.PHONY: jdk jdk-build jdk-clobber jdk-sanity
0N/A