Makefile revision 1838
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# This code is free software; you can redistribute it and/or modify it
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# under the terms of the GNU General Public License version 2 only, as
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# published by the Free Software Foundation.
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# This code is distributed in the hope that it will be useful, but WITHOUT
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# version 2 for more details (a copy is included in the LICENSE file that
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# accompanied this code).
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# You should have received a copy of the GNU General Public License version
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# 2 along with this work; if not, write to the Free Software Foundation,
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# or visit www.oracle.com if you need additional information or have any
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# This makefile creates a build tree and lights off a build.
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# You can go back into the build tree and perform rebuilds or
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# incremental builds as desired. Be sure to reestablish
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# environment variable settings for LD_LIBRARY_PATH and JAVA_HOME.
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# The make process now relies on java and javac. These can be
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# specified either implicitly on the PATH, by setting the
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# (JDK-inherited) ALT_BOOTDIR environment variable to full path to a
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# JDK in which bin/java and bin/javac are present and working (e.g.,
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# /usr/local/java/jdk1.3/solaris), or via the (JDK-inherited)
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# default BOOTDIR path value. Note that one of ALT_BOOTDIR
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# or BOOTDIR has to be set. We do *not* search javac, javah, rmic etc.
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# from the PATH.
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# One can set ALT_BOOTDIR or BOOTDIR to point to a jdk that runs on
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# an architecture that differs from the target architecture, as long
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# as the bootstrap jdk runs under the same flavor of OS as the target
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# (i.e., if the target is linux, point to a jdk that runs on a linux
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# box). In order to use such a bootstrap jdk, set the make variable
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# REMOTE to the desired remote command mechanism, e.g.,
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich# make REMOTE="rsh -l me myotherlinuxbox"
# 1. sa-jdi.jar - This is build before building libjvm[_g].so
# exact.east.sun.com. This logic will cause GAMMADIR to begin with
NEW_GAMMADIR := \
NEW_GAMMADIR := \
# jvmg* - "fat" libjvm_g - debug info linked into libjvm_g.so
# in the build.sh script:
BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OSNAME) ARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH)
BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION) HOTSPOT_BUILD_VERSION=$(HOTSPOT_BUILD_VERSION) JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
all:
# jvmti.make requires XSLT (J2SE 1.4.x or newer):
echo "*** An XSLT processor (J2SE 1.4.x or newer) is required" \
$(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/makefiles/jvmti.make $(MFLAGS) $(BUILDTREE_VARS) JvmtiOutDir=$(SUBDIR_DOCS) jvmtidocs