Makefile revision 3261
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# This code is free software; you can redistribute it and/or modify it
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# under the terms of the GNU General Public License version 2 only, as
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# published by the Free Software Foundation. Oracle designates this
c58f1213e628a545081c70e26c6b67a841cff880vboxsync# particular file as subject to the "Classpath" exception as provided
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# by Oracle in the LICENSE file that accompanied this code.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# This code is distributed in the hope that it will be useful, but WITHOUT
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# version 2 for more details (a copy is included in the LICENSE file that
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# accompanied this code).
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# You should have received a copy of the GNU General Public License version
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# 2 along with this work; if not, write to the Free Software Foundation,
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# or visit www.oracle.com if you need additional information or have any
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# questions.
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync# Imports files exported by a hotspot build or provided from an external
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync# location into the OUTPUTDIR, and also primes the OUTPUTDIR with files
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# that are provided inside this workspace.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# IMPORT_LIST contains the list of destination files that are copied
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# from external places (outside this workspace).
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# INTERNAL_IMPORT_LIST is the list of destination files from BUILDDIR.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncJVMDB_NAME = $(LIB_PREFIX)jvm$(DB_SUFFIX).$(LIBRARY_SUFFIX)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncJVMDTRACE_NAME = $(LIB_PREFIX)jvm$(DTRACE_SUFFIX).$(LIBRARY_SUFFIX)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Needed to do file copy
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# List of files created here or coming from BUILDDIR area (this workspace)
bbf3d430bae83177ab9ce3097f49d89cc873e7c0vboxsync# List of files coming from outside this workspace
bbf3d430bae83177ab9ce3097f49d89cc873e7c0vboxsyncIMPORT_LIST = $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME) \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Hotspot client is only available on 32-bit non-Zero builds
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME) \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Windows
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncIMPORT_LIST += $(MS_RUNTIME_LIBRARIES:%=$(BINDIR)/%)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# NOTE: These might actually come from BUILDDIR, depends on the settings.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync$(BINDIR)/$(MSVCRNN_DLL): $(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Get the hotspot .map and .pdb files for client and server
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME) \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Add .map and .pdb files to the import path for client and kernel VMs.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# These are only available on 32-bit windows builds.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME) \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME) \
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync$(LIBDIR)/$(JVMLIB_NAME): $(HOTSPOT_LIB_PATH)/$(JVMLIB_NAME)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# it is OK for the .map and .pdb files to not exist, so do not force a
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# dependency on them from the bootstrap location, and allow the copy to fail.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Windows
b39c3fa81cadaec00ebb2e7170a8db96998b7032vboxsyncelse # PLATFORM
b39c3fa81cadaec00ebb2e7170a8db96998b7032vboxsync# NOT Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv NOT Windows
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# The conditional can be removed when import JDKs contain these files.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_NAME)),)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_NAME)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync $(warning WARNING: $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME) not found!)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncIMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# solaris vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv solaris
ad27e1d5e48ca41245120c331cc88b50464813cevboxsyncIMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# The conditional can be removed when import JDKs contain these files.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME)),)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_NAME)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_NAME)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync $(warning WARNING: $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME) not found!)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# The conditional can be removed when import JDKs contain these files.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME)),)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME)
b39c3fa81cadaec00ebb2e7170a8db96998b7032vboxsync $(warning WARNING: $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME) not found!)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# The conditional can be removed when import JDKs contain these files.
19a258565a4d24e5a0af62f626943ac9b898d957vboxsyncifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME)),)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_NAME)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync $(warning WARNING: $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME) not found!)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# For backwards compatability, make a link of the 32-bit client JVM to $(LIBDIR)
6831f283dbc5c27bde8a8f8bea179b84a5741697vboxsync$(LIB_LOCATION)/$(JVM_NAME): $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync# solaris ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ solaris
bbf3d430bae83177ab9ce3097f49d89cc873e7c0vboxsync# NOT Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ NOT Windows
bbf3d430bae83177ab9ce3097f49d89cc873e7c0vboxsync$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_NAME)
bbf3d430bae83177ab9ce3097f49d89cc873e7c0vboxsync$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_NAME): $(HOTSPOT_KERNEL_PATH)/$(JVM_NAME)
bbf3d430bae83177ab9ce3097f49d89cc873e7c0vboxsync$(LIB_LOCATION)/$(LIBJSIG_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_NAME)
19a258565a4d24e5a0af62f626943ac9b898d957vboxsync$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME) \
bbf3d430bae83177ab9ce3097f49d89cc873e7c0vboxsync$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_NAME)
$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDTRACE_NAME)
$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME)
INTERNAL_IMPORT_LIST += \