Makefile revision 151
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# This code is free software; you can redistribute it and/or modify it
b4fbc96e05117839ca409f5f20f97b3ac872d1edTill Mossakowski# under the terms of the GNU General Public License version 2 only, as
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# published by the Free Software Foundation. Oracle designates this
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# particular file as subject to the "Classpath" exception as provided
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# by Oracle in the LICENSE file that accompanied this code.
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# This code is distributed in the hope that it will be useful, but WITHOUT
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# version 2 for more details (a copy is included in the LICENSE file that
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# accompanied this code).
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# You should have received a copy of the GNU General Public License version
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# 2 along with this work; if not, write to the Free Software Foundation,
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# or visit www.oracle.com if you need additional information or have any
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# Makefile wrapper around Ant build.xml file
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# On Solaris, the 'make' utility from Sun will not work with these makefiles.
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# This little rule is only understood by Sun's make, and is harmless
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# when seen by the GNU make tool. If using Sun's make, this causes the
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# make command to fail.
a0c2edf89c8b51141bc8919b920c85548e388d00Till MossakowskiSUN_MAKE_TEST:sh = @echo "ERROR: PLEASE USE GNU VERSION OF MAKE"; exit 33
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# Note: jdk/make/common/Defs.gmk uses LANGUAGE_VERSION (-source NN)
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# and the somewhat misnamed CLASS_VERSION (-target NN)
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski ANT_OPTIONS += -Djavac.target=$(TARGET_CLASS_VERSION)
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski ANT_OPTIONS += -Djavac.target=$(JAVAC_TARGET_ARG)
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski ANT_OPTIONS += -Djavac.source=$(SOURCE_LANGUAGE_VERSION)
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski ANT_OPTIONS += -Djavac.source=$(JAVAC_SOURCE_ARG)
e953bea49e7f0e1a43bccf2a66c5e2a2b50848e0Christian Maeder# If downloads are allowed
e953bea49e7f0e1a43bccf2a66c5e2a2b50848e0Christian Maeder# Figure out the platform we are using
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowskiifneq (,$(findstring CYGWIN,$(_SYSTEM_UNAME)))
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# Where is /java in case we need it
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# Do we have the drops already downloaded?
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# Check ALT_DROPS_DIR for a full path first,
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# before trying to use the devtools path,
e953bea49e7f0e1a43bccf2a66c5e2a2b50848e0Christian Maeder# either via ALT_JDK_DEVTOOLS_DIR or /java/devtools.
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski DROPS_DIR = $(ALT_JDK_DEVTOOLS_DIR)/share/jdk7-drops
e953bea49e7f0e1a43bccf2a66c5e2a2b50848e0Christian Maeder DROPS_DIR = $(_SLASHJAVA)/devtools/share/jdk7-drops
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski# Add in path to drops already downloaded
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski ANT_OPTIONS += -Doutput.dir=$(ALT_OUTPUTDIR)
a0c2edf89c8b51141bc8919b920c85548e388d00Till Mossakowski ANT_OPTIONS += -Dbootstrap.dir=$(ALT_LANGTOOLS_DIST)/bootstrap
$(ANT_TARGETS):
help:
$(call helpenvline, ALT_DROPS_DIR,\
$(call helpenvline, ALT_BOOTDIR,\
$(call helpenvline, ALT_OUTPUTDIR,\
$(call helpenvline, QUIET,\
$(call helpenvline, VARIANT,\
$(call helpenvline, VERBOSE,\