Makefile revision 98
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# This code is free software; you can redistribute it and/or modify it
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# under the terms of the GNU General Public License version 2 only, as
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# published by the Free Software Foundation. Sun designates this
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# particular file as subject to the "Classpath" exception as provided
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# by Sun in the LICENSE file that accompanied this code.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# This code is distributed in the hope that it will be useful, but WITHOUT
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# version 2 for more details (a copy is included in the LICENSE file that
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# accompanied this code).
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# You should have received a copy of the GNU General Public License version
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# 2 along with this work; if not, write to the Free Software Foundation,
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# CA 95054 USA or visit www.sun.com if you need additional information or
0cfc6e4a9f5ce7c0aa92399e218a7e1ab2000715xun ni - Sun Microsystems - Beijing China# have any questions.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Makefile for langtools: wrapper around Ant build.xml file
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# On Solaris, the 'make' utility from Sun will not work with these makefiles.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# This little rule is only understood by Sun's make, and is harmless
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# when seen by the GNU make tool. If using Sun's make, this causes the
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# make command to fail.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfSUN_MAKE_TEST:sh = @echo "ERROR: PLEASE USE GNU VERSION OF MAKE"; exit 33
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Minimal platform defs
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Need FullPath because we can't rely on gnumake abspath, until we use v3.81
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Makefile args
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf ANT_OPTIONS += -Dfull.version='$(FULL_VERSION)' # will contain spaces
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Note: jdk/make/common/Defs.gmk uses LANGUAGE_VERSION (-source NN)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# and the somewhat misnamed CLASS_VERSION (-target NN)
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokht#ABS_OUTPUTDIR = $(abspath $(OUTPUTDIR))
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokhtANT_OPTS = ANT_OPTS=-Djava.io.tmpdir='$(ANT_TMPDIR)'
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits ifneq ($(shell test -x "`which $(ANT)`" && echo OK), OK)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(error 'ant' not found -- please set ANT_HOME or put 'ant' on your PATH)
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokht# Default target and expected 'do everything' target
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Standard make clobber target
$(ANT_TARGETS):
CD = cd