#
# 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 wrapper around Ant build.xml file
#
# On Solaris, the 'make' utility from Sun will not work with these makefiles.
# This little rule is only understood by Sun's make, and is harmless
# when seen by the GNU make tool. If using Sun's make, this causes the
# make command to fail.
#
ANT_OPTIONS += -quiet
ANT_OPTIONS += -verbose
ANT_OPTIONS += -Djavac.debug=false
# and the somewhat misnamed CLASS_VERSION (-target NN)
else
else
# If downloads are allowed
ANT_OPTIONS += -Dallow.downloads=true
# Figure out the platform we are using
# Where is /java in case we need it
else
_SLASHJAVA=J:/
else
# Do we have the drops already downloaded?
# Check ALT_DROPS_DIR for a full path first,
# before trying to use the devtools path,
else
else
# Add in path to drops already downloaded
else
OUTPUTDIR = ..
else
else
# Default target and expected 'do everything' target
# All ant targets of interest
# Create a make target for each
$(ANT_TARGETS):
# Help target
@echo " $1";echo " $2"
help:
@echo "----------------------------------------------------------"
@echo " "
@echo "Help information for this Makefile:"
@echo " "
@echo " Targets (see ant project information for descriptions):"
@echo " "
@echo " Environment or command line variables (all optional):"
$(call helpenvline, ALT_DROPS_DIR,\
$(call helpenvline, ALT_BOOTDIR,\
"JAVA_HOME to use when running ant")
"path to langtools repository dist directory")
$(call helpenvline, ALT_OUTPUTDIR,\
"path to root of output")
$(call helpenvline, QUIET,\
"if set will pass -quiet to ant")
"JAVA_HOME to use when running ant")
$(call helpenvline, VARIANT,\
$(call helpenvline, VERBOSE,\
"if set will pass -verbose to ant")
@echo " "
@echo "----------------------------------------------------------"
@echo " "
@echo "Ant project file help information:"
@echo " "
@echo " "
@echo "----------------------------------------------------------"
# Targets for Sun's internal JPRT build system
$(RM) $(JPRT_ARCHIVE_BUNDLE)
# Declare these phony (not filenames)
.PHONY: $(ANT_TARGETS) \