Makefile revision 1184
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Copyright 2005-2010 Sun Microsystems, Inc. All Rights Reserved.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# This code is free software; you can redistribute it and/or modify it
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# under the terms of the GNU General Public License version 2 only, as
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# published by the Free Software Foundation.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# This code is distributed in the hope that it will be useful, but WITHOUT
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# version 2 for more details (a copy is included in the LICENSE file that
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# accompanied this code).
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# You should have received a copy of the GNU General Public License version
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# 2 along with this work; if not, write to the Free Software Foundation,
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# CA 95054 USA or visit www.sun.com if you need additional information or
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# have any questions.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Top level gnumake file for hotspot builds
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Default is to build the both product images and construct an export dir.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# The default export directory name is `pwd`/export-$(PLATFORM).
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Use: 'gnumake help' for more information.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# This makefile uses the default settings for where to find compilers and
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# tools, and obeys the ALT_* variable settings used by the other JDK
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# workspaces.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Expected/optional make variables defined on make command line:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# LP64=1 or ARCH_DATA_MODEL=64 for 64bit build
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Expected/optional make variables or environment variables:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# ALT_SLASH_JAVA Location of /java or J:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# ALT_BOOTDIR Previous JDK home directory for javac compiler
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# ALT_OUTPUTDIR Output directory to use for hotspot build
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# ALT_EXPORT_PATH Directory to export hotspot build to
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# ALT_JDK_IMPORT_PATH Current JDK build (only for create_jdk rules)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# ALT_BUILD_WIN_SA Building SA on Windows is disabled by default.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Set ALT_BUILD_WIN_SA=1 to enable building SA on
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Version strings and numbers:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# JDK_VERSION Current JDK version (e.g. 1.6.0)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# PREVIOUS_JDK_VERSION Previous (bootdir) JDK version (e.g. 1.5.0)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# FULL_VERSION Full version string to use (e.g. "1.6.0-ea-b42")
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Version strings and numbers especially needed on Windows:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# COOKED_JDK_UPDATE_VERSION Just the update release number (e.g. 02)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# COOKED_BUILD_NUMBER Just the build number (e.g. 42)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# JDK_MKTG_VERSION Marketing JDK version (e.g. 6.0)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# JDK_MAJOR_VERSION Major number for version (e.g. 1) always 1?
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# JDK_MINOR_VERSION Minor number for version (e.g. 6)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# JDK_MICRO_VERSION Micro number for version (e.g. 0)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Default is build both product fastdebug and create export area
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Allow to build HotSpot in local directory from sources specified by GAMMADIR.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# After make/defs.make GAMMADIR is defined.
docs:
$(C1_VM_TARGETS):
$(C2_VM_TARGETS):
# Get jvm.lib
# Jar file (sa-jdi.jar)
# Include files (jvmti.h, jvmticmlr.h, jni.h, $(JDK_INCLUDE_SUBDIR)/jni_md.h, jmm.h)
$(EXPORT_INCLUDE_DIR)/$(JDK_INCLUDE_SUBDIR)/jni_md.h: $(HS_SRC_DIR)/cpu/$(HS_ARCH)/vm/jni_$(HS_ARCH).h
# Doc files (jvmti.html)
$(EXPORT_SERVER_DIR)/Xusage.txt $(EXPORT_CLIENT_DIR)/Xusage.txt $(EXPORT_KERNEL_DIR)/Xusage.txt: $(XUSAGE)
@$(ECHO) \
@$(ECHO) \
BOOTDIR \
BOOTDIR \
%.printval:
%.checkdir:
%.checkfil:
@$(ECHO) \
@$(ECHO) \
@$(ECHO) \
@$(ECHO) \
@$(ECHO) \
@$(ECHO) \
@$(ECHO) \
@$(ECHO) \
@$(ECHO) \
@$(ECHO) \
$(KERNEL_VM_TARGETS) \