#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# Makefile for langtools: wrapper around Ant build.xml file
#
# On Solaris, the standard 'make' utility will not work with these makefiles.
# This little rule is only understood by Solaris make, and is harmless
# when seen by the GNU make tool. If using Solaris make, this causes the
# make command to fail.
#
#
# Minimal platform defs
# Need FullPath because we can't rely on gnumake abspath, until we use v3.81
#
# Where is unwanted output to be delivered?
# On Windows, MKS uses the special file "NUL", cygwin uses the customary unix file.
else
USING_CYGWIN = true
else
#
# Makefile args
#
ANT_OPTIONS += -quiet
else
else
ANT_OPTIONS += -Djavac.debug=true
else
ANT_OPTIONS += -Djavac.debug=false
ANT_OPTIONS += -Djavac.debug=true
ANT_OPTIONS += -Ddebug.classfiles=true
# and the somewhat misnamed CLASS_VERSION (-target NN)
else
else
# To facilitate bootstrapping, much of langtools can be compiled with (just)
# a boot JDK. However, some source files need to be compiled against
# new JDK API. In a bootstrap build, an import JDK may not be available,
# so build.xml can also build against the source files in a jdk repo,
# in which case it will automatically generate stub files for the new JDK API.
else
else
else
OUTPUTDIR = ..
#ABS_OUTPUTDIR = $(abspath $(OUTPUTDIR))
else
# Default target and expected 'do everything' target
# Standard make clobber target
# All ant targets of interest
# Create diagnostics log (careful, ant 1.8.0 -diagnostics always does an exit 1)
@$(RM) $@
# Create a make target for each
#-------------------------------------------------------------------
#
# Targets for Oracle's internal JPRT build system
CD = cd
#-------------------------------------------------------------------
# Declare these phony (not filenames)