Makefile revision 3763
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor#
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor#
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# This code is free software; you can redistribute it and/or modify it
a99c5d4cc3cab6a62b04d52000dbc22ce1fa2d94coar# under the terms of the GNU General Public License version 2 only, as
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# published by the Free Software Foundation. Oracle designates this
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# particular file as subject to the "Classpath" exception as provided
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# by Oracle in the LICENSE file that accompanied this code.
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor#
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# This code is distributed in the hope that it will be useful, but WITHOUT
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# version 2 for more details (a copy is included in the LICENSE file that
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# accompanied this code).
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor#
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# You should have received a copy of the GNU General Public License version
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# 2 along with this work; if not, write to the Free Software Foundation,
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor#
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# or visit www.oracle.com if you need additional information or have any
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# questions.
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor#
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor#
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Imports files exported by a hotspot build or provided from an external
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# location into the OUTPUTDIR, and also primes the OUTPUTDIR with files
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# that are provided inside this workspace.
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor#
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# IMPORT_LIST contains the list of destination files that are copied
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# from external places (outside this workspace).
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor#
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# INTERNAL_IMPORT_LIST is the list of destination files from BUILDDIR.
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor#
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorBUILDDIR = ../..
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorMODULE = base
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorPRODUCT = java
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorinclude $(BUILDDIR)/common/Defs.gmk
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorSERVER_LOCATION = server
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorCLIENT_LOCATION = client
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorDB_SUFFIX = _db
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorDTRACE_SUFFIX = _dtrace
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifeq ($(PLATFORM), windows)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor LIB_LOCATION = $(BINDIR)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorelse
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor LIB_LOCATION = $(LIBDIR)/$(LIBARCH)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif
a9db829bebc5339233a3242f6742816425751d15lgentis
a9db829bebc5339233a3242f6742816425751d15lgentisJVM_NAME = $(LIB_PREFIX)jvm.$(LIBRARY_SUFFIX)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorJVMLIB_NAME = $(LIB_PREFIX)jvm.$(LIB_SUFFIX)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorJVMMAP_NAME = $(LIB_PREFIX)jvm.map
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorJVMPDB_NAME = $(LIB_PREFIX)jvm.pdb
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorLIBJSIG_NAME = $(LIB_PREFIX)jsig.$(LIBRARY_SUFFIX)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorJVMDB_NAME = $(LIB_PREFIX)jvm$(DB_SUFFIX).$(LIBRARY_SUFFIX)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorJVMDTRACE_NAME = $(LIB_PREFIX)jvm$(DTRACE_SUFFIX).$(LIBRARY_SUFFIX)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorCLASSSHARINGDATA_DIR = $(BUILDDIR)/tools/sharing
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Needed to do file copy
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorABS_BUILDDIR :=$(call FullPath,$(BUILDDIR))
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorSUBDIRS_desktop = fonts
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorSUBDIRS_tools = sajdi
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorinclude $(BUILDDIR)/common/Subdirs.gmk
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorall clean clobber::
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(SUBDIRS-loop)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorall:: build
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# List of files created here or coming from BUILDDIR area (this workspace)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorINTERNAL_IMPORT_LIST = $(LIBDIR)/classlist
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
a9db829bebc5339233a3242f6742816425751d15lgentis# List of files coming from outside this workspace
a9db829bebc5339233a3242f6742816425751d15lgentisifndef BUILD_CLIENT_ONLY
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor IMPORT_LIST = $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME) \
a9db829bebc5339233a3242f6742816425751d15lgentis $(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt
a9db829bebc5339233a3242f6742816425751d15lgentiselse
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor IMPORT_LIST =
a9db829bebc5339233a3242f6742816425751d15lgentisendif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Hotspot client is only available on 32-bit non-Zero builds
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifneq ($(ZERO_BUILD), true)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifeq ($(ARCH_DATA_MODEL), 32)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME) \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif
a9db829bebc5339233a3242f6742816425751d15lgentisendif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifeq ($(PLATFORM), windows)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Windows
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorIMPORT_LIST += $(MS_RUNTIME_LIBRARIES:%=$(BINDIR)/%)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(BINDIR)/$(MSVCRNN_DLL): $(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(call chmod-file, a+x)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Get the hotspot .map and .pdb files for client and server
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifndef BUILD_CLIENT_ONLY
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorIMPORT_LIST += \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(LIBDIR)/$(JVMLIB_NAME) \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME) \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME)
a9db829bebc5339233a3242f6742816425751d15lgentisendif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Add .map and .pdb files to the import path for client and kernel VMs.
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# These are only available on 32-bit windows builds.
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifeq ($(ARCH_DATA_MODEL), 32)
a9db829bebc5339233a3242f6742816425751d15lgentis IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME) \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor ifeq ($(DO_KERNEL), true)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor IMPORT_LIST += $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME) \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor endif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIBDIR)/$(JVMLIB_NAME): $(HOTSPOT_LIB_PATH)/$(JVMLIB_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# it is OK for the .map and .pdb files to not exist, so do not force a
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# dependency on them from the bootstrap location, and allow the copy to fail.
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME):
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(prep-target)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMMAP_NAME) $@
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(install-module-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME):
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(prep-target)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMMAP_NAME) $@
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(install-module-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifndef BUILD_CLIENT_ONLY
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME):
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(prep-target)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMMAP_NAME) $@
a9db829bebc5339233a3242f6742816425751d15lgentis @$(install-module-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME):
a9db829bebc5339233a3242f6742816425751d15lgentis @$(prep-target)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMPDB_NAME) $@
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(install-module-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME):
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(prep-target)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMPDB_NAME) $@
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(install-module-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifndef BUILD_CLIENT_ONLY
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME):
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(prep-target)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMPDB_NAME) $@
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(install-module-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Windows
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorelse # PLATFORM
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# NOT Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv NOT Windows
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorIMPORT_LIST += $(LIB_LOCATION)/$(LIBJSIG_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifndef BUILD_CLIENT_ONLY
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifeq ($(PLATFORM), solaris)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor ifndef BUILD_CLIENT_ONLY
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor # The conditional can be removed when import JDKs contain these files.
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_NAME)),)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor else
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(warning WARNING: $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME) not found!)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor endif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor endif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifneq ($(ZERO_BUILD), true)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifeq ($(ARCH_DATA_MODEL), 32)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorIMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifeq ($(PLATFORM), solaris)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# solaris vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv solaris
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorIMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# The conditional can be removed when import JDKs contain these files.
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME)),)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_NAME)
ec5fd46fd2a4a263bb5cdf419e8d4106007a2ac8gryzor IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorelse
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(warning WARNING: $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME) not found!)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifndef BUILD_CLIENT_ONLY
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor # The conditional can be removed when import JDKs contain these files.
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME)),)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor else
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(warning WARNING: $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME) not found!)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor endif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor # The conditional can be removed when import JDKs contain these files.
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME)),)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor else
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(warning WARNING: $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME) not found!)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor endif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# For backwards compatability, make a link of the 32-bit client JVM to $(LIBDIR)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorIMPORT_LIST += $(LIB_LOCATION)/$(JVM_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(JVM_NAME): $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(prep-target)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# solaris ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ solaris
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif # 32bit solaris
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif # 32bit
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif # ZERO_BUILD
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# NOT Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ NOT Windows
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif # PLATFORM
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call binary_file_verification,$@)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_NAME): $(HOTSPOT_KERNEL_PATH)/$(JVM_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call binary_file_verification,$@)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(LIBJSIG_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call binary_file_verification,$@)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifndef BUILD_CLIENT_ONLY
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME) \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME):
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(prep-target)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(call install-sym-link, ../$(LIBJSIG_NAME))
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorelse
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME):
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(prep-target)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(call install-sym-link, ../$(LIBJSIG_NAME))
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call binary_file_verification,$@)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_NAME)
a9db829bebc5339233a3242f6742816425751d15lgentis $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call binary_file_verification,$@)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifndef BUILD_CLIENT_ONLY
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call binary_file_verification,$@)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call binary_file_verification,$@)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call binary_file_verification,$@)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDTRACE_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call binary_file_verification,$@)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifndef BUILD_CLIENT_ONLY
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call binary_file_verification,$@)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call binary_file_verification,$@)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME): $(HOTSPOT_SERVER_PATH)/$(JVM_NAME)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call binary_file_verification,$@)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt : $(HOTSPOT_SERVER_PATH)/Xusage.txt
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt : $(HOTSPOT_CLIENT_PATH)/Xusage.txt
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-import-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIB_LOCATION)/$(KERNEL_LOCATION)/Xusage.txt : $(HOTSPOT_KERNEL_PATH)/Xusage.txt
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor#
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Specific to non-OpenJDK building
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor#
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifndef OPENJDK
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorINTERNAL_IMPORT_LIST += \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(LIBDIR)/security/US_export_policy.jar \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(LIBDIR)/security/local_policy.jar \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(LIBDIR)/jce.jar
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIBDIR)/jce.jar: \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(BUILDDIR)/closed/tools/crypto/jce/jce.jar
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-non-module-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIBDIR)/security/US_export_policy.jar: \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(BUILDDIR)/closed/tools/crypto/jce/US_export_policy.jar
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIBDIR)/security/local_policy.jar: \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(BUILDDIR)/closed/tools/crypto/jce/local_policy.jar
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(install-file)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif # OPENJDK
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorADDJSUM_JARFILE = $(BUILDTOOLJARDIR)/addjsum.jar
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Construct classlist file
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(LIBDIR)/classlist: \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(CLASSSHARINGDATA_DIR)/classlist.$(PLATFORM) \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(ADDJSUM_JARFILE)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(prep-target)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(RM) -f $@.temp
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(BOOT_JAVA_CMD) -jar $(ADDJSUM_JARFILE) \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(CLASSSHARINGDATA_DIR)/classlist.$(PLATFORM) $@.temp
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(MV) $@.temp $@
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Import internal files (ones that are stashed in this source tree)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorimport_internal_files : $(INTERNAL_IMPORT_LIST)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Import files from the JDK that we are not building
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorimport_files: $(IMPORT_LIST)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Get component information variables and rules
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorinclude $(BUILDDIR)/common/internal/ImportComponents.gmk
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Security files we need to import
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorSEC_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/sec-bin.zip
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorSEC_FILES_WIN_ZIP=$(ABS_BUILDDIR)/tools/crypto/sec-windows-bin.zip
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorJGSS_WIN32_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/jgss-windows-i586-bin.zip
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorJGSS_WIN64_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/jgss-windows-x64-bin.zip
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Unzip zip file $2 into directory $1 (if $2 exists)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Warning: $2 must be absolute path not relative
75ae7f8e2645d58697604161bd58c35e5de0adacgryzordefine SecUnzipper
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorif [ -f $2 ] ; then \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(MKDIR) -p $1; \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(ECHO) "( $(CD) $1 && $(UNZIP) -o $2 )"; \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor ( $(CD) $1 && $(UNZIP) -o $2 ); \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorfi
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendef
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# If sec-bin exists, unpack it into the build directory
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Also, the library recompile build indirectly depends on two SSL classes,
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# so copy those as well FIXUP
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# if sec-windows-bin exists, unpack it into the build directory
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# if JGSS files exists, unpack it into the build directory
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor$(TEMPDIR)/security_imported:
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(prep-target)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call SecUnzipper,$(OUTPUTDIR),$(SEC_FILES_ZIP))
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifeq ($(PLATFORM), windows)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call SecUnzipper,$(OUTPUTDIR),$(SEC_FILES_WIN_ZIP))
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorendif
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorifeq ($(PLATFORM), windows)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor ifeq ($(ARCH_DATA_MODEL), 32)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call SecUnzipper,$(OUTPUTDIR),$(JGSS_WIN32_FILES_ZIP))
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor else
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor @$(call SecUnzipper,$(OUTPUTDIR),$(JGSS_WIN64_FILES_ZIP))
87572e8c0099fbc192aedb944be2f969a4fc181flgentis endif
87572e8c0099fbc192aedb944be2f969a4fc181flgentisendif
87572e8c0099fbc192aedb944be2f969a4fc181flgentis @$(ECHO) "Imported on `$(DATE)`" > $@
87572e8c0099fbc192aedb944be2f969a4fc181flgentis
87572e8c0099fbc192aedb944be2f969a4fc181flgentis# Import all files from other components
87572e8c0099fbc192aedb944be2f969a4fc181flgentis$(TEMPDIR)/components_imported:
87572e8c0099fbc192aedb944be2f969a4fc181flgentis @$(prep-target)
87572e8c0099fbc192aedb944be2f969a4fc181flgentis $(call import-component-binaries,$(ABS_OUTPUTDIR))
71057dc4e1faae19973c68add84e2ff88d5b65ebjailletc $(call import-component-sources,$(IMPORTSRCDIR))
87572e8c0099fbc192aedb944be2f969a4fc181flgentis $(call import-component-docs,$(IMPORTDOCDIR))
87572e8c0099fbc192aedb944be2f969a4fc181flgentis $(call import-component-classes,$(CLASSDESTDIR))
87572e8c0099fbc192aedb944be2f969a4fc181flgentis @$(ECHO) "Imported on `$(DATE)`" > $@
87572e8c0099fbc192aedb944be2f969a4fc181flgentis
87572e8c0099fbc192aedb944be2f969a4fc181flgentis# Do pretty much everything
87572e8c0099fbc192aedb944be2f969a4fc181flgentisbuild : import_files \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor import_internal_files \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(TEMPDIR)/components_imported \
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(TEMPDIR)/security_imported
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor# Clean up what we imported (except for component files)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzorclean clobber::
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(RM) $(IMPORT_LIST)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(RM) $(INTERNAL_IMPORT_LIST)
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(call import-component-sources-clean,$(IMPORTSRCDIR))
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(call import-component-docs-clean,$(IMPORTDOCDIR))
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor $(call import-component-classes-clean,$(CLASSDESTDIR))
a9db829bebc5339233a3242f6742816425751d15lgentis $(RM) $(TEMPDIR)/components_imported
424edfaa5b21b17d739ebefa4c16966ed6310067lgentis $(RM) $(TEMPDIR)/security_imported
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor.PHONY: import_files import_internal_files
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor
75ae7f8e2645d58697604161bd58c35e5de0adacgryzor