author | herrick |
Fri, 19 Jun 2009 15:04:51 -0400 | |
changeset 3114 | f503507dcce5 |
parent 3111 | fefdeafb7ab9 |
child 3116 | 244619fd110e |
permissions | -rw-r--r-- |
2 | 1 |
# |
2 |
# Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. |
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
7 |
# published by the Free Software Foundation. Sun designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Sun in the LICENSE file that accompanied this code. |
|
10 |
# |
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
21 |
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 |
# CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 |
# have any questions. |
|
24 |
# |
|
25 |
||
26 |
# |
|
27 |
# Imports files exported by a hotspot build or provided from an external |
|
28 |
# location into the OUTPUTDIR, and also primes the OUTPUTDIR with files |
|
29 |
# that are provided inside this workspace. |
|
30 |
# |
|
31 |
# IMPORT_LIST contains the list of destination files that are copied |
|
32 |
# from external places (outside this workspace). |
|
33 |
# |
|
34 |
# INTERNAL_IMPORT_LIST is the list of destination files from BUILDDIR. |
|
35 |
# |
|
36 |
||
37 |
BUILDDIR = ../.. |
|
38 |
PRODUCT = java |
|
39 |
include $(BUILDDIR)/common/Defs.gmk |
|
40 |
||
41 |
SERVER_LOCATION = server |
|
42 |
CLIENT_LOCATION = client |
|
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
43 |
KERNEL_LOCATION = kernel |
2 | 44 |
|
45 |
DB_SUFFIX = _db |
|
46 |
||
47 |
ifeq ($(PLATFORM), windows) |
|
48 |
LIB_LOCATION = $(BINDIR) |
|
49 |
else |
|
50 |
LIB_LOCATION = $(LIBDIR)/$(LIBARCH) |
|
51 |
endif |
|
52 |
||
53 |
JVM_NAME = $(LIB_PREFIX)jvm.$(LIBRARY_SUFFIX) |
|
54 |
JVMLIB_NAME = $(LIB_PREFIX)jvm.$(LIB_SUFFIX) |
|
55 |
JVMMAP_NAME = $(LIB_PREFIX)jvm.map |
|
56 |
JVMPDB_NAME = $(LIB_PREFIX)jvm.pdb |
|
57 |
LIBJSIG_NAME = $(LIB_PREFIX)jsig.$(LIBRARY_SUFFIX) |
|
58 |
JVMDB_NAME = $(LIB_PREFIX)jvm$(DB_SUFFIX).$(LIBRARY_SUFFIX) |
|
59 |
||
60 |
CLASSSHARINGDATA_DIR = $(BUILDDIR)/tools/sharing |
|
61 |
||
62 |
# Needed to do file copy |
|
63 |
ABS_BUILDDIR :=$(call FullPath,$(BUILDDIR)) |
|
64 |
||
65 |
all: build |
|
66 |
||
67 |
# List of files created here or coming from BUILDDIR area (this workspace) |
|
68 |
INTERNAL_IMPORT_LIST = $(LIBDIR)/classlist |
|
69 |
||
70 |
# List of files coming from outside this workspace |
|
71 |
IMPORT_LIST = $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME) \ |
|
72 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt |
|
73 |
||
74 |
# INCLUDE_SA is false on platforms where SA is not supported. |
|
75 |
# On platforms where it is supported, we want to allow it to |
|
76 |
# not be present, at least temporarily. So, |
|
77 |
# if the SA files (well, just sa-jdi.jar) do not exist |
|
78 |
# in the HOTSPOT_IMPORT_PATH, then we won't build SA. |
|
79 |
SA_EXISTS := $(shell if [ -r $(HOTSPOT_IMPORT_PATH)/lib/sa-jdi.jar ] ; then \ |
|
80 |
$(ECHO) true; \ |
|
81 |
else \ |
|
82 |
$(ECHO) false; \ |
|
83 |
fi) |
|
84 |
||
85 |
ifeq ($(SA_EXISTS), false) |
|
86 |
INCLUDE_SA := false |
|
87 |
endif |
|
88 |
||
89 |
ifeq ($(INCLUDE_SA), true) |
|
90 |
IMPORT_LIST += $(LIBDIR)/sa-jdi.jar \ |
|
91 |
$(LIB_LOCATION)/$(SALIB_NAME) |
|
92 |
ifeq ($(PLATFORM), windows) |
|
93 |
IMPORT_LIST += $(LIB_LOCATION)/$(SAMAP_NAME) \ |
|
94 |
$(LIB_LOCATION)/$(SAPDB_NAME) |
|
95 |
endif |
|
96 |
endif # INCLUDE_SA |
|
97 |
||
98 |
# Hotspot client is only available on 32-bit builds |
|
99 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
100 |
IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME) \ |
|
101 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt |
|
102 |
endif |
|
103 |
||
104 |
ifeq ($(PLATFORM), windows) |
|
105 |
# Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Windows |
|
106 |
||
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
107 |
# Add the Java Kernel VM to the import path, but only on windows 32-bit Windows |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
108 |
ifeq ($(ARCH_DATA_MODEL), 32) |
3114
f503507dcce5
6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents:
3111
diff
changeset
|
109 |
ifeq ($(DO_KERNEL), true) |
f503507dcce5
6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents:
3111
diff
changeset
|
110 |
IMPORT_LIST += $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_NAME) \ |
f503507dcce5
6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents:
3111
diff
changeset
|
111 |
$(LIB_LOCATION)/$(KERNEL_LOCATION)/Xusage.txt |
f503507dcce5
6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents:
3111
diff
changeset
|
112 |
endif |
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
113 |
endif |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
114 |
|
2 | 115 |
IMPORT_LIST += $(MS_RUNTIME_LIBRARIES:%=$(BINDIR)/%) |
116 |
||
117 |
# NOTE: These might actually come from BUILDDIR, depends on the settings. |
|
118 |
$(BINDIR)/msvcrt.dll: $(MSVCRT_DLL_PATH)/msvcrt.dll |
|
119 |
$(install-import-file) |
|
120 |
$(CHMOD) a+x $@ |
|
1776
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
2
diff
changeset
|
121 |
$(BINDIR)/$(MSVCRNN_DLL): $(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL) |
2 | 122 |
$(install-import-file) |
123 |
$(CHMOD) a+x $@ |
|
124 |
||
125 |
# Get the hotspot .map and .pdb files for client and server |
|
126 |
IMPORT_LIST += \ |
|
127 |
$(LIBDIR)/$(JVMLIB_NAME) \ |
|
128 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME) \ |
|
129 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME) |
|
130 |
||
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
131 |
# Add .map and .pdb files to the import path for client and kernel VMs. |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
132 |
# These are only available on 32-bit windows builds. |
2 | 133 |
ifeq ($(ARCH_DATA_MODEL), 32) |
134 |
IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME) \ |
|
135 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME) |
|
3114
f503507dcce5
6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents:
3111
diff
changeset
|
136 |
ifeq ($(DO_KERNEL), true) |
f503507dcce5
6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents:
3111
diff
changeset
|
137 |
IMPORT_LIST += $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME) \ |
f503507dcce5
6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents:
3111
diff
changeset
|
138 |
$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME) |
f503507dcce5
6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents:
3111
diff
changeset
|
139 |
endif |
2 | 140 |
endif |
141 |
||
142 |
$(LIBDIR)/$(JVMLIB_NAME): $(HOTSPOT_LIB_PATH)/$(JVMLIB_NAME) |
|
143 |
$(install-import-file) |
|
144 |
||
145 |
# it is OK for the .map and .pdb files to not exist, so do not force a |
|
146 |
# dependency on them from the bootstrap location, and allow the copy to fail. |
|
147 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME): |
|
148 |
@$(prep-target) |
|
149 |
-$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMMAP_NAME) $@ |
|
150 |
||
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
151 |
$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME): |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
152 |
@$(prep-target) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
153 |
-$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMMAP_NAME) $@ |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
154 |
|
2 | 155 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME): |
156 |
@$(prep-target) |
|
157 |
-$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMMAP_NAME) $@ |
|
158 |
||
159 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME): |
|
160 |
@$(prep-target) |
|
161 |
-$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMPDB_NAME) $@ |
|
162 |
||
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
163 |
$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME): |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
164 |
@$(prep-target) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
165 |
-$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMPDB_NAME) $@ |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
166 |
|
2 | 167 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME): |
168 |
@$(prep-target) |
|
169 |
-$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMPDB_NAME) $@ |
|
170 |
||
171 |
# Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Windows |
|
172 |
else # PLATFORM |
|
173 |
# NOT Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv NOT Windows |
|
174 |
||
175 |
IMPORT_LIST += \ |
|
176 |
$(LIB_LOCATION)/$(LIBJSIG_NAME) \ |
|
177 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME) |
|
178 |
||
179 |
ifeq ($(PLATFORM), solaris) |
|
180 |
IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME) |
|
181 |
endif |
|
182 |
||
183 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
184 |
||
185 |
IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME) |
|
186 |
||
187 |
ifeq ($(PLATFORM), solaris) |
|
188 |
# solaris vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv solaris |
|
189 |
||
190 |
ifeq ($(ARCH), sparc) |
|
191 |
IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME) |
|
192 |
endif |
|
193 |
||
194 |
IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME) |
|
195 |
||
196 |
ifeq ($(ARCH), sparc) |
|
197 |
IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME) |
|
198 |
endif |
|
199 |
||
200 |
# For backwards compatability, make a link of the 32-bit client JVM to $(LIBDIR) |
|
201 |
IMPORT_LIST += $(LIB_LOCATION)/$(JVM_NAME) |
|
202 |
||
203 |
# create a link from lib/libjvm.so to client/libjvm.so |
|
204 |
$(LIB_LOCATION)/$(JVM_NAME): $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME) |
|
205 |
@$(prep-target) |
|
206 |
$(LN) -s $(CLIENT_LOCATION)/$(JVM_NAME) $@ |
|
207 |
||
208 |
# solaris ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ solaris |
|
209 |
endif # 32bit solaris |
|
210 |
||
211 |
endif # 32bit |
|
212 |
||
213 |
# NOT Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ NOT Windows |
|
214 |
||
215 |
endif # PLATFORM |
|
216 |
||
217 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_NAME) |
|
218 |
$(install-import-file) |
|
219 |
||
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
220 |
$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_NAME): $(HOTSPOT_KERNEL_PATH)/$(JVM_NAME) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
221 |
$(install-file) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
222 |
|
2 | 223 |
$(LIB_LOCATION)/$(LIBJSIG_NAME): $(HOTSPOT_SERVER_PATH)/$(LIBJSIG_NAME) |
224 |
$(install-import-file) |
|
225 |
||
226 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME) \ |
|
227 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME): |
|
228 |
@$(prep-target) |
|
229 |
$(LN) -s ../$(LIBJSIG_NAME) $@ |
|
230 |
||
231 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_NAME) |
|
232 |
$(install-import-file) |
|
233 |
||
234 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_NAME) |
|
235 |
$(install-import-file) |
|
236 |
||
237 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME) |
|
238 |
$(install-import-file) |
|
239 |
||
240 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME) |
|
241 |
$(install-import-file) |
|
242 |
||
243 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME): $(HOTSPOT_SERVER_PATH)/$(JVM_NAME) |
|
244 |
$(install-import-file) |
|
245 |
||
246 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt : $(HOTSPOT_SERVER_PATH)/Xusage.txt |
|
247 |
$(install-import-file) |
|
248 |
||
249 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt : $(HOTSPOT_CLIENT_PATH)/Xusage.txt |
|
250 |
$(install-import-file) |
|
251 |
||
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
252 |
$(LIB_LOCATION)/$(KERNEL_LOCATION)/Xusage.txt : $(HOTSPOT_KERNEL_PATH)/Xusage.txt |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
253 |
$(install-file) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
254 |
|
2 | 255 |
ifeq ($(INCLUDE_SA), true) |
256 |
# The Serviceability Agent is built in the Hotspot workspace. |
|
257 |
# It contains two files: |
|
258 |
# - sa-jdi.jar: This goes into the same dir as tools.jar. |
|
259 |
# - a shared library: sawindbg.dll on windows / libproc.sa on unix |
|
260 |
# This goes into the same dir as the other |
|
261 |
# shared libs, eg. libjdwp.so. |
|
262 |
$(LIBDIR)/sa-jdi.jar: $(HOTSPOT_IMPORT_PATH)/lib/sa-jdi.jar |
|
263 |
$(install-import-file) |
|
264 |
||
265 |
$(LIB_LOCATION)/$(SALIB_NAME): $(HOTSPOT_SALIB_PATH)/$(SALIB_NAME) |
|
266 |
$(install-import-file) |
|
267 |
||
268 |
ifeq ($(PLATFORM), windows) |
|
269 |
$(LIB_LOCATION)/$(SAPDB_NAME): $(HOTSPOT_SALIB_PATH)/$(SAPDB_NAME) |
|
270 |
$(install-import-file) |
|
271 |
||
272 |
$(LIB_LOCATION)/$(SAMAP_NAME): $(HOTSPOT_SALIB_PATH)/$(SAMAP_NAME) |
|
273 |
$(install-import-file) |
|
274 |
endif # windows |
|
275 |
endif # INCLUDE_SA |
|
276 |
||
277 |
# |
|
278 |
# Specific to OpenJDK building |
|
279 |
# |
|
280 |
ifdef OPENJDK |
|
281 |
||
2301 | 282 |
ifeq ($(IMPORT_BINARY_PLUGS),true) |
283 |
include $(BUILDDIR)/common/internal/BinaryPlugs.gmk |
|
2 | 284 |
|
2301 | 285 |
build: import-binary-plugs |
286 |
endif |
|
2 | 287 |
|
288 |
else # !OPENJDK |
|
289 |
||
290 |
INTERNAL_IMPORT_LIST += \ |
|
291 |
$(LIBDIR)/security/US_export_policy.jar \ |
|
292 |
$(LIBDIR)/security/local_policy.jar \ |
|
293 |
$(LIBDIR)/jce.jar |
|
294 |
||
295 |
$(LIBDIR)/jce.jar: \ |
|
296 |
$(BUILDDIR)/closed/tools/crypto/jce/jce.jar |
|
297 |
$(install-file) |
|
298 |
$(LIBDIR)/security/US_export_policy.jar: \ |
|
299 |
$(BUILDDIR)/closed/tools/crypto/jce/US_export_policy.jar |
|
300 |
$(install-file) |
|
301 |
$(LIBDIR)/security/local_policy.jar: \ |
|
302 |
$(BUILDDIR)/closed/tools/crypto/jce/local_policy.jar |
|
303 |
$(install-file) |
|
304 |
||
305 |
endif # OPENJDK |
|
306 |
||
307 |
ADDJSUM_JARFILE = $(BUILDTOOLJARDIR)/addjsum.jar |
|
308 |
||
309 |
# Construct classlist file |
|
310 |
$(LIBDIR)/classlist: \ |
|
311 |
$(CLASSSHARINGDATA_DIR)/classlist.$(PLATFORM) \ |
|
312 |
$(ADDJSUM_JARFILE) |
|
313 |
@$(prep-target) |
|
314 |
@$(RM) -f $@.temp |
|
315 |
$(BOOT_JAVA_CMD) -jar $(ADDJSUM_JARFILE) \ |
|
316 |
$(CLASSSHARINGDATA_DIR)/classlist.$(PLATFORM) $@.temp |
|
317 |
$(MV) $@.temp $@ |
|
318 |
||
319 |
ifndef OPENJDK |
|
320 |
||
321 |
# Lucida font files are not included in the OpenJDK distribution. |
|
322 |
# Get names of font files |
|
323 |
include FILES.gmk |
|
324 |
||
325 |
# Copy font files into OUTPUTDIR area |
|
326 |
||
327 |
FONTFILES = $(SHARED_FONTFILES) |
|
328 |
FONTSDIR = $(LIBDIR)/fonts |
|
329 |
FONTSDIRFILE = $(FONTSDIR)/fonts.dir |
|
330 |
INTERNAL_IMPORT_LIST += $(FONTFILES) |
|
331 |
||
332 |
ifneq ($(PLATFORM), windows) |
|
333 |
INTERNAL_IMPORT_LIST += $(FONTSDIRFILE) |
|
334 |
endif |
|
335 |
||
336 |
$(LIBDIR)/fonts/%.ttf: $(CLOSED_SRC)/share/lib/fonts/%.ttf |
|
337 |
$(install-file) |
|
338 |
||
339 |
$(FONTSDIRFILE): $(PLATFORM_SRC)/classes/sun/awt/motif/java.fonts.dir |
|
340 |
$(install-file) |
|
341 |
||
342 |
ifeq ($(PLATFORM), linux) |
|
343 |
||
344 |
# The oblique fonts are only needed/wanted on Linux. |
|
345 |
||
346 |
OBLFONTSDIR = $(LIBDIR)/oblique-fonts |
|
347 |
OBLFONTSDIRFILE = $(OBLFONTSDIR)/fonts.dir |
|
348 |
INTERNAL_IMPORT_LIST += $(OBLIQUE_FONTFILES) $(OBLFONTSDIRFILE) |
|
349 |
||
350 |
$(LIBDIR)/oblique-fonts/%.ttf: $(CLOSED_SRC)/share/lib/fonts/oblique/%.ttf |
|
351 |
$(install-file) |
|
352 |
||
353 |
$(OBLFONTSDIRFILE): $(PLATFORM_SRC)/classes/sun/awt/motif/java.oblique-fonts.dir |
|
354 |
$(install-file) |
|
355 |
||
356 |
endif # linux |
|
357 |
endif # !OPENJDK |
|
358 |
||
359 |
# Import internal files (ones that are stashed in this source tree) |
|
360 |
import_internal_files : $(INTERNAL_IMPORT_LIST) |
|
361 |
||
362 |
# Import files from the JDK that we are not building |
|
363 |
import_files: $(IMPORT_LIST) |
|
364 |
||
365 |
# Get component information variables and rules |
|
366 |
include $(BUILDDIR)/common/internal/ImportComponents.gmk |
|
367 |
||
368 |
# Security files we need to import |
|
369 |
SEC_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/sec-bin.zip |
|
370 |
SEC_FILES_WIN_ZIP=$(ABS_BUILDDIR)/tools/crypto/sec-windows-bin.zip |
|
371 |
JGSS_WIN32_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/jgss-windows-i586-bin.zip |
|
372 |
JGSS_WIN64_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/jgss-windows-x64-bin.zip |
|
373 |
||
374 |
# Unzip zip file $2 into directory $1 (if $2 exists) |
|
375 |
# Warning: $2 must be absolute path not relative |
|
376 |
define SecUnzipper |
|
377 |
if [ -f $2 ] ; then \ |
|
378 |
$(MKDIR) -p $1; \ |
|
379 |
$(ECHO) "( $(CD) $1 && $(UNZIP) -o $2 )"; \ |
|
380 |
( $(CD) $1 && $(UNZIP) -o $2 ); \ |
|
381 |
fi |
|
382 |
endef |
|
383 |
||
384 |
# If sec-bin exists, unpack it into the build directory |
|
385 |
# Also, the library recompile build indirectly depends on two SSL classes, |
|
386 |
# so copy those as well FIXUP |
|
387 |
# if sec-windows-bin exists, unpack it into the build directory |
|
388 |
# if JGSS files exists, unpack it into the build directory |
|
389 |
$(TEMPDIR)/security_imported: |
|
390 |
@$(prep-target) |
|
391 |
@$(call SecUnzipper,$(OUTPUTDIR),$(SEC_FILES_ZIP)) |
|
392 |
ifeq ($(PLATFORM), windows) |
|
393 |
@$(call SecUnzipper,$(OUTPUTDIR),$(SEC_FILES_WIN_ZIP)) |
|
394 |
endif |
|
395 |
ifeq ($(PLATFORM), windows) |
|
396 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
397 |
@$(call SecUnzipper,$(OUTPUTDIR),$(JGSS_WIN32_FILES_ZIP)) |
|
398 |
else |
|
399 |
@$(call SecUnzipper,$(OUTPUTDIR),$(JGSS_WIN64_FILES_ZIP)) |
|
400 |
endif |
|
401 |
endif |
|
402 |
@$(ECHO) "Imported on `$(DATE)`" > $@ |
|
403 |
||
404 |
# Import all files from other components |
|
405 |
$(TEMPDIR)/components_imported: |
|
406 |
@$(prep-target) |
|
407 |
$(call import-component-binaries,$(ABS_OUTPUTDIR)) |
|
408 |
$(call import-component-sources,$(IMPORTSRCDIR)) |
|
409 |
$(call import-component-docs,$(IMPORTDOCDIR)) |
|
410 |
$(call import-component-classes,$(CLASSDESTDIR)) |
|
411 |
@$(ECHO) "Imported on `$(DATE)`" > $@ |
|
412 |
||
413 |
# Do pretty much everything |
|
414 |
build : import_files \ |
|
415 |
import_internal_files \ |
|
416 |
$(TEMPDIR)/components_imported \ |
|
417 |
$(TEMPDIR)/security_imported |
|
418 |
||
419 |
# Clean up what we imported (except for component files) |
|
420 |
clean clobber:: |
|
421 |
$(RM) $(IMPORT_LIST) |
|
422 |
$(RM) $(INTERNAL_IMPORT_LIST) |
|
423 |
$(call import-component-sources-clean,$(IMPORTSRCDIR)) |
|
424 |
$(call import-component-docs-clean,$(IMPORTDOCDIR)) |
|
425 |
$(call import-component-classes-clean,$(CLASSDESTDIR)) |
|
426 |
$(RM) $(TEMPDIR)/components_imported |
|
427 |
$(RM) $(TEMPDIR)/security_imported |
|
428 |
||
429 |
.PHONY: import_files import_internal_files |
|
430 |