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