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