Makefile revision 4632
1N/A#
1N/A# Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
1N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1N/A#
1N/A# This code is free software; you can redistribute it and/or modify it
1N/A# under the terms of the GNU General Public License version 2 only, as
1N/A# published by the Free Software Foundation. Oracle designates this
1N/A# particular file as subject to the "Classpath" exception as provided
1N/A# by Oracle in the LICENSE file that accompanied this code.
1N/A#
1N/A# This code is distributed in the hope that it will be useful, but WITHOUT
1N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1N/A# version 2 for more details (a copy is included in the LICENSE file that
1N/A# accompanied this code).
1N/A#
1N/A# You should have received a copy of the GNU General Public License version
1N/A# 2 along with this work; if not, write to the Free Software Foundation,
1N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1N/A#
1N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1N/A# or visit www.oracle.com if you need additional information or have any
1N/A# questions.
1N/A#
1N/A
1N/A#
1N/A# Imports files exported by a hotspot build or provided from an external
1N/A# location into the OUTPUTDIR, and also primes the OUTPUTDIR with files
1N/A# that are provided inside this workspace.
1N/A#
1N/A# IMPORT_LIST contains the list of destination files that are copied
1N/A# from external places (outside this workspace).
1N/A#
1N/A# INTERNAL_IMPORT_LIST is the list of destination files from BUILDDIR.
1N/A#
1N/A
1N/ABUILDDIR = ../..
1N/APRODUCT = java
1N/Ainclude $(BUILDDIR)/common/Defs.gmk
1N/A
1N/ASERVER_LOCATION = server
1N/ACLIENT_LOCATION = client
1N/A
1N/ADB_SUFFIX = _db
1N/ADTRACE_SUFFIX = _dtrace
1N/A
1N/Aifeq ($(PLATFORM), windows)
1N/A LIB_LOCATION = $(BINDIR)
1N/Aelse ifeq ($(PLATFORM), macosx)
1N/A LIB_LOCATION = $(LIBDIR)
1N/Aelse
1N/A LIB_LOCATION = $(LIBDIR)/$(LIBARCH)
1N/Aendif
1N/A
1N/AJVM_NAME = $(LIB_PREFIX)jvm.$(LIBRARY_SUFFIX)
1N/AJVMLIB_NAME = $(LIB_PREFIX)jvm.$(LIB_SUFFIX)
1N/AJVMMAP_NAME = $(LIB_PREFIX)jvm.map
1N/AJVMPDB_NAME = $(LIB_PREFIX)jvm.pdb
1N/ALIBJSIG_NAME = $(LIB_PREFIX)jsig.$(LIBRARY_SUFFIX)
1N/AJVMDB_NAME = $(LIB_PREFIX)jvm$(DB_SUFFIX).$(LIBRARY_SUFFIX)
1N/AJVMDTRACE_NAME = $(LIB_PREFIX)jvm$(DTRACE_SUFFIX).$(LIBRARY_SUFFIX)
1N/A
1N/AJVM_DEBUGINFO_NAME = $(LIB_PREFIX)jvm.debuginfo
1N/ALIBJSIG_DEBUGINFO_NAME = $(LIB_PREFIX)jsig.debuginfo
1N/AJVMDB_DEBUGINFO_NAME = $(LIB_PREFIX)jvm$(DB_SUFFIX).debuginfo
1N/AJVMDTRACE_DEBUGINFO_NAME = $(LIB_PREFIX)jvm$(DTRACE_SUFFIX).debuginfo
1N/A
1N/ACLASSSHARINGDATA_DIR = $(BUILDDIR)/tools/sharing
1N/A
1N/A# Needed to do file copy
1N/AABS_BUILDDIR :=$(call FullPath,$(BUILDDIR))
1N/A
1N/ASUBDIRS_desktop = fonts
1N/ASUBDIRS_tools = sajdi
1N/Ainclude $(BUILDDIR)/common/Subdirs.gmk
1N/A
1N/Aall clean clobber::
1N/A $(SUBDIRS-loop)
1N/A
1N/Aall:: build
1N/A
1N/A# List of files created here or coming from BUILDDIR area (this workspace)
1N/AINTERNAL_IMPORT_LIST = $(LIBDIR)/classlist
1N/A
1N/A# List of files coming from outside this workspace
1N/Aifndef BUILD_CLIENT_ONLY
1N/A IMPORT_LIST = $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME) \
1N/A $(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt
1N/A ifneq ($(OBJCOPY),)
1N/A # the import JDK may not contain .debuginfo files
1N/A ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVM_DEBUGINFO_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_DEBUGINFO_NAME)
1N/A endif
1N/A endif
1N/Aelse
1N/A IMPORT_LIST =
1N/Aendif
1N/A
1N/A# Hotspot client is only available on 32-bit non-Zero builds
1N/Aifneq ($(ZERO_BUILD), true)
1N/Aifeq ($(ARCH_DATA_MODEL), 32)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME) \
1N/A $(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt
1N/A ifneq ($(OBJCOPY),)
1N/A # the import JDK may not contain .debuginfo files
1N/A ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVM_DEBUGINFO_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_DEBUGINFO_NAME)
1N/A endif
1N/A endif
1N/Aendif
1N/Aendif
1N/A
1N/Aifeq ($(PLATFORM), windows)
1N/A# Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Windows
1N/A
1N/AIMPORT_LIST += $(MS_RUNTIME_LIBRARIES:%=$(BINDIR)/%)
1N/A
1N/A$(BINDIR)/$(MSVCRNN_DLL): $(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL)
1N/A $(install-import-file)
1N/A $(call chmod-file, a+x)
1N/A
1N/A# Get the hotspot .map and .pdb files for client and server
1N/Aifndef BUILD_CLIENT_ONLY
1N/AIMPORT_LIST += \
1N/A $(LIBDIR)/$(JVMLIB_NAME) \
1N/A $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME) \
1N/A $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME)
1N/Aendif
1N/A
1N/A# Add .map and .pdb files to the import path for client and kernel VMs.
1N/A# These are only available on 32-bit windows builds.
1N/Aifeq ($(ARCH_DATA_MODEL), 32)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME) \
1N/A $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME)
1N/A ifeq ($(DO_KERNEL), true)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME) \
1N/A $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME)
1N/A endif
1N/Aendif
1N/A
1N/A$(LIBDIR)/$(JVMLIB_NAME): $(HOTSPOT_LIB_PATH)/$(JVMLIB_NAME)
1N/A $(install-import-file)
1N/A
1N/A# it is OK for the .map and .pdb files to not exist, so do not force a
1N/A# dependency on them from the bootstrap location, and allow the copy to fail.
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME):
1N/A @$(prep-target)
1N/A -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMMAP_NAME) $@
1N/A
1N/A$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME):
1N/A @$(prep-target)
1N/A -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMMAP_NAME) $@
1N/A
1N/Aifndef BUILD_CLIENT_ONLY
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME):
1N/A @$(prep-target)
1N/A -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMMAP_NAME) $@
1N/Aendif
1N/A
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME):
1N/A @$(prep-target)
1N/A -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMPDB_NAME) $@
1N/A
1N/A$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME):
1N/A @$(prep-target)
1N/A -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMPDB_NAME) $@
1N/A
1N/Aifndef BUILD_CLIENT_ONLY
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME):
1N/A @$(prep-target)
1N/A -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMPDB_NAME) $@
1N/Aendif
1N/A
1N/A# Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Windows
1N/Aelse # PLATFORM
1N/A# NOT Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv NOT Windows
1N/A
1N/AIMPORT_LIST += $(LIB_LOCATION)/$(LIBJSIG_NAME)
1N/Aifneq ($(OBJCOPY),)
1N/A # the import JDK may not contain .debuginfo files
1N/A ifneq ($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
1N/A endif
1N/Aendif
1N/Aifndef BUILD_CLIENT_ONLY
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME)
1N/A ifneq ($(OBJCOPY),)
1N/A # the import JDK may not contain the target of the symlink
1N/A ifneq ($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
1N/A endif
1N/A endif
1N/Aendif
1N/A
1N/Aifeq ($(PLATFORM), solaris)
1N/A ifndef BUILD_CLIENT_ONLY
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME)
1N/A ifneq ($(OBJCOPY),)
1N/A # the import JDK may not contain .debuginfo files
1N/A ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDB_DEBUGINFO_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_DEBUGINFO_NAME)
1N/A endif
1N/A endif
1N/A # The conditional can be removed when import JDKs contain these files.
1N/A ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_NAME)
1N/A ifneq ($(OBJCOPY),)
1N/A # the import JDK may not contain .debuginfo files
1N/A ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_DEBUGINFO_NAME)
1N/A endif
1N/A endif
1N/A else
1N/A $(warning WARNING: $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME) not found!)
1N/A endif
1N/A endif
1N/Aendif
1N/A
1N/Aifneq ($(ZERO_BUILD), true)
1N/Aifeq ($(ARCH_DATA_MODEL), 32)
1N/A
1N/AIMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME)
1N/Aifneq ($(OBJCOPY),)
1N/A # the import JDK may not contain the target of the symlink
1N/A ifneq ($(wildcard $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME)
1N/A endif
1N/Aendif
1N/A
1N/Aifeq ($(PLATFORM), solaris)
1N/A# solaris vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv solaris
1N/A
1N/AIMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME)
1N/Aifneq ($(OBJCOPY),)
1N/A # the import JDK may not contain .debuginfo files
1N/A ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDB_DEBUGINFO_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_DEBUGINFO_NAME)
1N/A endif
1N/Aendif
1N/A
1N/A# The conditional can be removed when import JDKs contain these files.
1N/Aifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_NAME)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_NAME)
1N/A ifneq ($(OBJCOPY),)
1N/A # the import JDK may not contain .debuginfo files
1N/A ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_DEBUGINFO_NAME)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_DEBUGINFO_NAME)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_DEBUGINFO_NAME)
1N/A endif
1N/A endif
1N/Aelse
1N/A $(warning WARNING: $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME) not found!)
1N/Aendif
1N/A
1N/Aifndef BUILD_CLIENT_ONLY
1N/A # The conditional can be removed when import JDKs contain these files.
1N/A ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME)
1N/A ifneq ($(OBJCOPY),)
1N/A # the import JDK may not contain .debuginfo files
1N/A ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_DEBUGINFO_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_DEBUGINFO_NAME)
1N/A endif
1N/A endif
1N/A else
1N/A $(warning WARNING: $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME) not found!)
1N/A endif
1N/A
1N/A # The conditional can be removed when import JDKs contain these files.
1N/A ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_NAME)
1N/A ifneq ($(OBJCOPY),)
1N/A # the import JDK may not contain .debuginfo files
1N/A ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_DEBUGINFO_NAME)),)
1N/A IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_DEBUGINFO_NAME)
1N/A endif
1N/A endif
1N/A else
1N/A $(warning WARNING: $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME) not found!)
1N/A endif
1N/Aendif
1N/A
1N/A# For backwards compatability, make a link of the 32-bit client JVM to $(LIBDIR)
1N/AIMPORT_LIST += $(LIB_LOCATION)/$(JVM_NAME)
1N/A
1N/A$(LIB_LOCATION)/$(JVM_NAME): $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME)
1N/A @$(prep-target)
1N/A
1N/A# solaris ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ solaris
1N/Aendif # 32bit solaris
1N/A
1N/Aendif # 32bit
1N/A
1N/Aendif # ZERO_BUILD
1N/A
1N/A# NOT Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ NOT Windows
1N/A
1N/Aendif # PLATFORM
1N/A
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_NAME)
1N/A $(install-import-file)
1N/A @$(call binary_file_verification,$@)
1N/A
1N/Aifneq ($(OBJCOPY),)
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_DEBUGINFO_NAME)
1N/A $(install-import-file)
1N/Aendif
1N/A
1N/A$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_NAME): $(HOTSPOT_KERNEL_PATH)/$(JVM_NAME)
1N/A $(install-file)
1N/A @$(call binary_file_verification,$@)
1N/A
1N/A$(LIB_LOCATION)/$(LIBJSIG_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_NAME)
1N/A $(install-import-file)
1N/A @$(call binary_file_verification,$@)
1N/A
1N/Aifneq ($(OBJCOPY),)
1N/A$(LIB_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_DEBUGINFO_NAME)
1N/A $(install-import-file)
1N/Aendif
1N/A
1N/Aifndef BUILD_CLIENT_ONLY
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME) \
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME):
1N/A @$(prep-target)
1N/A $(call install-sym-link, ../$(LIBJSIG_NAME))
1N/A
1N/Aifneq ($(OBJCOPY),)
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME) \
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME):
1N/A @$(prep-target)
1N/A $(call install-sym-link, ../$(LIBJSIG_DEBUGINFO_NAME))
1N/Aendif
1N/Aelse
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME):
1N/A @$(prep-target)
1N/A $(call install-sym-link, ../$(LIBJSIG_NAME))
1N/A
1N/Aifneq ($(OBJCOPY),)
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_DEBUGINFO_NAME):
1N/A @$(prep-target)
1N/A $(call install-sym-link, ../$(LIBJSIG_DEBUGINFO_NAME))
1N/Aendif
1N/Aendif
1N/A
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_NAME)
1N/A $(install-import-file)
1N/A @$(call binary_file_verification,$@)
1N/A
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_NAME)
1N/A $(install-import-file)
1N/A @$(call binary_file_verification,$@)
1N/A
1N/Aifneq ($(OBJCOPY),)
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_DEBUGINFO_NAME)
1N/A $(install-import-file)
1N/A
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_DEBUGINFO_NAME)
1N/A $(install-import-file)
1N/Aendif
1N/A
1N/Aifndef BUILD_CLIENT_ONLY
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME)
1N/A $(install-import-file)
1N/A @$(call binary_file_verification,$@)
1N/A
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME)
1N/A $(install-import-file)
1N/A @$(call binary_file_verification,$@)
1N/A
1N/Aifneq ($(OBJCOPY),)
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB_DEBUGINFO_NAME)
1N/A $(install-import-file)
1N/A
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_DEBUGINFO_NAME)
1N/A $(install-import-file)
1N/Aendif
1N/Aendif
1N/A
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME)
1N/A $(install-import-file)
1N/A @$(call binary_file_verification,$@)
1N/A
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDTRACE_NAME)
1N/A $(install-import-file)
1N/A @$(call binary_file_verification,$@)
1N/A
1N/Aifneq ($(OBJCOPY),)
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)
1N/A $(install-import-file)
1N/A
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_DEBUGINFO_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDTRACE_DEBUGINFO_NAME)
1N/A $(install-import-file)
1N/Aendif
1N/A
1N/Aifndef BUILD_CLIENT_ONLY
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_NAME)
1N/A $(install-import-file)
1N/A @$(call binary_file_verification,$@)
1N/A
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME)
1N/A $(install-import-file)
1N/A @$(call binary_file_verification,$@)
1N/A
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME): $(HOTSPOT_SERVER_PATH)/$(JVM_NAME)
1N/A $(install-import-file)
1N/A @$(call binary_file_verification,$@)
1N/A
1N/Aifneq ($(OBJCOPY),)
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_DEBUGINFO_NAME)
1N/A $(install-import-file)
1N/A
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_DEBUGINFO_NAME)
1N/A $(install-import-file)
1N/A
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_DEBUGINFO_NAME): $(HOTSPOT_SERVER_PATH)/$(JVM_DEBUGINFO_NAME)
1N/A $(install-import-file)
1N/Aendif
1N/A
1N/A$(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt : $(HOTSPOT_SERVER_PATH)/Xusage.txt
1N/A $(install-import-file)
1N/Aendif
1N/A
1N/A$(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt : $(HOTSPOT_CLIENT_PATH)/Xusage.txt
1N/A $(install-import-file)
1N/A
1N/A$(LIB_LOCATION)/$(KERNEL_LOCATION)/Xusage.txt : $(HOTSPOT_KERNEL_PATH)/Xusage.txt
1N/A $(install-file)
1N/A
1N/A#
1N/A# Specific to non-OpenJDK building
1N/A#
1N/Aifndef OPENJDK
1N/A
1N/AINTERNAL_IMPORT_LIST += \
1N/A $(LIBDIR)/security/US_export_policy.jar \
1N/A $(LIBDIR)/security/local_policy.jar \
1N/A $(LIBDIR)/jce.jar
1N/A
1N/A$(LIBDIR)/jce.jar: \
1N/A $(BUILDDIR)/closed/tools/crypto/jce/jce.jar
1N/A $(install-file)
1N/A$(LIBDIR)/security/US_export_policy.jar: \
1N/A $(BUILDDIR)/closed/tools/crypto/jce/US_export_policy.jar
1N/A $(install-file)
1N/A$(LIBDIR)/security/local_policy.jar: \
1N/A $(BUILDDIR)/closed/tools/crypto/jce/local_policy.jar
1N/A $(install-file)
1N/A
1N/Aendif # OPENJDK
1N/A
1N/AADDJSUM_JARFILE = $(BUILDTOOLJARDIR)/addjsum.jar
1N/A
1N/A# Construct classlist file
1N/A$(LIBDIR)/classlist: \
1N/A $(CLASSSHARINGDATA_DIR)/classlist.$(PLATFORM) \
1N/A $(ADDJSUM_JARFILE)
1N/A @$(prep-target)
1N/A @$(RM) -f $@.temp
1N/A $(BOOT_JAVA_CMD) -jar $(ADDJSUM_JARFILE) \
1N/A $(CLASSSHARINGDATA_DIR)/classlist.$(PLATFORM) $@.temp
1N/A $(MV) $@.temp $@
1N/A
1N/A# Import internal files (ones that are stashed in this source tree)
1N/Aimport_internal_files : $(INTERNAL_IMPORT_LIST)
1N/A
1N/A# Import files from the JDK that we are not building
1N/Aimport_files: $(IMPORT_LIST)
1N/A
1N/A# Get component information variables and rules
1N/Ainclude $(BUILDDIR)/common/internal/ImportComponents.gmk
1N/A
1N/A# Security files we need to import
1N/ASEC_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/sec-bin.zip
1N/ASEC_FILES_WIN_ZIP=$(ABS_BUILDDIR)/tools/crypto/sec-windows-bin.zip
1N/AJGSS_WIN32_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/jgss-windows-i586-bin.zip
1N/AJGSS_WIN64_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/jgss-windows-x64-bin.zip
1N/A
1N/A# Unzip zip file $2 into directory $1 (if $2 exists)
1N/A# Warning: $2 must be absolute path not relative
1N/Adefine SecUnzipper
1N/Aif [ -f $2 ] ; then \
1N/A $(MKDIR) -p $1; \
1N/A $(ECHO) "( $(CD) $1 && $(UNZIP) -o $2 )"; \
1N/A ( $(CD) $1 && $(UNZIP) -o $2 ); \
1N/Afi
1N/Aendef
1N/A
1N/A# If sec-bin exists, unpack it into the build directory
1N/A# Also, the library recompile build indirectly depends on two SSL classes,
1N/A# so copy those as well FIXUP
1N/A# if sec-windows-bin exists, unpack it into the build directory
1N/A# if JGSS files exists, unpack it into the build directory
1N/A$(TEMPDIR)/security_imported:
1N/A @$(prep-target)
1N/A @$(call SecUnzipper,$(OUTPUTDIR),$(SEC_FILES_ZIP))
1N/Aifeq ($(PLATFORM), windows)
1N/A @$(call SecUnzipper,$(OUTPUTDIR),$(SEC_FILES_WIN_ZIP))
1N/Aendif
1N/Aifeq ($(PLATFORM), windows)
1N/A ifeq ($(ARCH_DATA_MODEL), 32)
1N/A @$(call SecUnzipper,$(OUTPUTDIR),$(JGSS_WIN32_FILES_ZIP))
1N/A else
1N/A @$(call SecUnzipper,$(OUTPUTDIR),$(JGSS_WIN64_FILES_ZIP))
1N/A endif
1N/Aendif
1N/A @$(ECHO) "Imported on `$(DATE)`" > $@
1N/A
1N/A# Import all files from other components
1N/A$(TEMPDIR)/components_imported:
1N/A @$(prep-target)
1N/A $(call import-component-binaries,$(ABS_OUTPUTDIR))
1N/A $(call import-component-sources,$(IMPORTSRCDIR))
1N/A $(call import-component-docs,$(IMPORTDOCDIR))
1N/A $(call import-component-classes,$(CLASSDESTDIR))
1N/A @$(ECHO) "Imported on `$(DATE)`" > $@
1N/A
1N/A# Do pretty much everything
1N/Abuild : import_files \
1N/A import_internal_files \
1N/A $(TEMPDIR)/components_imported \
1N/A $(TEMPDIR)/security_imported
1N/A
1N/A# Clean up what we imported (except for component files)
1N/Aclean clobber::
1N/A $(RM) $(IMPORT_LIST)
1N/A $(RM) $(INTERNAL_IMPORT_LIST)
1N/A $(call import-component-sources-clean,$(IMPORTSRCDIR))
1N/A $(call import-component-docs-clean,$(IMPORTDOCDIR))
1N/A $(call import-component-classes-clean,$(CLASSDESTDIR))
1N/A $(RM) $(TEMPDIR)/components_imported
1N/A $(RM) $(TEMPDIR)/security_imported
1N/A
1N/A.PHONY: import_files import_internal_files
1N/A
1N/A