Makefile revision 1276
c13b8351b4dfb18806af4eb3c0fea240d83d1f82Andreas Gustafsson# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
c13b8351b4dfb18806af4eb3c0fea240d83d1f82Andreas Gustafsson# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson# This code is free software; you can redistribute it and/or modify it
c13b8351b4dfb18806af4eb3c0fea240d83d1f82Andreas Gustafsson# under the terms of the GNU General Public License version 2 only, as
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson# published by the Free Software Foundation. Oracle designates this
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson# particular file as subject to the "Classpath" exception as provided
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson# by Oracle in the LICENSE file that accompanied this code.
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson# This code is distributed in the hope that it will be useful, but WITHOUT
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a185ac41ac0627ec711d13bf6fdd8a830b753060Andreas Gustafsson# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1928be262ca25485f4d7f0f6473fc5cafa0c3905Andreas Gustafsson# version 2 for more details (a copy is included in the LICENSE file that
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson# accompanied this code).
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson# You should have received a copy of the GNU General Public License version
ca44fe49bec16436cd95ace0af2e244f2096b284Brian Wellington# 2 along with this work; if not, write to the Free Software Foundation,
dd977047669f15fe3ea1a977871d7678cebf5082Andreas Gustafsson# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1928be262ca25485f4d7f0f6473fc5cafa0c3905Andreas Gustafsson# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
a185ac41ac0627ec711d13bf6fdd8a830b753060Andreas Gustafsson# or visit www.oracle.com if you need additional information or have any
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson# Makefile for langtools: wrapper around Ant build.xml file
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson# On Solaris, the standard 'make' utility will not work with these makefiles.
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson# This little rule is only understood by Solaris make, and is harmless
0d50da49baa7d2d39146d46789d88053af5b1b50Michael Sawyer# when seen by the GNU make tool. If using Solaris make, this causes the
0d50da49baa7d2d39146d46789d88053af5b1b50Michael Sawyer# make command to fail.
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas GustafssonSUN_MAKE_TEST:sh = @echo "ERROR: PLEASE USE GNU VERSION OF MAKE"; exit 33
7beeb415ca3f1b230d35a8d385d99d2901cf9ff9Andreas Gustafsson# Minimal platform defs
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson# Need FullPath because we can't rely on gnumake abspath, until we use v3.81
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson# Where is unwanted output to be delivered?
0e9dcd548051a8ec34744bfa18b4e09fea742a39Andreas Gustafsson# On Windows, MKS uses the special file "NUL", cygwin uses the customary unix file.
1928be262ca25485f4d7f0f6473fc5cafa0c3905Andreas Gustafssonifneq (,$(findstring CYGWIN,$(SYSTEM_UNAME)))
USING_CYGWIN = true
# so build.xml can also build against the source files in a jdk repo,
OUTPUTDIR = ..
@$(RM) $@
CD = cd