Makefile revision 1769
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync#
2f0d866e126dd288169fed591c259c1c6b4016e5vboxsync# Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved.
2f0d866e126dd288169fed591c259c1c6b4016e5vboxsync# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync#
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# This code is free software; you can redistribute it and/or modify it
2f0d866e126dd288169fed591c259c1c6b4016e5vboxsync# under the terms of the GNU General Public License version 2 only, as
2f0d866e126dd288169fed591c259c1c6b4016e5vboxsync# published by the Free Software Foundation. Sun designates this
86a00a5efe7fdc9725f2076050b996e205259cd6vboxsync# particular file as subject to the "Classpath" exception as provided
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# by Sun in the LICENSE file that accompanied this code.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# This code is distributed in the hope that it will be useful, but WITHOUT
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# version 2 for more details (a copy is included in the LICENSE file that
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# accompanied this code).
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# You should have received a copy of the GNU General Public License version
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# 2 along with this work; if not, write to the Free Software Foundation,
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# CA 95054 USA or visit www.sun.com if you need additional information or
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# have any questions.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync#
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync
037c8b175a3e0c66279c81aaeaabf976ce9b66e3vboxsync#
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# Imports files exported by a hotspot build or provided from an external
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# location into the OUTPUTDIR, and also primes the OUTPUTDIR with files
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# that are provided inside this workspace.
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync#
c1b76913eb226361b0f57efd4dc45072db194218vboxsync# IMPORT_LIST contains the list of destination files that are copied
2f0d866e126dd288169fed591c259c1c6b4016e5vboxsync# from external places (outside this workspace).
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync#
f2653ef8b5f8e8b668eb4dbf2543262fe260dbf2vboxsync# INTERNAL_IMPORT_LIST is the list of destination files from BUILDDIR.
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync#
727255ec6d902170e2869565ec03efb2691dac7evboxsync
9c88dfe29cb5a5dcf70e84c706b9fc57bb309819vboxsyncBUILDDIR = ../..
0013b984212f7f0b741f4121be352249fc7e487bvboxsyncPRODUCT = java
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncinclude $(BUILDDIR)/common/Defs.gmk
3d1934b0d850803f7057ea339a8f08c5d77ebbdfvboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncSERVER_LOCATION = server
18f9f43e809ff424b14f19e097382f44fda2e11evboxsyncCLIENT_LOCATION = client
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
01f0d2858d4377ecf19f5aac2531efe99fef9ffcvboxsyncDB_SUFFIX = _db
a2b66e2b8b92cf2d0706078798036035cb9fa94dvboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncifeq ($(PLATFORM), windows)
715e49c31b15c23c17a9ce3be42a75e7c48d4b78vboxsync LIB_LOCATION = $(BINDIR)
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncelse
037c8b175a3e0c66279c81aaeaabf976ce9b66e3vboxsync LIB_LOCATION = $(LIBDIR)/$(LIBARCH)
38434b7b59fbfa76d67e81896d1f5b650ec8e692vboxsyncendif
4b42d28ec5f7347d82a7f7348629363b64036d9evboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncJVM_NAME = $(LIB_PREFIX)jvm.$(LIBRARY_SUFFIX)
c2c75822fb0d3043663b66609a259902b088a2a7vboxsyncJVMLIB_NAME = $(LIB_PREFIX)jvm.$(LIB_SUFFIX)
cddc13613d9ef72fa2fe991ef61bf4ab5522c0f4vboxsyncJVMMAP_NAME = $(LIB_PREFIX)jvm.map
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncJVMPDB_NAME = $(LIB_PREFIX)jvm.pdb
46b1264ee3b814435782dab838c9a212023e24b9vboxsyncLIBJSIG_NAME = $(LIB_PREFIX)jsig.$(LIBRARY_SUFFIX)
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncJVMDB_NAME = $(LIB_PREFIX)jvm$(DB_SUFFIX).$(LIBRARY_SUFFIX)
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCLASSSHARINGDATA_DIR = $(BUILDDIR)/tools/sharing
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# Needed to do file copy
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncABS_BUILDDIR :=$(call FullPath,$(BUILDDIR))
037c8b175a3e0c66279c81aaeaabf976ce9b66e3vboxsync
037c8b175a3e0c66279c81aaeaabf976ce9b66e3vboxsyncall: build
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
e2a99f74c6a084bdf1f27753da9e7eba175f01aavboxsync# List of files created here or coming from BUILDDIR area (this workspace)
bd9e09b620b86e5e947ad66a3b6a4d9bf4dfe581vboxsyncINTERNAL_IMPORT_LIST = $(LIBDIR)/classlist
3a5d16e1911830b585d10278ea2cdbb408e261e6vboxsync
2d97f8baccdd684bc0a8a15eb86bbe9ff2b85374vboxsync# List of files coming from outside this workspace
f2653ef8b5f8e8b668eb4dbf2543262fe260dbf2vboxsyncIMPORT_LIST = $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME) \
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync $(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt
3a5d16e1911830b585d10278ea2cdbb408e261e6vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# INCLUDE_SA is false on platforms where SA is not supported.
7bc05c1678187b43794b2e36bacea8d8036038e1vboxsync# On platforms where it is supported, we want to allow it to
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# not be present, at least temporarily. So,
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# if the SA files (well, just sa-jdi.jar) do not exist
715e49c31b15c23c17a9ce3be42a75e7c48d4b78vboxsync# in the HOTSPOT_IMPORT_PATH, then we won't build SA.
870c45cce975c26ed5f57b2f9b22acd88614681bvboxsyncSA_EXISTS := $(shell if [ -r $(HOTSPOT_IMPORT_PATH)/lib/sa-jdi.jar ] ; then \
666f45fc17e2735f9abe111f0df0159e3eda2043vboxsync $(ECHO) true; \
666f45fc17e2735f9abe111f0df0159e3eda2043vboxsync else \
f2653ef8b5f8e8b668eb4dbf2543262fe260dbf2vboxsync $(ECHO) false; \
34281ca49352399191a51f929cc00801b370ee74vboxsync fi)
9888fffcfbe2d41dce14a1249b12cb88cc9b149fvboxsync
34281ca49352399191a51f929cc00801b370ee74vboxsyncifeq ($(SA_EXISTS), false)
870c45cce975c26ed5f57b2f9b22acd88614681bvboxsync INCLUDE_SA := false
c6b3d55ef646614cc689faa1fa4ddc961712b6ffvboxsyncendif
8e496a172b2000333186e5c1be75a50f398ed830vboxsync
8e496a172b2000333186e5c1be75a50f398ed830vboxsyncifeq ($(INCLUDE_SA), true)
8e496a172b2000333186e5c1be75a50f398ed830vboxsync IMPORT_LIST += $(LIBDIR)/sa-jdi.jar \
86a00a5efe7fdc9725f2076050b996e205259cd6vboxsync $(LIB_LOCATION)/$(SALIB_NAME)
e43535ace2499e7f8ef8822186047979bd58d464vboxsync ifeq ($(PLATFORM), windows)
e43535ace2499e7f8ef8822186047979bd58d464vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(SAMAP_NAME) \
9c88dfe29cb5a5dcf70e84c706b9fc57bb309819vboxsync $(LIB_LOCATION)/$(SAPDB_NAME)
0280e4ae13799a3136778dc90efa5841a3f40cf2vboxsync endif
0280e4ae13799a3136778dc90efa5841a3f40cf2vboxsyncendif # INCLUDE_SA
71b548af8b5b8adb865702432045250bc56ad7e5vboxsync
99be02f9e15a3ca61b6a7c207cc7eb68dbd04817vboxsync# Hotspot client is only available on 32-bit builds
0013b984212f7f0b741f4121be352249fc7e487bvboxsyncifeq ($(ARCH_DATA_MODEL), 32)
c34f9b1d1526bb5e7fa22d868de402fc50c318fevboxsync IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME) \
c34f9b1d1526bb5e7fa22d868de402fc50c318fevboxsync $(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt
c34f9b1d1526bb5e7fa22d868de402fc50c318fevboxsyncendif
0013b984212f7f0b741f4121be352249fc7e487bvboxsync
0013b984212f7f0b741f4121be352249fc7e487bvboxsyncifeq ($(PLATFORM), windows)
8be52b949bfcf8707a76bc4dfc34500f1deb976bvboxsync# Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Windows
f1c2640cecd9a1bf30c9ee1194b04cad4eb00faavboxsync
8be52b949bfcf8707a76bc4dfc34500f1deb976bvboxsyncIMPORT_LIST += $(MS_RUNTIME_LIBRARIES:%=$(BINDIR)/%)
8be52b949bfcf8707a76bc4dfc34500f1deb976bvboxsync
f1c2640cecd9a1bf30c9ee1194b04cad4eb00faavboxsync# NOTE: These might actually come from BUILDDIR, depends on the settings.
f1c2640cecd9a1bf30c9ee1194b04cad4eb00faavboxsync$(BINDIR)/msvcrt.dll: $(MSVCRT_DLL_PATH)/msvcrt.dll
a7aa94e0115a73841f34ebbfa00f63fa1904e51fvboxsync $(install-import-file)
b6cc138b99f86c2d29ecfe32cecf9f68ba5e73afvboxsync $(CHMOD) a+x $@
0e5731ab59b4ecead38375f26eeea698f00b19fdvboxsync$(BINDIR)/$(MSVCRNN_DLL): $(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL)
0e5731ab59b4ecead38375f26eeea698f00b19fdvboxsync $(install-import-file)
0e5731ab59b4ecead38375f26eeea698f00b19fdvboxsync $(CHMOD) a+x $@
a7aa94e0115a73841f34ebbfa00f63fa1904e51fvboxsync
a7aa94e0115a73841f34ebbfa00f63fa1904e51fvboxsync# Get the hotspot .map and .pdb files for client and server
a7aa94e0115a73841f34ebbfa00f63fa1904e51fvboxsyncIMPORT_LIST += \
18f9f43e809ff424b14f19e097382f44fda2e11evboxsync $(LIBDIR)/$(JVMLIB_NAME) \
18f9f43e809ff424b14f19e097382f44fda2e11evboxsync $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME) \
18f9f43e809ff424b14f19e097382f44fda2e11evboxsync $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME)
7995839c0b791ae2334df998d34dbccac12b3b41vboxsync
46b1264ee3b814435782dab838c9a212023e24b9vboxsync# Add .map and .pdb files to the import path for client and kernel VMs.
c6b3d55ef646614cc689faa1fa4ddc961712b6ffvboxsync# These are only available on 32-bit windows builds.
c6b3d55ef646614cc689faa1fa4ddc961712b6ffvboxsyncifeq ($(ARCH_DATA_MODEL), 32)
46b1264ee3b814435782dab838c9a212023e24b9vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME) \
46b1264ee3b814435782dab838c9a212023e24b9vboxsync $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME)
46b1264ee3b814435782dab838c9a212023e24b9vboxsync ifeq ($(DO_KERNEL), true)
0013b984212f7f0b741f4121be352249fc7e487bvboxsync IMPORT_LIST += $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME) \
0013b984212f7f0b741f4121be352249fc7e487bvboxsync $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME)
a3cd662e10e3727879002eb7afbf21da1e7caf11vboxsync endif
0013b984212f7f0b741f4121be352249fc7e487bvboxsyncendif
0013b984212f7f0b741f4121be352249fc7e487bvboxsync
7995839c0b791ae2334df998d34dbccac12b3b41vboxsync$(LIBDIR)/$(JVMLIB_NAME): $(HOTSPOT_LIB_PATH)/$(JVMLIB_NAME)
7995839c0b791ae2334df998d34dbccac12b3b41vboxsync $(install-import-file)
7995839c0b791ae2334df998d34dbccac12b3b41vboxsync
7995839c0b791ae2334df998d34dbccac12b3b41vboxsync# it is OK for the .map and .pdb files to not exist, so do not force a
7995839c0b791ae2334df998d34dbccac12b3b41vboxsync# dependency on them from the bootstrap location, and allow the copy to fail.
7995839c0b791ae2334df998d34dbccac12b3b41vboxsync$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME):
7995839c0b791ae2334df998d34dbccac12b3b41vboxsync @$(prep-target)
03008243d31ee0f98824a3da97198aecfd9cdd89vboxsync -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMMAP_NAME) $@
0e5731ab59b4ecead38375f26eeea698f00b19fdvboxsync
88d267f946e083a8bf04f5f63a181d8f6fdc7360vboxsync$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME):
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsync @$(prep-target)
a2b66e2b8b92cf2d0706078798036035cb9fa94dvboxsync -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMMAP_NAME) $@
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
037c8b175a3e0c66279c81aaeaabf976ce9b66e3vboxsync$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME):
0013b984212f7f0b741f4121be352249fc7e487bvboxsync @$(prep-target)
7995839c0b791ae2334df998d34dbccac12b3b41vboxsync -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMMAP_NAME) $@
7995839c0b791ae2334df998d34dbccac12b3b41vboxsync
037c8b175a3e0c66279c81aaeaabf976ce9b66e3vboxsync$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME):
03008243d31ee0f98824a3da97198aecfd9cdd89vboxsync @$(prep-target)
8e034cd2a6b0c86697554278e970163287003bb9vboxsync -$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMPDB_NAME) $@
0013b984212f7f0b741f4121be352249fc7e487bvboxsync
0013b984212f7f0b741f4121be352249fc7e487bvboxsync$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME):
0013b984212f7f0b741f4121be352249fc7e487bvboxsync @$(prep-target)
0cde281779e97ead3181bbd3b628451fa2b1efe1vboxsync -$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMPDB_NAME) $@
25eb72caf368f95cc9e07152cf0f3eb0a9e58cdcvboxsync
683eff3070b1b86fe71b71af7fda82766ea19d17vboxsync$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME):
683eff3070b1b86fe71b71af7fda82766ea19d17vboxsync @$(prep-target)
d1c36fd86d36726777e3d6f9d040573e0aaf30devboxsync -$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMPDB_NAME) $@
d1c36fd86d36726777e3d6f9d040573e0aaf30devboxsync
0dfc79e0666da4c8853deda18a14ebf5819d0d78vboxsync# Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Windows
ab455939477d81b7bb500586f88029d3a3c0b34cvboxsyncelse # PLATFORM
cd7a8c034836a94a0c4f0adf9764f9ed661cdd01vboxsync# NOT Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv NOT Windows
99be02f9e15a3ca61b6a7c207cc7eb68dbd04817vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncIMPORT_LIST += \
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync $(LIB_LOCATION)/$(LIBJSIG_NAME) \
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME)
71b548af8b5b8adb865702432045250bc56ad7e5vboxsync
71b548af8b5b8adb865702432045250bc56ad7e5vboxsyncifeq ($(PLATFORM), solaris)
cddc13613d9ef72fa2fe991ef61bf4ab5522c0f4vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME)
cddc13613d9ef72fa2fe991ef61bf4ab5522c0f4vboxsyncendif
0013b984212f7f0b741f4121be352249fc7e487bvboxsync
d606b96aa8a4be8f7d2da410f982889804c27b92vboxsyncifeq ($(ARCH_DATA_MODEL), 32)
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncIMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME)
037c8b175a3e0c66279c81aaeaabf976ce9b66e3vboxsync
f3051d57986d06c2e90d5a41affe095109dbb4a3vboxsyncifeq ($(PLATFORM), solaris)
727255ec6d902170e2869565ec03efb2691dac7evboxsync# solaris vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv solaris
71b548af8b5b8adb865702432045250bc56ad7e5vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncifeq ($(ARCH), sparc)
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME)
d25cdc250684c6ef5a0884806d778f96126501b3vboxsyncendif
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsync
01f0d2858d4377ecf19f5aac2531efe99fef9ffcvboxsyncIMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME)
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncifeq ($(ARCH), sparc)
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME)
f2653ef8b5f8e8b668eb4dbf2543262fe260dbf2vboxsyncendif
098531a59c61291394a21306c6fb0f9cc14b8eb4vboxsync
1d42c7799e7c35c5b36a2494cde9a47e5651ceadvboxsync# For backwards compatability, make a link of the 32-bit client JVM to $(LIBDIR)
71b548af8b5b8adb865702432045250bc56ad7e5vboxsyncIMPORT_LIST += $(LIB_LOCATION)/$(JVM_NAME)
71b548af8b5b8adb865702432045250bc56ad7e5vboxsync
d1c36fd86d36726777e3d6f9d040573e0aaf30devboxsync# create a link from lib/libjvm.so to client/libjvm.so
78df3a3ca20e014e0d9eb72cd7bb72711255d5f6vboxsync$(LIB_LOCATION)/$(JVM_NAME): $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME)
f2653ef8b5f8e8b668eb4dbf2543262fe260dbf2vboxsync @$(prep-target)
0013b984212f7f0b741f4121be352249fc7e487bvboxsync $(LN) -s $(CLIENT_LOCATION)/$(JVM_NAME) $@
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
e43535ace2499e7f8ef8822186047979bd58d464vboxsync# solaris ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ solaris
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncendif # 32bit solaris
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncendif # 32bit
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync
# NOT Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ NOT Windows
endif # PLATFORM
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_NAME)
$(install-import-file)
$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_NAME): $(HOTSPOT_KERNEL_PATH)/$(JVM_NAME)
$(install-file)
$(LIB_LOCATION)/$(LIBJSIG_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_NAME)
$(install-import-file)
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME) \
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME):
@$(prep-target)
$(LN) -s ../$(LIBJSIG_NAME) $@
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_NAME)
$(install-import-file)
$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_NAME)
$(install-import-file)
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME)
$(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)
ifeq ($(INCLUDE_SA), true)
# The Serviceability Agent is built in the Hotspot workspace.
# It contains two files:
# - sa-jdi.jar: This goes into the same dir as tools.jar.
# - a shared library: sawindbg.dll on windows / libproc.sa on unix
# This goes into the same dir as the other
# shared libs, eg. libjdwp.so.
$(LIBDIR)/sa-jdi.jar: $(HOTSPOT_IMPORT_PATH)/lib/sa-jdi.jar
$(install-import-file)
$(LIB_LOCATION)/$(SALIB_NAME): $(HOTSPOT_SALIB_PATH)/$(SALIB_NAME)
$(install-import-file)
ifeq ($(PLATFORM), windows)
$(LIB_LOCATION)/$(SAPDB_NAME): $(HOTSPOT_SALIB_PATH)/$(SAPDB_NAME)
$(install-import-file)
$(LIB_LOCATION)/$(SAMAP_NAME): $(HOTSPOT_SALIB_PATH)/$(SAMAP_NAME)
$(install-import-file)
endif # windows
endif # INCLUDE_SA
#
# 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-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 $@
ifndef OPENJDK
# Lucida font files are not included in the OpenJDK distribution.
# Get names of font files
include FILES.gmk
# Copy font files into OUTPUTDIR area
FONTFILES = $(SHARED_FONTFILES)
FONTSDIR = $(LIBDIR)/fonts
FONTSDIRFILE = $(FONTSDIR)/fonts.dir
INTERNAL_IMPORT_LIST += $(FONTFILES)
ifneq ($(PLATFORM), windows)
INTERNAL_IMPORT_LIST += $(FONTSDIRFILE)
endif
$(LIBDIR)/fonts/%.ttf: $(CLOSED_SRC)/share/lib/fonts/%.ttf
$(install-file)
$(FONTSDIRFILE): $(PLATFORM_SRC)/classes/sun/awt/motif/java.fonts.dir
$(install-file)
ifeq ($(PLATFORM), linux)
# The oblique fonts are only needed/wanted on Linux.
OBLFONTSDIR = $(LIBDIR)/oblique-fonts
OBLFONTSDIRFILE = $(OBLFONTSDIR)/fonts.dir
INTERNAL_IMPORT_LIST += $(OBLIQUE_FONTFILES) $(OBLFONTSDIRFILE)
$(LIBDIR)/oblique-fonts/%.ttf: $(CLOSED_SRC)/share/lib/fonts/oblique/%.ttf
$(install-file)
$(OBLFONTSDIRFILE): $(PLATFORM_SRC)/classes/sun/awt/motif/java.oblique-fonts.dir
$(install-file)
endif # linux
endif # !OPENJDK
# 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