Makefile revision 2362
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor#
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis#
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# This code is free software; you can redistribute it and/or modify it
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# under the terms of the GNU General Public License version 2 only, as
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# published by the Free Software Foundation. Oracle designates this
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# particular file as subject to the "Classpath" exception as provided
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# by Oracle in the LICENSE file that accompanied this code.
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor#
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# This code is distributed in the hope that it will be useful, but WITHOUT
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# version 2 for more details (a copy is included in the LICENSE file that
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# accompanied this code).
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor#
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# You should have received a copy of the GNU General Public License version
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# 2 along with this work; if not, write to the Free Software Foundation,
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor#
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# or visit www.oracle.com if you need additional information or have any
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# questions.
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor#
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor#
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# Imports files exported by a hotspot build or provided from an external
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# location into the OUTPUTDIR, and also primes the OUTPUTDIR with files
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# that are provided inside this workspace.
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor#
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# IMPORT_LIST contains the list of destination files that are copied
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# from external places (outside this workspace).
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor#
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# INTERNAL_IMPORT_LIST is the list of destination files from BUILDDIR.
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor#
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorBUILDDIR = ../..
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorMODULE = base
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorPRODUCT = java
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorinclude $(BUILDDIR)/common/Defs.gmk
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorSERVER_LOCATION = server
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorCLIENT_LOCATION = client
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorDB_SUFFIX = _db
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorifeq ($(PLATFORM), windows)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor LIB_LOCATION = $(BINDIR)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorelse
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor LIB_LOCATION = $(LIBDIR)/$(LIBARCH)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorendif
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorJVM_NAME = $(LIB_PREFIX)jvm.$(LIBRARY_SUFFIX)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorJVMLIB_NAME = $(LIB_PREFIX)jvm.$(LIB_SUFFIX)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorJVMMAP_NAME = $(LIB_PREFIX)jvm.map
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorJVMPDB_NAME = $(LIB_PREFIX)jvm.pdb
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentisLIBJSIG_NAME = $(LIB_PREFIX)jsig.$(LIBRARY_SUFFIX)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorJVMDB_NAME = $(LIB_PREFIX)jvm$(DB_SUFFIX).$(LIBRARY_SUFFIX)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorCLASSSHARINGDATA_DIR = $(BUILDDIR)/tools/sharing
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# Needed to do file copy
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorABS_BUILDDIR :=$(call FullPath,$(BUILDDIR))
84c2cee56982b5405d20d5cb0f86e2f9df95907blgentis
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorSUBDIRS_desktop = fonts
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorSUBDIRS_tools = sajdi
84c2cee56982b5405d20d5cb0f86e2f9df95907blgentisinclude $(BUILDDIR)/common/Subdirs.gmk
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentisall clean clobber::
17d2fcb33284ba6a887ec86305dcaddcd5459dd4lgentis $(SUBDIRS-loop)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorall:: build
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# List of files created here or coming from BUILDDIR area (this workspace)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorINTERNAL_IMPORT_LIST = $(LIBDIR)/classlist
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# List of files coming from outside this workspace
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorIMPORT_LIST = $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME) \
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor $(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# Hotspot client is only available on 32-bit non-Zero builds
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorifneq ($(ZERO_BUILD), true)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorifeq ($(ARCH_DATA_MODEL), 32)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME) \
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor $(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorendif
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorendif
589e30a3e064b0edd3fe06d1c2c51fab05351103nilgun
589e30a3e064b0edd3fe06d1c2c51fab05351103nilgunifeq ($(PLATFORM), windows)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis# Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Windows
589e30a3e064b0edd3fe06d1c2c51fab05351103nilgun
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentisIMPORT_LIST += $(MS_RUNTIME_LIBRARIES:%=$(BINDIR)/%)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis# NOTE: These might actually come from BUILDDIR, depends on the settings.
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis$(BINDIR)/msvcrt.dll: $(MSVCRT_DLL_PATH)/msvcrt.dll
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis $(install-import-file)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis $(call chmod-file, a+x)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis$(BINDIR)/$(MSVCRNN_DLL): $(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis $(install-import-file)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis $(call chmod-file, a+x)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis# Get the hotspot .map and .pdb files for client and server
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentisIMPORT_LIST += \
bc9d4698fce0238d2f6f2682e99423ebb1149976rbowen $(LIBDIR)/$(JVMLIB_NAME) \
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME) \
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# Add .map and .pdb files to the import path for client and kernel VMs.
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# These are only available on 32-bit windows builds.
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorifeq ($(ARCH_DATA_MODEL), 32)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME) \
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor ifeq ($(DO_KERNEL), true)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor IMPORT_LIST += $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME) \
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor endif
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorendif
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor$(LIBDIR)/$(JVMLIB_NAME): $(HOTSPOT_LIB_PATH)/$(JVMLIB_NAME)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor $(install-import-file)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# it is OK for the .map and .pdb files to not exist, so do not force a
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# dependency on them from the bootstrap location, and allow the copy to fail.
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME):
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis @$(prep-target)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMMAP_NAME) $@
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor @$(install-module-file)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME):
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor @$(prep-target)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMMAP_NAME) $@
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor @$(install-module-file)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME):
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor @$(prep-target)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMMAP_NAME) $@
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor @$(install-module-file)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME):
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor @$(prep-target)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMPDB_NAME) $@
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis @$(install-module-file)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME):
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor @$(prep-target)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMPDB_NAME) $@
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor @$(install-module-file)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME):
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor @$(prep-target)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMPDB_NAME) $@
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor @$(install-module-file)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Windows
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorelse # PLATFORM
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# NOT Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv NOT Windows
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentisIMPORT_LIST += \
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis $(LIB_LOCATION)/$(LIBJSIG_NAME) \
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorifeq ($(PLATFORM), solaris)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentisendif
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentisifneq ($(ZERO_BUILD), true)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorifeq ($(ARCH_DATA_MODEL), 32)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorIMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorifeq ($(PLATFORM), solaris)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# solaris vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv solaris
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorifeq ($(ARCH), sparc)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentisendif
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentisIMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorifeq ($(ARCH), sparc)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentisendif
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# For backwards compatability, make a link of the 32-bit client JVM to $(LIBDIR)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorIMPORT_LIST += $(LIB_LOCATION)/$(JVM_NAME)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor$(LIB_LOCATION)/$(JVM_NAME): $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor @$(prep-target)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor# solaris ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ solaris
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorendif # 32bit solaris
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorendif # 32bit
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzorendif # ZERO_BUILD
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
248c22116f7ffa751fe090613f579f7c5bf111f8lgentis# NOT Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ NOT Windows
8c7a70cc3f10ec5402377663f1ab14828871670elgentis
8c7a70cc3f10ec5402377663f1ab14828871670elgentisendif # PLATFORM
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
248c22116f7ffa751fe090613f579f7c5bf111f8lgentis$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_NAME)
8c7a70cc3f10ec5402377663f1ab14828871670elgentis $(install-import-file)
8c7a70cc3f10ec5402377663f1ab14828871670elgentis
8c7a70cc3f10ec5402377663f1ab14828871670elgentis$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_NAME): $(HOTSPOT_KERNEL_PATH)/$(JVM_NAME)
8c7a70cc3f10ec5402377663f1ab14828871670elgentis $(install-file)
8c7a70cc3f10ec5402377663f1ab14828871670elgentis
8c7a70cc3f10ec5402377663f1ab14828871670elgentis$(LIB_LOCATION)/$(LIBJSIG_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_NAME)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis $(install-import-file)
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME) \
9f47982d4f9350397f1f62f04f1ba744ad5b6fa5lgentis$(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME):
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor @$(prep-target)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor $(call install-sym-link, ../$(LIBJSIG_NAME))
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_NAME)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor $(install-import-file)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_NAME)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor $(install-import-file)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME)
9cdb7f54a546d03a0004bf9f5f0e6c33740fb300gryzor $(install-import-file)
$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME)
$(install-import-file)
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME): $(HOTSPOT_SERVER_PATH)/$(JVM_NAME)
$(install-import-file)
$(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt : $(HOTSPOT_SERVER_PATH)/Xusage.txt
$(install-import-file)
$(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt : $(HOTSPOT_CLIENT_PATH)/Xusage.txt
$(install-import-file)
$(LIB_LOCATION)/$(KERNEL_LOCATION)/Xusage.txt : $(HOTSPOT_KERNEL_PATH)/Xusage.txt
$(install-file)
#
# Specific to OpenJDK building
#
ifdef OPENJDK
ifeq ($(IMPORT_BINARY_PLUGS),true)
include $(BUILDDIR)/common/internal/BinaryPlugs.gmk
build: import-binary-plugs
endif
else # !OPENJDK
INTERNAL_IMPORT_LIST += \
$(LIBDIR)/security/US_export_policy.jar \
$(LIBDIR)/security/local_policy.jar \
$(LIBDIR)/jce.jar
$(LIBDIR)/jce.jar: \
$(BUILDDIR)/closed/tools/crypto/jce/jce.jar
$(install-non-module-file)
$(LIBDIR)/security/US_export_policy.jar: \
$(BUILDDIR)/closed/tools/crypto/jce/US_export_policy.jar
$(install-file)
$(LIBDIR)/security/local_policy.jar: \
$(BUILDDIR)/closed/tools/crypto/jce/local_policy.jar
$(install-file)
endif # OPENJDK
ADDJSUM_JARFILE = $(BUILDTOOLJARDIR)/addjsum.jar
# Construct classlist file
$(LIBDIR)/classlist: \
$(CLASSSHARINGDATA_DIR)/classlist.$(PLATFORM) \
$(ADDJSUM_JARFILE)
@$(prep-target)
@$(RM) -f $@.temp
$(BOOT_JAVA_CMD) -jar $(ADDJSUM_JARFILE) \
$(CLASSSHARINGDATA_DIR)/classlist.$(PLATFORM) $@.temp
$(MV) $@.temp $@
# Import internal files (ones that are stashed in this source tree)
import_internal_files : $(INTERNAL_IMPORT_LIST)
# Import files from the JDK that we are not building
import_files: $(IMPORT_LIST)
# Get component information variables and rules
include $(BUILDDIR)/common/internal/ImportComponents.gmk
# Security files we need to import
SEC_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/sec-bin.zip
SEC_FILES_WIN_ZIP=$(ABS_BUILDDIR)/tools/crypto/sec-windows-bin.zip
JGSS_WIN32_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/jgss-windows-i586-bin.zip
JGSS_WIN64_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/jgss-windows-x64-bin.zip
# Unzip zip file $2 into directory $1 (if $2 exists)
# Warning: $2 must be absolute path not relative
define SecUnzipper
if [ -f $2 ] ; then \
$(MKDIR) -p $1; \
$(ECHO) "( $(CD) $1 && $(UNZIP) -o $2 )"; \
( $(CD) $1 && $(UNZIP) -o $2 ); \
fi
endef
# If sec-bin exists, unpack it into the build directory
# Also, the library recompile build indirectly depends on two SSL classes,
# so copy those as well FIXUP
# if sec-windows-bin exists, unpack it into the build directory
# if JGSS files exists, unpack it into the build directory
$(TEMPDIR)/security_imported:
@$(prep-target)
@$(call SecUnzipper,$(OUTPUTDIR),$(SEC_FILES_ZIP))
ifeq ($(PLATFORM), windows)
@$(call SecUnzipper,$(OUTPUTDIR),$(SEC_FILES_WIN_ZIP))
endif
ifeq ($(PLATFORM), windows)
ifeq ($(ARCH_DATA_MODEL), 32)
@$(call SecUnzipper,$(OUTPUTDIR),$(JGSS_WIN32_FILES_ZIP))
else
@$(call SecUnzipper,$(OUTPUTDIR),$(JGSS_WIN64_FILES_ZIP))
endif
endif
@$(ECHO) "Imported on `$(DATE)`" > $@
# Import all files from other components
$(TEMPDIR)/components_imported:
@$(prep-target)
$(call import-component-binaries,$(ABS_OUTPUTDIR))
$(call import-component-sources,$(IMPORTSRCDIR))
$(call import-component-docs,$(IMPORTDOCDIR))
$(call import-component-classes,$(CLASSDESTDIR))
@$(ECHO) "Imported on `$(DATE)`" > $@
# Do pretty much everything
build : import_files \
import_internal_files \
$(TEMPDIR)/components_imported \
$(TEMPDIR)/security_imported
# Clean up what we imported (except for component files)
clean clobber::
$(RM) $(IMPORT_LIST)
$(RM) $(INTERNAL_IMPORT_LIST)
$(call import-component-sources-clean,$(IMPORTSRCDIR))
$(call import-component-docs-clean,$(IMPORTDOCDIR))
$(call import-component-classes-clean,$(CLASSDESTDIR))
$(RM) $(TEMPDIR)/components_imported
$(RM) $(TEMPDIR)/security_imported
.PHONY: import_files import_internal_files