Makefile revision 59
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# Copyright 2007-2009 Sun Microsystems, Inc. All Rights Reserved.
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# This code is free software; you can redistribute it and/or modify it
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# under the terms of the GNU General Public License version 2 only, as
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# published by the Free Software Foundation. Sun designates this
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# particular file as subject to the "Classpath" exception as provided
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# by Sun in the LICENSE file that accompanied this code.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# This code is distributed in the hope that it will be useful, but WITHOUT
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# version 2 for more details (a copy is included in the LICENSE file that
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# accompanied this code).
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# You should have received a copy of the GNU General Public License version
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# 2 along with this work; if not, write to the Free Software Foundation,
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews# CA 95054 USA or visit www.sun.com if you need additional information or
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# have any questions.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# Makefile for jaxp: wrapper around Ant build.xml file
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# On Solaris, the 'make' utility from Sun will not work with these makefiles.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# This little rule is only understood by Sun's make, and is harmless
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# when seen by the GNU make tool. If using Sun's make, this causes the
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# make command to fail.
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsSUN_MAKE_TEST:sh = @echo "ERROR: PLEASE USE GNU VERSION OF MAKE"; exit 33
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ANT_OPTIONS += -Dfull.version='$(FULL_VERSION)' # will contain spaces
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews ANT_OPTIONS += -Dbuild.number=$(JDK_BUILD_NUMBER)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# Note: jdk/make/common/Defs.gmk uses LANGUAGE_VERSION (-source NN)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# and the somewhat misnamed CLASS_VERSION (-target NN)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ANT_OPTIONS += -Djavac.target=$(TARGET_CLASS_VERSION)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ANT_OPTIONS += -Djavac.target=$(JAVAC_TARGET_ARG)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ANT_OPTIONS += -Djavac.source=$(SOURCE_LANGUAGE_VERSION)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ANT_OPTIONS += -Djavac.source=$(JAVAC_SOURCE_ARG)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews ANT_OPTIONS += -Dbuild.dir=$(ALT_OUTPUTDIR)/build
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews ANT_OPTIONS += -Ddist.dir=$(ALT_OUTPUTDIR)/dist
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews ANT_OPTIONS += -Dbootstrap.dir=$(ALT_LANGTOOLS_DIST)/bootstrap
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews ANT_OPTIONS += -Dfindbugs.home=$(FINDBUGS_HOME)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews $(error "$(ANT) not found; please update ANT_HOME")
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews ifneq ($(shell which $(ANT) > /dev/null; echo $$?), 0)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews $(error "\"ant\" not found; please set ANT_HOME or put \"ant\" on your PATH")
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Default target and expected 'do everything' target
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Standard make clobber target
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# All ant targets of interest
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Create a make target for each
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Targets for Sun's internal JPRT build system
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewsjprt_build_product jprt_build_debug jprt_build_fastdebug: all
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Declare these phony (not filenames)