author | never |
Mon, 12 Jul 2010 22:27:18 -0700 | |
changeset 5926 | a36f90d986b6 |
parent 5552 | bca3be14c8bd |
child 5631 | cfb4f43485f3 |
permissions | -rw-r--r-- |
2 | 1 |
# |
5506 | 2 |
# Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved. |
2 | 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 |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 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 |
# |
|
5506 | 21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
2 | 24 |
# |
25 |
||
26 |
include $(JDK_TOPDIR)/make/docs/CORE_PKGS.gmk |
|
27 |
include $(JDK_TOPDIR)/make/docs/NON_CORE_PKGS.gmk |
|
28 |
||
29 |
# |
|
30 |
# Perform release engineering tasks. |
|
31 |
# |
|
32 |
# images An image is what the product looks like when it is |
|
33 |
# installed. |
|
34 |
# |
|
35 |
||
36 |
IMAGE_BINDIR = bin |
|
37 |
||
38 |
# The compiler should not issue a "Sun Propietary" warning when compiling |
|
39 |
# classes in the com.sun.java.swing.plaf packages, since we've always |
|
40 |
# allowed, and even advocated, extending them (see bug 6476749). |
|
41 |
# |
|
42 |
# This approach is NOT to be used as a general purpose way to avoid such |
|
43 |
# compiler warnings for non-core packages. The correct way is to document |
|
44 |
# the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS |
|
45 |
# definition. |
|
46 |
# |
|
47 |
# Swing has taken this approach only as a temporary measure to avoid |
|
48 |
# the compiler warnings until we can properly document these packages. |
|
49 |
# This is covered under 6491853. |
|
50 |
EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf \ |
|
51 |
com.sun.java.swing.plaf.windows \ |
|
52 |
com.sun.java.swing.plaf.motif \ |
|
53 |
com.sun.java.swing.plaf.gtk |
|
54 |
||
2763 | 55 |
# This is a stopgap until 6839872 is fixed. |
56 |
EXCLUDE_PROPWARN_PKGS += sun.dyn |
|
57 |
||
2 | 58 |
# 64-bit solaris has a few special cases. We define the variable |
59 |
# SOLARIS64 for use in this Makefile to easily test those cases |
|
60 |
ifeq ($(PLATFORM), solaris) |
|
61 |
ifeq ($(ARCH_DATA_MODEL), 64) |
|
62 |
SOLARIS64 = true |
|
63 |
IMAGE_BINDIR = bin/$(ARCH) |
|
64 |
endif |
|
65 |
endif |
|
66 |
||
67 |
JTG_DOCS = $(JDK_TOPDIR)/src/solaris/doc |
|
68 |
||
69 |
#We use this for man page header |
|
70 |
jdkversion := $(JDK_MAJOR_VERSION).$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION) |
|
71 |
||
72 |
# Text documents on windows use this suffix |
|
73 |
ifeq ($(PLATFORM), windows) |
|
74 |
TEXT_SUFFIX = .txt |
|
75 |
endif |
|
76 |
||
77 |
# The base names of all the license and document files for the jdk and jre |
|
920
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
78 |
# (These files get placed in the jdk and jre install images) |
2 | 79 |
ifdef OPENJDK |
920
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
80 |
# Where to find these files |
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
81 |
SHARE_JDK_DOC_SRC = $(JDK_TOPDIR) |
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
82 |
SHARE_JRE_DOC_SRC = $(JDK_TOPDIR) |
2 | 83 |
# Same files for jdk and jre, no name changes |
84 |
LICENSE_DOCLIST_JDK = LICENSE ASSEMBLY_EXCEPTION |
|
85 |
LICENSE_DOCLIST_JRE = LICENSE ASSEMBLY_EXCEPTION |
|
920
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
86 |
OTHER_DOCLIST_JDK = THIRD_PARTY_README |
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
87 |
OTHER_DOCLIST_JRE = THIRD_PARTY_README |
2 | 88 |
else |
920
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
89 |
# Where to find these files |
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
90 |
SHARE_JDK_DOC_SRC = $(CLOSED_SHARE_SRC)/doc/jdk |
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
91 |
SHARE_JRE_DOC_SRC = $(CLOSED_SHARE_SRC)/doc/jre |
2 | 92 |
# Select the pre-release or FCS license version based on the build milestone. |
93 |
LICENSE_VERSION=.pre |
|
94 |
ifeq ($(MILESTONE), fcs) |
|
95 |
LICENSE_VERSION=.fcs |
|
96 |
endif |
|
97 |
ifeq ($(PLATFORM), windows) |
|
98 |
LICENSE_DOCLIST_JDK = $(subst $(LICENSE_VERSION),,\ |
|
99 |
$(shell $(CD) $(SHARE_JDK_DOC_SRC) && \ |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
100 |
$(LS) *LICENSE*$(LICENSE_VERSION))) |
2 | 101 |
LICENSE_DOCLIST_JRE = $(subst $(LICENSE_VERSION),,\ |
102 |
$(shell $(CD) $(SHARE_JRE_DOC_SRC) && \ |
|
103 |
$(LS) *LICENSE*$(LICENSE_VERSION))) |
|
104 |
else |
|
105 |
LICENSE_DOCLIST_JDK = $(subst $(LICENSE_VERSION),,\ |
|
106 |
$(shell $(CD) $(SHARE_JDK_DOC_SRC) && \ |
|
107 |
$(LS) *LICENSE*$(LICENSE_VERSION) | $(GREP) -v rtf)) |
|
108 |
LICENSE_DOCLIST_JRE = $(subst $(LICENSE_VERSION),,\ |
|
109 |
$(shell $(CD) $(SHARE_JRE_DOC_SRC) && \ |
|
110 |
$(LS) *LICENSE*$(LICENSE_VERSION) | $(GREP) -v rtf)) |
|
111 |
endif |
|
112 |
OTHER_DOCLIST_JDK = COPYRIGHT README.html README_ja.html README_zh_CN.html |
|
113 |
OTHER_DOCLIST_JRE = COPYRIGHT Welcome.html |
|
114 |
JRE_NAMECHANGE_DOCLIST = README |
|
115 |
endif |
|
116 |
||
117 |
# Paths to these files we need |
|
118 |
JDK_LICENSES = $(LICENSE_DOCLIST_JDK:%=$(JDK_IMAGE_DIR)/%) |
|
119 |
JDK64_LICENSES = $(LICENSE_DOCLIST_JDK:%=$(JDK_IMAGE_DIR)/%64) |
|
120 |
JDK_DOCFILES = $(OTHER_DOCLIST_JDK:%=$(JDK_IMAGE_DIR)/%) |
|
121 |
||
122 |
JRE_LICENSES = $(LICENSE_DOCLIST_JRE:%=$(JRE_IMAGE_DIR)/%) |
|
123 |
JRE64_LICENSES = $(LICENSE_DOCLIST_JRE:%=$(JRE_IMAGE_DIR)/%64) |
|
124 |
JRE_DOCFILES = $(OTHER_DOCLIST_JRE:%=$(JRE_IMAGE_DIR)/%) |
|
125 |
JRE_DOCFILES += $(JRE_NAMECHANGE_DOCLIST:%=$(JRE_IMAGE_DIR)/%$(TEXT_SUFFIX)) |
|
126 |
||
127 |
# absolute directory names: note, these must exist prior to build |
|
128 |
# time - they are created in the main Makefile. |
|
129 |
JRE_IMAGE_BINDIR = $(JRE_IMAGE_DIR)/bin |
|
130 |
JRE_IMAGE_THREADIR = $(JRE_IMAGE_DIR)/bin/*/native_threads |
|
131 |
||
132 |
MAINMANIFEST = $(JDK_TOPDIR)/make/tools/manifest.mf |
|
133 |
BEANMANIFEST = $(JDK_TOPDIR)/make/javax/swing/beaninfo/manifest |
|
134 |
||
135 |
# |
|
136 |
# Man pages |
|
137 |
# |
|
138 |
||
139 |
JRE_MAN_PAGES = \ |
|
140 |
java.1 \ |
|
141 |
keytool.1 \ |
|
142 |
orbd.1 \ |
|
143 |
pack200.1 \ |
|
144 |
policytool.1 \ |
|
145 |
rmid.1 \ |
|
146 |
rmiregistry.1 \ |
|
147 |
servertool.1 \ |
|
148 |
tnameserv.1 \ |
|
149 |
unpack200.1 |
|
150 |
||
151 |
ifeq ($(ARCH_DATA_MODEL),32) |
|
152 |
JRE_MAN_PAGES += javaws.1 |
|
153 |
endif |
|
154 |
||
155 |
JDK_MAN_PAGES = \ |
|
156 |
$(JRE_MAN_PAGES) \ |
|
157 |
appletviewer.1 \ |
|
158 |
apt.1 \ |
|
159 |
extcheck.1 \ |
|
160 |
idlj.1 \ |
|
161 |
jar.1 \ |
|
162 |
jarsigner.1 \ |
|
163 |
javac.1 \ |
|
164 |
javadoc.1 \ |
|
165 |
javah.1 \ |
|
166 |
javap.1 \ |
|
167 |
jconsole.1 \ |
|
168 |
jdb.1 \ |
|
169 |
jhat.1 \ |
|
170 |
jinfo.1 \ |
|
171 |
jmap.1 \ |
|
172 |
jps.1 \ |
|
173 |
jrunscript.1 \ |
|
174 |
jsadebugd.1 \ |
|
175 |
jstack.1 \ |
|
176 |
jstat.1 \ |
|
177 |
jstatd.1 \ |
|
178 |
native2ascii.1 \ |
|
179 |
rmic.1 \ |
|
180 |
schemagen.1 \ |
|
181 |
serialver.1 \ |
|
182 |
wsgen.1 \ |
|
183 |
wsimport.1 \ |
|
184 |
xjc.1 |
|
185 |
||
186 |
ifeq ($(PLATFORM), solaris) |
|
187 |
MANBASEDIRS=$(JDK_TOPDIR)/src/solaris/doc $(IMPORTDOCDIR) |
|
188 |
MAN1SUBDIR=sun/man/man1 |
|
189 |
endif # solaris |
|
190 |
||
191 |
ifeq ($(PLATFORM), linux) |
|
192 |
MANBASEDIRS=$(JDK_TOPDIR)/src/linux/doc $(IMPORTDOCDIR) |
|
193 |
MAN1SUBDIR=man |
|
194 |
JA_DIRNAME=ja_JP.$(JA_SOURCE_ENCODING) |
|
195 |
endif # linux |
|
196 |
||
197 |
define copy-man-pages |
|
198 |
$(MKDIR) -p $1/man/man1 |
|
199 |
for manbase in $(MANBASEDIRS:%=%/$(MAN1SUBDIR)) ; do \ |
|
200 |
for manpage in $2; do \ |
|
201 |
if [ -f $${manbase}/$${manpage} ] ; then \ |
|
202 |
$(CP) $${manbase}/$${manpage} $1/man/man1 ; \ |
|
203 |
for ja_encoding in $(JA_TARGET_ENCODINGS); do \ |
|
204 |
ja_dir="ja"; \ |
|
205 |
if [ "$${ja_encoding}" != "$(JA_SOURCE_ENCODING)" ]; then \ |
|
206 |
ja_dir="ja_JP.$${ja_encoding}"; \ |
|
207 |
fi; \ |
|
208 |
$(MKDIR) -p $1/man/$${ja_dir}/man1; \ |
|
209 |
$(CAT) $${manbase}/ja/$${manpage} \ |
|
210 |
| $(NATIVE2ASCII) -encoding $(JA_SOURCE_ENCODING) \ |
|
211 |
| $(SED) 's/@@VERSION@@/$(jdkversion)/g' \ |
|
212 |
| $(NATIVE2ASCII) -reverse -encoding $${ja_encoding} \ |
|
213 |
> $1/man/$${ja_dir}/man1/$${manpage}; \ |
|
214 |
done; \ |
|
215 |
fi; \ |
|
216 |
done; \ |
|
217 |
done |
|
218 |
$(java-vm-cleanup) |
|
219 |
if [ "$(JA_DIRNAME)" != "" ] ; then \ |
|
220 |
$(MV) $1/man/ja $1/man/$(JA_DIRNAME); \ |
|
221 |
$(CD) $1/man && $(LN) -s $(JA_DIRNAME) ja; \ |
|
222 |
fi |
|
223 |
endef |
|
224 |
||
225 |
# |
|
226 |
# Targets. |
|
227 |
# |
|
228 |
INITIAL_IMAGE_JRE=initial-image-jre |
|
229 |
INITIAL_IMAGE_JDK=initial-image-jdk |
|
230 |
ifeq ($(PLATFORM), solaris) |
|
231 |
ifeq ($(ARCH_DATA_MODEL), 64) |
|
232 |
INITIAL_IMAGE_JRE=initial-image-jre-sol64 |
|
233 |
INITIAL_IMAGE_JDK=initial-image-jdk-sol64 |
|
234 |
endif |
|
235 |
endif |
|
236 |
||
237 |
images images-clobber \ |
|
238 |
initial-image-jre initial-image-jdk \ |
|
239 |
initial-image-jre-sol64 initial-image-jdk-sol64 \ |
|
240 |
trim-image-jre trim-image-jdk \ |
|
241 |
process-image-jre process-image-jdk \ |
|
242 |
compare-image \ |
|
243 |
sec-files sec-files-win jgss-files :: |
|
244 |
@$(ECHO) ">>>Making "$@" @ `$(DATE)` ..." |
|
245 |
||
246 |
# |
|
247 |
# Export binary plugs if not building OPENJDK |
|
248 |
# |
|
249 |
ifdef OPENJDK |
|
250 |
EXPORT_BINARY_PLUGS = |
|
251 |
else # !OPENJDK |
|
252 |
EXPORT_BINARY_PLUGS = export-binary-plugs test-binary-plugs |
|
253 |
endif # OPENJDK |
|
254 |
||
255 |
# Order is important here, trim jre after jdk image is created |
|
256 |
images:: sanity-images post-sanity-images \ |
|
257 |
$(EXPORT_BINARY_PLUGS) \ |
|
258 |
$(INITIAL_IMAGE_JRE) $(INITIAL_IMAGE_JDK) \ |
|
259 |
trim-image-jre trim-image-jdk \ |
|
260 |
process-image-jre process-image-jdk sec-files sec-files-win jgss-files |
|
261 |
||
262 |
# Don't use these |
|
263 |
image-jre:: initial-image-jre trim-image-jre process-image-jre |
|
264 |
image-jdk:: initial-image-jdk trim-image-jdk process-image-jdk |
|
265 |
||
266 |
# |
|
267 |
# Sources we ship in the SDK. |
|
268 |
# |
|
269 |
SOURCES = \ |
|
270 |
java/applet \ |
|
271 |
java/awt \ |
|
272 |
java/beans \ |
|
273 |
java/io \ |
|
274 |
java/lang \ |
|
275 |
java/math \ |
|
276 |
java/net \ |
|
277 |
java/nio \ |
|
278 |
java/rmi \ |
|
279 |
java/security \ |
|
280 |
java/sql \ |
|
281 |
java/text \ |
|
282 |
java/util \ |
|
283 |
com/sun/corba \ |
|
284 |
com/sun/image/codec/jpeg \ |
|
285 |
com/sun/imageio \ |
|
286 |
com/sun/java/swing \ |
|
287 |
com/sun/javadoc \ |
|
288 |
com/sun/jmx \ |
|
289 |
com/sun/mirror \ |
|
290 |
com/sun/source \ |
|
291 |
com/sun/naming \ |
|
292 |
com/sun/security/auth \ |
|
293 |
com/sun/security/jgss \ |
|
294 |
javax/accessibility \ |
|
295 |
javax/annotation \ |
|
296 |
javax/script \ |
|
297 |
javax/imageio \ |
|
298 |
javax/lang \ |
|
299 |
javax/management \ |
|
300 |
javax/naming \ |
|
301 |
javax/print \ |
|
302 |
javax/rmi \ |
|
303 |
javax/security \ |
|
304 |
javax/sound \ |
|
305 |
javax/sql \ |
|
306 |
javax/swing \ |
|
307 |
javax/tools \ |
|
308 |
javax/xml \ |
|
309 |
com/sun/org/apache \ |
|
310 |
com/sun/java_cup \ |
|
311 |
com/sun/jlex \ |
|
312 |
org/ietf \ |
|
313 |
org/omg \ |
|
314 |
org/w3c/dom \ |
|
315 |
org/xml/sax \ |
|
316 |
sunw |
|
317 |
# |
|
318 |
# Directories where sources may be found. If a file with the same path |
|
319 |
# name exists in more than one of these places, the one found last on this |
|
320 |
# list wins. |
|
321 |
# |
|
322 |
SOURCE_DIRS = $(SHARE_SRC)/classes $(PLATFORM_SRC)/classes |
|
323 |
SOURCE_DIRS += $(GENSRCDIR) |
|
324 |
SOURCE_DIRS += $(IMPORTSRCDIR) |
|
325 |
ifndef OPENJDK |
|
326 |
SOURCE_DIRS += $(CLOSED_SRC)/share/classes |
|
327 |
endif |
|
328 |
||
329 |
||
330 |
# |
|
331 |
# Specific files and directories that will be filtered out from above areas. |
|
332 |
# |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
3288
diff
changeset
|
333 |
SOURCE_FILTERs = $(SCM_DIRs) ',*' |
2 | 334 |
SOURCE_FILES_filter = $(SOURCE_FILTERs:%=-name % -prune -o) |
335 |
||
336 |
# |
|
337 |
# Bug 4249883 - excluding some unnecessary packages from com.sun.tools |
|
338 |
# |
|
339 |
# Bug 5008685 - exclude jconsole from sun/tools |
|
340 |
# |
|
341 |
TOOLS = \ |
|
342 |
META-INF/services/com.sun.jdi.connect.Connector \ |
|
343 |
META-INF/services/com.sun.jdi.connect.spi.TransportService \ |
|
344 |
sun/tools/asm \ |
|
345 |
sun/tools/jar \ |
|
346 |
sun/tools/java \ |
|
347 |
sun/tools/javac \ |
|
348 |
sun/tools/jps \ |
|
349 |
sun/tools/jstat \ |
|
350 |
sun/tools/jstatd \ |
|
351 |
sun/tools/native2ascii \ |
|
352 |
sun/tools/serialver \ |
|
353 |
sun/tools/tree \ |
|
354 |
sun/tools/util \ |
|
355 |
sun/security/tools/JarBASE64Encoder.class \ |
|
356 |
sun/security/tools/JarSigner.class \ |
|
357 |
sun/security/tools/JarSignerParameters.class \ |
|
358 |
sun/security/tools/JarSignerResources.class \ |
|
359 |
sun/security/tools/JarSignerResources_ja.class \ |
|
360 |
sun/security/tools/JarSignerResources_zh_CN.class \ |
|
361 |
sun/security/tools/SignatureFile\$$Block.class \ |
|
362 |
sun/security/tools/SignatureFile.class \ |
|
363 |
sun/security/tools/TimestampedSigner.class \ |
|
364 |
sun/rmi/rmic \ |
|
365 |
sun/applet \ |
|
366 |
sun/jvmstat \ |
|
367 |
com/sun/javadoc \ |
|
368 |
com/sun/jdi \ |
|
369 |
com/sun/jarsigner \ |
|
370 |
com/sun/mirror \ |
|
371 |
com/sun/source \ |
|
684 | 372 |
com/sun/tools/classfile \ |
2 | 373 |
com/sun/tools/doclets \ |
374 |
com/sun/tools/example/debug/expr \ |
|
375 |
com/sun/tools/example/debug/tty \ |
|
376 |
com/sun/tools/extcheck \ |
|
377 |
com/sun/tools/hat \ |
|
378 |
com/sun/tools/javac \ |
|
379 |
com/sun/tools/javadoc \ |
|
380 |
com/sun/tools/apt \ |
|
381 |
com/sun/tools/javah \ |
|
684 | 382 |
com/sun/tools/javap \ |
2 | 383 |
com/sun/tools/corba \ |
384 |
com/sun/tools/internal/xjc \ |
|
385 |
com/sun/tools/internal/ws \ |
|
386 |
META-INF/services/com.sun.mirror.apt.AnnotationProcessorFactory \ |
|
387 |
META-INF/services/com.sun.tools.xjc.Plugin \ |
|
388 |
com/sun/istack/internal/tools \ |
|
389 |
com/sun/istack/internal/ws \ |
|
390 |
com/sun/codemodel \ |
|
391 |
com/sun/tools/internal/jxc \ |
|
392 |
com/sun/xml/internal/rngom \ |
|
393 |
com/sun/xml/internal/xsom \ |
|
394 |
org/relaxng/datatype \ |
|
395 |
com/sun/xml/internal/dtdparser \ |
|
396 |
com/sun/tools/jdi \ |
|
397 |
com/sun/tools/script/shell \ |
|
398 |
META-INF/services/com.sun.tools.attach.spi.AttachProvider \ |
|
399 |
com/sun/tools/attach \ |
|
400 |
sun/tools/attach \ |
|
401 |
sun/tools/jstack \ |
|
402 |
sun/tools/jinfo \ |
|
403 |
sun/tools/jmap |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
404 |
|
2 | 405 |
# classes that go into jsse.jar |
406 |
JSSE_CLASSES_DIRS = \ |
|
407 |
sun/security/provider/Sun.class \ |
|
408 |
sun/security/rsa/SunRsaSign.class \ |
|
409 |
sun/security/ssl \ |
|
410 |
com/sun/net/ssl/internal/ssl |
|
411 |
||
412 |
# files under $(OUTPUTDIR) that need to go into sec-bin.zip for builds |
|
413 |
# where the corresponding sources are not available |
|
414 |
SEC_FILES_DIRS = \ |
|
415 |
classes/javax/net \ |
|
416 |
classes/javax/security/cert \ |
|
417 |
classes/com/sun/net/ssl \ |
|
418 |
classes/com/sun/security/cert \ |
|
419 |
classes/sun/net/www/protocol/https \ |
|
420 |
classes/sun/security/pkcs12 \ |
|
421 |
classes/sun/security/ssl \ |
|
422 |
classes/sun/security/krb5/*.class \ |
|
423 |
classes/sun/security/krb5/internal/*.class \ |
|
424 |
classes/sun/security/krb5/internal/ccache \ |
|
425 |
classes/sun/security/krb5/internal/crypto \ |
|
426 |
classes/sun/security/krb5/internal/ktab \ |
|
427 |
classes/sun/security/krb5/internal/rcache \ |
|
428 |
classes/sun/security/krb5/internal/util \ |
|
429 |
classes/sun/security/jgss/spi/GSSContextSpi.class |
|
430 |
||
431 |
# files under $(OUTPUTDIR) that need to go into sec-windows-win.zip for builds |
|
432 |
# where the corresponding sources are not available |
|
433 |
SEC_FILES_WIN_DIRS = \ |
|
434 |
classes/sun/security/krb5/internal/tools |
|
435 |
||
436 |
# files under $(BINDIR) that need to go into jgss_files.zip for builds |
|
437 |
# where the corresponding sources are not available |
|
438 |
JGSS_FILES_DIRS = \ |
|
439 |
bin/w2k_lsa_auth.dll \ |
|
440 |
bin/w2k_lsa_auth.map \ |
|
441 |
bin/w2k_lsa_auth.pdb |
|
442 |
||
443 |
# The following get removed from the SDK image. |
|
444 |
NOTJDKTOOLS = \ |
|
445 |
java_vm |
|
446 |
||
447 |
# The following get removed from the JRE after the bulk-copy of BINDIR... |
|
448 |
NOTJRETOOLS = \ |
|
449 |
appletviewer$(EXE_SUFFIX) \ |
|
450 |
extcheck$(EXE_SUFFIX) \ |
|
451 |
idlj$(EXE_SUFFIX) \ |
|
452 |
jar$(EXE_SUFFIX) \ |
|
453 |
jarsigner$(EXE_SUFFIX) \ |
|
454 |
java-rmi.cgi \ |
|
455 |
javac$(EXE_SUFFIX) \ |
|
456 |
javadoc$(EXE_SUFFIX) \ |
|
457 |
apt$(EXE_SUFFIX) \ |
|
458 |
javah$(EXE_SUFFIX) \ |
|
459 |
javap$(EXE_SUFFIX) \ |
|
460 |
jdb$(EXE_SUFFIX) \ |
|
461 |
jps$(EXE_SUFFIX) \ |
|
462 |
jrunscript$(EXE_SUFFIX) \ |
|
463 |
jstat$(EXE_SUFFIX) \ |
|
464 |
jstatd$(EXE_SUFFIX) \ |
|
465 |
jstack$(EXE_SUFFIX) \ |
|
466 |
packagebean$(SCRIPT_SUFFIX) \ |
|
467 |
rmic$(EXE_SUFFIX) \ |
|
468 |
serialver$(EXE_SUFFIX) \ |
|
469 |
unregbean$(EXE_SUFFIX) \ |
|
470 |
jconsole$(EXE_SUFFIX) \ |
|
471 |
jinfo$(EXE_SUFFIX) \ |
|
472 |
jmap$(EXE_SUFFIX) \ |
|
473 |
native2ascii$(EXE_SUFFIX) \ |
|
474 |
xjc$(EXE_SUFFIX) \ |
|
475 |
wsgen$(EXE_SUFFIX) \ |
|
476 |
wsimport$(EXE_SUFFIX) \ |
|
477 |
schemagen$(EXE_SUFFIX) \ |
|
478 |
jsadebugd$(EXE_SUFFIX) \ |
|
479 |
jhat$(EXE_SUFFIX) |
|
480 |
||
481 |
# The following get removed from the JRE after the bulk-copy of LIBDIR... |
|
482 |
NOTJRELIBS = tools.jar \ |
|
483 |
jconsole.jar |
|
484 |
||
485 |
ifeq ($(INCLUDE_SA), true) |
|
486 |
NOTJRELIBS += sa-jdi.jar |
|
487 |
||
488 |
# The following get removed from the JRE after the bulk-copy of LIBDIR... |
|
489 |
NOTJRE_SHARED_LIBS = $(SALIB_NAME) |
|
490 |
else |
|
491 |
NOTJRE_SHARED_LIBS = |
|
492 |
endif |
|
493 |
||
494 |
# Attach library is JDK only |
|
495 |
NOTJRE_SHARED_LIBS += $(LIB_PREFIX)attach.$(LIBRARY_SUFFIX) |
|
496 |
||
497 |
# |
|
498 |
###### RULES |
|
499 |
||
500 |
# Processing license files from source area to image area |
|
501 |
# These will be modified to have the platform specific EOL chars. |
|
502 |
define process-doc-file |
|
503 |
$(prep-target) |
|
504 |
$(SED) 's/$$//g' $< > $@ |
|
505 |
$(CHMOD) 444 $@ |
|
506 |
endef |
|
507 |
||
508 |
# JDK files |
|
509 |
$(JDK_IMAGE_DIR)/%: $(SHARE_JDK_DOC_SRC)/% |
|
510 |
$(process-doc-file) |
|
511 |
# Removes LICENSE_VERSION or not |
|
512 |
ifdef LICENSE_VERSION |
|
513 |
$(JDK_IMAGE_DIR)/%: $(SHARE_JDK_DOC_SRC)/%$(LICENSE_VERSION) |
|
514 |
$(process-doc-file) |
|
515 |
$(JDK_IMAGE_DIR)/%64: $(SHARE_JDK_DOC_SRC)/%$(LICENSE_VERSION) |
|
516 |
$(process-doc-file) |
|
517 |
else |
|
518 |
$(JDK_IMAGE_DIR)/%64: $(SHARE_JDK_DOC_SRC)/% |
|
519 |
$(process-doc-file) |
|
520 |
endif |
|
521 |
||
522 |
# JRE files |
|
523 |
$(JRE_IMAGE_DIR)/%: $(SHARE_JRE_DOC_SRC)/% |
|
524 |
$(process-doc-file) |
|
525 |
# Add $(TEXT_SUFFIX) suffix |
|
526 |
ifdef TEXT_SUFFIX |
|
527 |
$(JRE_IMAGE_DIR)/%$(TEXT_SUFFIX): $(SHARE_JRE_DOC_SRC)/% |
|
528 |
$(process-doc-file) |
|
529 |
endif |
|
530 |
# Removes LICENSE_VERSION or not |
|
531 |
ifdef LICENSE_VERSION |
|
532 |
$(JRE_IMAGE_DIR)/%: $(SHARE_JRE_DOC_SRC)/%$(LICENSE_VERSION) |
|
533 |
$(process-doc-file) |
|
534 |
$(JRE_IMAGE_DIR)/%64: $(SHARE_JRE_DOC_SRC)/%$(LICENSE_VERSION) |
|
535 |
$(process-doc-file) |
|
536 |
else |
|
537 |
$(JRE_IMAGE_DIR)/%64: $(SHARE_JRE_DOC_SRC)/% |
|
538 |
$(process-doc-file) |
|
539 |
endif |
|
540 |
||
541 |
# Differences tool |
|
542 |
DIRDIFF_JARFILE = $(BUILDTOOLJARDIR)/dirdiff.jar |
|
543 |
||
544 |
###################################################### |
|
545 |
# List of directories in classes directory that should NOT be in rt.jar |
|
546 |
###################################################### |
|
547 |
||
548 |
NOT_RT_JAR_LIST = $(ABS_TEMPDIR)/not_rt_jar.list |
|
549 |
||
550 |
$(NOT_RT_JAR_LIST): FRC |
|
551 |
$(prep-target) |
|
552 |
$(ECHO) "#\n" >> $@ |
|
553 |
$(ECHO) "# List of subdirectories not in include in rt.jar" >> $@ |
|
554 |
$(ECHO) "# Directories must contain trailing '/'." >> $@ |
|
555 |
$(ECHO) "com/sun/javadoc/" >> $@ |
|
556 |
$(ECHO) "com/sun/jdi/" >> $@ |
|
557 |
$(ECHO) "com/sun/jarsigner/" >> $@ |
|
558 |
$(ECHO) "com/sun/mirror/" >> $@ |
|
559 |
$(ECHO) "com/sun/source/" >> $@ |
|
560 |
$(ECHO) "com/sun/istack/internal/tools/" >> $@ |
|
561 |
$(ECHO) "com/sun/istack/internal/ws/" >> $@ |
|
562 |
$(ECHO) "META-INF/services/com.sun.jdi.connect.Connector" >> $@ |
|
563 |
$(ECHO) "META-INF/services/com.sun.jdi.connect.spi.TransportService" >> $@ |
|
564 |
$(ECHO) "META-INF/services/com.sun.mirror.apt.AnnotationProcessorFactory" >> $@ |
|
565 |
$(ECHO) "META-INF/services/com.sun.tools.xjc.Plugin" >> $@ |
|
566 |
$(ECHO) "com/sun/tools/" >> $@ |
|
567 |
$(ECHO) "sun/jvmstat/" >> $@ |
|
568 |
$(ECHO) "sun/rmi/rmic/" >> $@ |
|
569 |
$(ECHO) "sun/tools/asm/" >> $@ |
|
570 |
$(ECHO) "sun/tools/java/" >> $@ |
|
571 |
$(ECHO) "sun/tools/javac/" >> $@ |
|
684 | 572 |
$(ECHO) "com/sun/tools/classfile/" >> $@ |
573 |
$(ECHO) "com/sun/tools/javap/" >> $@ |
|
2 | 574 |
$(ECHO) "sun/tools/jconsole/" >> $@ |
575 |
$(ECHO) "sun/tools/jps/" >> $@ |
|
576 |
$(ECHO) "sun/tools/jstat/" >> $@ |
|
577 |
$(ECHO) "sun/tools/jstatd/" >> $@ |
|
578 |
$(ECHO) "sun/tools/native2ascii/" >> $@ |
|
579 |
$(ECHO) "sun/tools/serialver/" >> $@ |
|
580 |
$(ECHO) "sun/tools/tree/" >> $@ |
|
581 |
$(ECHO) "sun/tools/util/" >> $@ |
|
582 |
$(ECHO) "sun/security/tools/JarBASE64Encoder.class" >> $@ |
|
583 |
$(ECHO) "sun/security/tools/JarSigner.class" >> $@ |
|
584 |
$(ECHO) "sun/security/tools/JarSignerParameters.class" >> $@ |
|
585 |
$(ECHO) "sun/security/tools/JarSignerResources.class" >> $@ |
|
586 |
$(ECHO) "sun/security/tools/JarSignerResources_ja.class" >> $@ |
|
587 |
$(ECHO) "sun/security/tools/JarSignerResources_zh_CN.class" >> $@ |
|
588 |
$(ECHO) "sun/security/tools/SignatureFile\$$Block.class" >> $@ |
|
589 |
$(ECHO) "sun/security/tools/SignatureFile.class" >> $@ |
|
590 |
$(ECHO) "sun/security/tools/TimestampedSigner.class" >> $@ |
|
591 |
$(ECHO) "sun/security/provider/Sun.class" >> $@ |
|
592 |
$(ECHO) "sun/security/rsa/SunRsaSign.class" >> $@ |
|
593 |
$(ECHO) "sun/security/ssl/" >> $@ |
|
594 |
$(ECHO) "com/sun/net/ssl/internal/ssl/" >> $@ |
|
595 |
$(ECHO) "javax/crypto/" >> $@ |
|
596 |
$(ECHO) "sun/security/internal/" >> $@ |
|
597 |
$(ECHO) "com/sun/crypto/provider/" >> $@ |
|
598 |
$(ECHO) "META-INF/services/com.sun.tools.attach.spi.AttachProvider" >> $@ |
|
599 |
$(ECHO) "com/sun/tools/attach/" >> $@ |
|
600 |
$(ECHO) "org/relaxng/datatype/" >> $@ |
|
601 |
$(ECHO) "com/sun/codemodel/" >> $@ |
|
602 |
$(ECHO) "com/sun/xml/internal/dtdparser/" >> $@ |
|
603 |
$(ECHO) "com/sun/xml/internal/rngom/" >> $@ |
|
604 |
$(ECHO) "com/sun/xml/internal/xsom/" >> $@ |
|
605 |
$(ECHO) "com/sun/tools/script/shell/" >> $@ |
|
606 |
$(ECHO) "sun/tools/attach/" >> $@ |
|
607 |
$(ECHO) "sun/tools/jstack/" >> $@ |
|
608 |
$(ECHO) "sun/tools/jinfo/" >> $@ |
|
609 |
$(ECHO) "sun/tools/jmap/" >> $@ |
|
610 |
||
611 |
||
612 |
# File order list for rt.jar |
|
613 |
# - sun.applet is included, till hotjava stops relying on it. |
|
614 |
# - sun.tools.jar is included, needs cleanup. |
|
615 |
# |
|
616 |
REORDER_TEMPDIR=$(ABS_TEMPDIR)/reorder |
|
617 |
TOTAL_JAR_FILELIST=$(REORDER_TEMPDIR)/file_list |
|
618 |
||
619 |
JARFILELISTS_TEMPDIR=$(ABS_TEMPDIR)/jarfilelists |
|
620 |
RT_JAR_FILELIST=$(JARFILELISTS_TEMPDIR)/rt_jar_list |
|
621 |
RES_JAR_FILELIST=$(JARFILELISTS_TEMPDIR)/resources_jar_list |
|
622 |
||
623 |
JARREORDER_JARFILE = $(ABS_BUILDTOOLJARDIR)/jarreorder.jar |
|
624 |
||
625 |
$(TOTAL_JAR_FILELIST): $(JARREORDER_JARFILE) $(NOT_RT_JAR_LIST) |
|
626 |
$(prep-target) |
|
627 |
$(RM) $@.temp |
|
628 |
($(CD) $(CLASSBINDIR) && \ |
|
629 |
$(BOOT_JAVA_CMD) -jar $(JARREORDER_JARFILE) \ |
|
630 |
-o $@.temp $(ABS_LIBDIR)/classlist $(NOT_RT_JAR_LIST) . ) |
|
631 |
$(MV) $@.temp $@ |
|
632 |
@($(CD) $(CLASSBINDIR) && $(java-vm-cleanup)) |
|
633 |
||
634 |
# Create the rt.jar file list & non-class files list |
|
635 |
||
636 |
JARSPLIT_JARFILE = $(BUILDTOOLJARDIR)/jarsplit.jar |
|
637 |
||
638 |
$(RT_JAR_FILELIST) + $(RES_JAR_FILELIST): \ |
|
639 |
$(TOTAL_JAR_FILELIST) $(JARSPLIT_JARFILE) |
|
640 |
@$(RM) $(RT_JAR_FILELIST) $(RES_JAR_FILELIST) |
|
641 |
$(MKDIR) -p $(JARFILELISTS_TEMPDIR) |
|
642 |
$(BOOT_JAVA_CMD) -jar $(JARSPLIT_JARFILE) \ |
|
643 |
$(TOTAL_JAR_FILELIST) \ |
|
644 |
-o $(RT_JAR_FILELIST) $(RES_JAR_FILELIST) |
|
645 |
@$(java-vm-cleanup) |
|
646 |
||
647 |
# Create the manifest file. |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
648 |
JAR_MANIFEST_FILE=$(ABS_TEMPDIR)/manifest.tmp |
2 | 649 |
$(JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST) |
650 |
$(prep-target) |
|
5552 | 651 |
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \ |
652 |
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
|
653 |
$(MAINMANIFEST) >> $@ |
|
2 | 654 |
$(ECHO) >> $@ |
655 |
$(CAT) $(BEANMANIFEST) >> $@ |
|
656 |
||
657 |
# Create resources.jar containing non-class files |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
658 |
RESOURCES_JAR=$(ABS_TEMPDIR)/resources-orig.jar |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
659 |
$(RESOURCES_JAR): $(RES_JAR_FILELIST) $(JAR_MANIFEST_FILE) |
2 | 660 |
$(prep-target) |
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
661 |
$(CD) $(CLASSBINDIR) && \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
662 |
$(BOOT_JAR_CMD) c0mf $(JAR_MANIFEST_FILE) $@ \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
663 |
@$(RES_JAR_FILELIST) $(BOOT_JAR_JFLAGS) |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
664 |
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) |
2 | 665 |
|
666 |
# Create jsse.jar containing SunJSSE implementation classes |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
667 |
JSSE_JAR=$(ABS_TEMPDIR)/jsse-orig.jar |
2 | 668 |
$(JSSE_JAR): $(JAR_MANIFEST_FILE) |
669 |
$(prep-target) |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
670 |
$(CD) $(CLASSBINDIR) && \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
671 |
$(BOOT_JAR_CMD) c0mf $(JAR_MANIFEST_FILE) $@ \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
672 |
$(JSSE_CLASSES_DIRS) $(BOOT_JAR_JFLAGS) |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
673 |
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) |
2 | 674 |
|
675 |
# Create sec-bin.zip |
|
676 |
SEC_FILES_ZIP=$(ABS_TEMPDIR)/sec-bin.zip |
|
677 |
sec-files:: |
|
678 |
$(prep-target) |
|
679 |
$(RM) $(SEC_FILES_ZIP) |
|
680 |
$(CD) $(OUTPUTDIR) && \ |
|
681 |
$(ZIPEXE) -rq9 $(SEC_FILES_ZIP) $(SEC_FILES_DIRS) |
|
682 |
@$(java-vm-cleanup) |
|
683 |
||
684 |
# Create sec-windows-bin.zip |
|
685 |
SEC_FILES_WIN_ZIP=$(ABS_TEMPDIR)/sec-windows-bin.zip |
|
686 |
sec-files-win:: |
|
687 |
ifeq ($(PLATFORM), windows) |
|
688 |
$(prep-target) |
|
689 |
$(RM) $(SEC_FILES_WIN_ZIP) |
|
690 |
$(CD) $(OUTPUTDIR) && \ |
|
691 |
$(ZIPEXE) -rq9 $(SEC_FILES_WIN_ZIP) $(SEC_FILES_WIN_DIRS) |
|
692 |
@$(java-vm-cleanup) |
|
693 |
endif |
|
694 |
||
695 |
# Create JGSS files that contains the native Kerberos library |
|
696 |
JGSS_WIN32_FILES_ZIP=$(ABS_TEMPDIR)/jgss-windows-i586-bin.zip |
|
697 |
JGSS_WIN64_FILES_ZIP=$(ABS_TEMPDIR)/jgss-windows-x64-bin.zip |
|
698 |
jgss-files:: |
|
699 |
ifeq ($(PLATFORM), windows) |
|
700 |
$(prep-target) |
|
701 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
702 |
$(RM) $(JGSS_WIN32_FILES_ZIP) |
|
703 |
$(CD) $(OUTPUTDIR) && \ |
|
704 |
$(ZIPEXE) -rq9 $(JGSS_WIN32_FILES_ZIP) $(JGSS_FILES_DIRS) |
|
705 |
else |
|
706 |
$(RM) $(JGSS_WIN64_FILES_ZIP) |
|
707 |
$(CD) $(OUTPUTDIR) && \ |
|
708 |
$(ZIPEXE) -rq9 $(JGSS_WIN64_FILES_ZIP) $(JGSS_FILES_DIRS) |
|
709 |
endif |
|
710 |
@$(java-vm-cleanup) |
|
711 |
endif |
|
712 |
||
713 |
# Create rt.jar |
|
714 |
RT_JAR=$(ABS_TEMPDIR)/rt-orig.jar |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
715 |
$(RT_JAR): $(RT_JAR_FILELIST) $(JAR_MANIFEST_FILE) |
2 | 716 |
$(prep-target) |
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
717 |
$(CD) $(CLASSBINDIR) && \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
718 |
$(BOOT_JAR_CMD) c0mf $(JAR_MANIFEST_FILE) $@ \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
719 |
@$(RT_JAR_FILELIST) $(BOOT_JAR_JFLAGS) |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
720 |
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) |
2 | 721 |
|
722 |
# Meta-index construction to make core class loaders lazier |
|
723 |
||
724 |
BUILDMETAINDEX_JARFILE = $(ABS_BUILDTOOLJARDIR)/buildmetaindex.jar |
|
725 |
||
726 |
###################################################### |
|
727 |
# JRE Image |
|
728 |
###################################################### |
|
729 |
||
730 |
initial-image-jre-setup: |
|
731 |
$(RM) -r $(JRE_IMAGE_DIR) |
|
732 |
$(MKDIR) -p $(JRE_IMAGE_DIR) |
|
733 |
||
734 |
# 64-bit solaris jre image contains only the 64-bit add-on files. |
|
735 |
initial-image-jre-sol64:: initial-image-jre-setup \ |
|
736 |
$(JRE_LICENSES) $(JRE64_LICENSES) |
|
737 |
@# Use tar instead of cp to preserve the symbolic links |
|
738 |
for dir in bin lib ; do \ |
|
739 |
( $(CD) $(OUTPUTDIR) && \ |
|
740 |
$(TAR) cf - `$(FIND) $$dir -name '$(ARCH)' -print` | \ |
|
741 |
($(CD) $(JRE_IMAGE_DIR) && $(TAR) xf -) ) ; \ |
|
742 |
done |
|
743 |
@# Remove some files from the jre area |
|
744 |
for t in $(NOTJRETOOLS) ; do \ |
|
745 |
$(RM) $(JRE_IMAGE_DIR)/bin$(ISA_DIR)/$$t ; \ |
|
746 |
done |
|
747 |
for l in $(NOTJRELIBS) ; do \ |
|
748 |
$(RM) $(JRE_IMAGE_DIR)/lib/$$l ; \ |
|
749 |
done |
|
750 |
$(RM) `$(FIND) $(JRE_IMAGE_DIR)/lib -name 'orb.idl'` |
|
751 |
$(RM) `$(FIND) $(JRE_IMAGE_DIR)/lib -name 'ir.idl'` |
|
752 |
||
753 |
# Construct an initial jre image (initial jdk jre) no trimming or stripping |
|
5381
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
754 |
# See "initial-image-jdk-setup" for an explanation of the rm of |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
755 |
# drive names like C: |
2 | 756 |
initial-image-jre:: initial-image-jre-setup \ |
757 |
$(JRE_LICENSES) $(JRE_DOCFILES) \ |
|
758 |
$(RT_JAR) $(RESOURCES_JAR) $(JSSE_JAR) \ |
|
759 |
$(BUILDMETAINDEX_JARFILE) |
|
760 |
@# Copy in bin directory |
|
761 |
$(CD) $(OUTPUTDIR) && $(FIND) bin -depth | $(CPIO) -pdum $(JRE_IMAGE_DIR) |
|
762 |
@# CTE plugin security change require new empty directory lib/applet |
|
763 |
$(MKDIR) -p $(JRE_IMAGE_DIR)/lib/applet |
|
764 |
@# Copy in lib directory |
|
765 |
$(CD) $(OUTPUTDIR) && $(FIND) lib -depth | $(CPIO) -pdum $(JRE_IMAGE_DIR) |
|
5381
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
766 |
ifeq ($(USING_CYGWIN),true) |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
767 |
$(RM) -rf $(JRE_IMAGE_DIR)/[A-Za-z]: |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
768 |
$(RM) -rf $(OUTPUTDIR)/[A-Za-z]: |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
769 |
endif |
2 | 770 |
@# Make sure all directories are read/execute for everyone |
771 |
$(CHMOD) a+rx `$(FIND) $(JRE_IMAGE_DIR) -type d` |
|
772 |
@# Remove some files from the jre area |
|
773 |
for t in $(NOTJRETOOLS) ; do \ |
|
774 |
$(RM) $(JRE_IMAGE_DIR)/bin$(ISA_DIR)/$$t ; \ |
|
775 |
done |
|
776 |
for l in $(NOTJRELIBS) ; do \ |
|
777 |
$(RM) $(JRE_IMAGE_DIR)/lib/$$l ; \ |
|
778 |
done |
|
779 |
@# Remove orb.idl and ir.idl from jre |
|
780 |
$(FIND) $(JRE_IMAGE_DIR)/lib -name 'orb.idl' -exec $(RM) \{} \; |
|
781 |
$(FIND) $(JRE_IMAGE_DIR)/lib -name 'ir.idl' -exec $(RM) \{} \; |
|
782 |
@# Copy in rt.jar & resources.jar file |
|
783 |
$(CP) $(RT_JAR) $(JRE_IMAGE_DIR)/lib/rt.jar |
|
784 |
$(CP) $(RESOURCES_JAR) $(JRE_IMAGE_DIR)/lib/resources.jar |
|
785 |
$(CP) $(JSSE_JAR) $(JRE_IMAGE_DIR)/lib/jsse.jar |
|
786 |
@# Generate meta-index to make boot and extension class loaders lazier |
|
787 |
$(CD) $(JRE_IMAGE_DIR)/lib && \ |
|
788 |
$(BOOT_JAVA_CMD) -jar $(BUILDMETAINDEX_JARFILE) \ |
|
789 |
-o meta-index *.jar |
|
790 |
@$(CD) $(JRE_IMAGE_DIR)/lib && $(java-vm-cleanup) |
|
791 |
$(CD) $(JRE_IMAGE_DIR)/lib/ext && \ |
|
792 |
$(BOOT_JAVA_CMD) -jar $(BUILDMETAINDEX_JARFILE) \ |
|
793 |
-o meta-index *.jar |
|
794 |
@$(CD) $(JRE_IMAGE_DIR)/lib/ext && $(java-vm-cleanup) |
|
795 |
ifeq ($(PLATFORM), windows) |
|
796 |
@# Remove certain *.lib files |
|
797 |
$(CD) $(JRE_IMAGE_DIR)/lib && \ |
|
798 |
$(RM) java.$(LIB_SUFFIX) jvm.$(LIB_SUFFIX) \ |
|
799 |
hpi.$(LIB_SUFFIX) awt.$(LIB_SUFFIX) jawt.$(LIB_SUFFIX) |
|
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2763
diff
changeset
|
800 |
ifeq ($(ARCH_DATA_MODEL), 32) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2763
diff
changeset
|
801 |
@# The Java Kernel JRE image ships with a special VM. It is not included |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2763
diff
changeset
|
802 |
@# in the full JRE image, so remove it. Also, is it only for 32-bit windows. |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2763
diff
changeset
|
803 |
$(CD) $(JRE_IMAGE_DIR)/bin && $(RM) -r kernel |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2763
diff
changeset
|
804 |
endif |
2 | 805 |
endif # Windows |
806 |
ifneq ($(PLATFORM), windows) |
|
807 |
$(call copy-man-pages,$(JRE_IMAGE_DIR),$(JRE_MAN_PAGES)) |
|
808 |
endif # !windows |
|
809 |
||
810 |
# Trim out any extra files not for the jre shipment but wanted in the jdk jre. |
|
811 |
# (Note the jdk WILL want the jre image before this trimming) |
|
812 |
# Removes server VM on Windows 32bit. |
|
813 |
# Remove certain shared libraries that should not be in the jre image |
|
814 |
# but should be in the jdk jre image. |
|
815 |
trim-image-jre:: |
|
816 |
ifeq ($(PLATFORM), windows) |
|
817 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
818 |
$(RM) -r $(JRE_IMAGE_DIR)/bin/server |
|
819 |
endif |
|
820 |
ifdef NOTJRE_SHARED_LIBS |
|
821 |
for l in $(NOTJRE_SHARED_LIBS) ; do \ |
|
822 |
$(RM) $(JRE_IMAGE_DIR)/bin/$$l ; \ |
|
823 |
done ; |
|
824 |
endif |
|
825 |
else # PLATFORM |
|
826 |
ifdef NOTJRE_SHARED_LIBS |
|
827 |
for l in $(NOTJRE_SHARED_LIBS) ; do \ |
|
828 |
$(RM) $(JRE_IMAGE_DIR)/lib/$(LIBARCH)/$$l ; \ |
|
829 |
done ; |
|
830 |
endif |
|
831 |
endif # PLATFORM |
|
832 |
||
833 |
# Get list of all Elf files in the jre |
|
834 |
JRE_ELF_LIST=$(TEMPDIR)/jre-elf-files.list |
|
835 |
$(JRE_ELF_LIST): |
|
836 |
ifneq ($(PLATFORM), windows) |
|
837 |
$(RM) $@ |
|
838 |
$(FIND) $(JRE_IMAGE_DIR)/lib -type f -name \*.$(LIB_SUFFIX) >> $@ |
|
839 |
$(FILE) `$(FIND) $(JRE_IMAGE_DIR)/bin -type f -name \*$(EXE_SUFFIX)` \ |
|
840 |
| $(EGREP) 'ELF' | $(CUT) -d':' -f1 >> $@ |
|
841 |
endif |
|
842 |
||
843 |
# Post process the image (strips and mcs on Elf files we are shipping) |
|
844 |
# (Note the jdk WILL want the jre image before this processing) |
|
845 |
process-image-jre:: $(JRE_ELF_LIST) |
|
846 |
ifneq ($(POST_STRIP_PROCESS), ) |
|
847 |
for f in `$(CAT) $(JRE_ELF_LIST)`; do \ |
|
848 |
$(CHMOD) u+w $${f}; \ |
|
849 |
$(ECHO) $(POST_STRIP_PROCESS) $${f}; \ |
|
850 |
$(POST_STRIP_PROCESS) $${f}; \ |
|
851 |
$(CHMOD) go-w $${f}; \ |
|
852 |
done |
|
853 |
endif |
|
854 |
ifneq ($(POST_MCS_PROCESS), ) |
|
855 |
for f in `$(CAT) $(JRE_ELF_LIST)`; do \ |
|
856 |
$(CHMOD) u+w $${f}; \ |
|
857 |
$(ECHO) $(POST_MCS_PROCESS) $${f}; \ |
|
858 |
$(POST_MCS_PROCESS) $${f}; \ |
|
859 |
$(CHMOD) go-w $${f}; \ |
|
860 |
done |
|
861 |
endif |
|
862 |
$(RM) $(JRE_ELF_LIST) |
|
863 |
||
864 |
###################################################### |
|
865 |
# JDK Image |
|
866 |
###################################################### |
|
867 |
# Note: cpio ($(CPIO)) sometimes leaves directories without rx access. |
|
868 |
||
5381
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
869 |
# REMIND: the $(RM) calls for patterns like c:, d: following $(CPIO) |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
870 |
# are because the 1.7.x versions of cygwin's cpio command drops these |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
871 |
# in the working directory if the output path begins with that pattern |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
872 |
# The one for the output jre subdirectory gets there because cpio sees its |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
873 |
# own dropping in the input jre subdirectory. Need to remove both of these. |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
874 |
# We can remove these RM's if someone figures out how to stop cpio from |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
875 |
# leaving these there. |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
876 |
# Note that its a real problem not because this directory can end up in the |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
877 |
# bundle (I think it won't since it not in bin or lib and those are the |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
878 |
# only places from which we copy everything), but because the presence |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
879 |
# of this file causes cygwin's find to bomb out, thus breaking the build |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
880 |
# in "install". |
2 | 881 |
initial-image-jdk-setup: |
882 |
$(RM) -r $(JDK_IMAGE_DIR) |
|
883 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/jre |
|
884 |
($(CD) $(JRE_IMAGE_DIR) && $(FIND) . -depth -print \ |
|
885 |
| $(CPIO) -pdum $(JDK_IMAGE_DIR)/jre ) |
|
5381
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
886 |
ifeq ($(USING_CYGWIN),true) |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
887 |
$(RM) -rf $(JRE_IMAGE_DIR)/[A-Za-z]: |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
888 |
$(RM) -rf $(JDK_IMAGE_DIR)/jre/[A-Za-z]: |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
889 |
endif |
2 | 890 |
$(RM) -rf $(JDK_IMAGE_DIR)/jre/man |
891 |
$(CHMOD) a+rx `$(FIND) $(JDK_IMAGE_DIR) -type d` |
|
892 |
||
893 |
initial-image-jdk64-bindemos: |
|
894 |
for dir in bin demo ; do \ |
|
895 |
( $(CD) $(OUTPUTDIR) && \ |
|
896 |
$(TAR) cf - `$(FIND) $$dir -name '$(LIBARCH)' -print` | \ |
|
897 |
($(CD) $(JDK_IMAGE_DIR) && $(TAR) xf -) ) ; \ |
|
898 |
done |
|
899 |
||
900 |
# Solaris 64 bit image is special |
|
901 |
initial-image-jdk-sol64:: initial-image-jdk-setup \ |
|
902 |
initial-image-jdk64-bindemos \ |
|
903 |
$(JDK_LICENSES) $(JDK64_LICENSES) |
|
904 |
||
905 |
# DB files to add |
|
906 |
ifdef OPENJDK |
|
907 |
||
908 |
initial-image-jdk-db: |
|
909 |
||
910 |
else |
|
911 |
||
912 |
# Create the list of db *.zip files to bundle with jdk |
|
913 |
ABS_DB_PATH :=$(call FullPath,$(CLOSED_SHARE_SRC)/db) |
|
914 |
DB_ZIP_LIST = $(shell $(LS) $(ABS_DB_PATH)/*.zip 2>/dev/null) |
|
915 |
||
916 |
initial-image-jdk-db: $(DB_ZIP_LIST) |
|
917 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/db |
|
918 |
for d in $(DB_ZIP_LIST); do \ |
|
919 |
($(CD) $(JDK_IMAGE_DIR)/db && $(UNZIP) -o $$d); \ |
|
920 |
done |
|
921 |
||
922 |
endif |
|
923 |
||
924 |
# Standard jdk image |
|
925 |
initial-image-jdk:: initial-image-jdk-setup \ |
|
926 |
initial-image-jdk-db \ |
|
927 |
$(JDK_LICENSES) $(JDK_DOCFILES) |
|
928 |
$(MKDIR) $(JDK_IMAGE_DIR)/lib |
|
929 |
@# |
|
930 |
@# Copy in the jars in lib that only belong in the JDK |
|
931 |
@# |
|
932 |
for l in $(NOTJRELIBS); do \ |
|
933 |
if [ -r $(LIBDIR)/$$l ]; then \ |
|
934 |
$(CP) $(LIBDIR)/$$l $(JDK_IMAGE_DIR)/lib; \ |
|
935 |
fi; \ |
|
936 |
done |
|
937 |
ifeq ($(PLATFORM), windows) |
|
938 |
@# |
|
939 |
@# lib/ |
|
940 |
@# |
|
941 |
$(CP) $(LIBDIR)/$(LIB_PREFIX)jvm.$(LIB_SUFFIX) $(JDK_IMAGE_DIR)/lib |
|
942 |
$(CP) $(LIBDIR)/$(LIB_PREFIX)jawt.$(LIB_SUFFIX) $(JDK_IMAGE_DIR)/lib |
|
943 |
@# |
|
944 |
@# bin/ |
|
945 |
@# |
|
946 |
@# copy all EXE files and only certain DLL files from BINDIR |
|
947 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/bin |
|
948 |
$(CP) $(BINDIR)/*$(EXE_SUFFIX) $(JDK_IMAGE_DIR)/bin |
|
949 |
$(CP) $(BINDIR)/jli.$(LIBRARY_SUFFIX) $(JDK_IMAGE_DIR)/bin |
|
5381
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
950 |
ifeq ($(COMPILER_VERSION), VS2010) |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
951 |
$(CP) $(BINDIR)/msvc*100.$(LIBRARY_SUFFIX) $(JDK_IMAGE_DIR)/bin |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
952 |
endif |
2 | 953 |
ifeq ($(ARCH_DATA_MODEL), 32) |
954 |
ifeq ($(COMPILER_VERSION), VS2003) |
|
955 |
$(CP) $(BINDIR)/msvc*71.$(LIBRARY_SUFFIX) $(JDK_IMAGE_DIR)/bin |
|
956 |
endif |
|
957 |
endif |
|
958 |
else # PLATFORM |
|
959 |
@# |
|
960 |
@# bin/ |
|
961 |
@# |
|
962 |
($(CD) $(BINDIR)/.. && $(TAR) cf - \ |
|
963 |
`$(FIND) bin \( -type f -o -type l \) -print `) | \ |
|
964 |
($(CD) $(JDK_IMAGE_DIR) && $(TAR) xf -) |
|
965 |
endif # PLATFORM |
|
966 |
@# |
|
967 |
@# files that might not exist need to be touched. |
|
968 |
@# |
|
969 |
$(TOUCH) $(CLASSBINDIR)/META-INF/services/com.sun.tools.xjc.Plugin |
|
970 |
@# |
|
971 |
@# lib/tools.jar |
|
972 |
@# |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
973 |
$(CD) $(CLASSBINDIR) && \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
974 |
$(BOOT_JAR_CMD) c0f $(ABS_LIBDIR)/tools.jar \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
975 |
$(TOOLS) $(BOOT_JAR_JFLAGS) |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
976 |
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) |
2 | 977 |
$(CP) $(LIBDIR)/tools.jar $(JDK_IMAGE_DIR)/lib/tools.jar |
978 |
@# |
|
979 |
@# lib/ct.sym |
|
980 |
@# |
|
981 |
$(MKDIR) -p $(OUTPUTDIR)/symbols/META-INF/sym |
|
982 |
$(JAVAC_CMD) -XDprocess.packages -proc:only \ |
|
983 |
-processor com.sun.tools.javac.sym.CreateSymbols \ |
|
984 |
-Acom.sun.tools.javac.sym.Jar=$(RT_JAR) \ |
|
985 |
-Acom.sun.tools.javac.sym.Dest=$(OUTPUTDIR)/symbols/META-INF/sym/rt.jar \ |
|
986 |
$(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) |
|
987 |
$(BOOT_JAR_CMD) c0f $(LIBDIR)/ct.sym \ |
|
916
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
715
diff
changeset
|
988 |
-C $(OUTPUTDIR)/symbols META-INF $(BOOT_JAR_JFLAGS) |
2 | 989 |
@$(java-vm-cleanup) |
990 |
$(CP) $(LIBDIR)/ct.sym $(JDK_IMAGE_DIR)/lib/ct.sym |
|
991 |
@# |
|
992 |
@# CORBA supported orb.idl and ir.idl should be copied to lib |
|
993 |
@# |
|
994 |
$(CP) $(LIBDIR)/orb.idl $(JDK_IMAGE_DIR)/lib/orb.idl |
|
995 |
$(CP) $(LIBDIR)/ir.idl $(JDK_IMAGE_DIR)/lib/ir.idl |
|
996 |
ifeq ($(PLATFORM), linux) |
|
997 |
@# |
|
998 |
@# on Linux copy jexec from jre/lib to /lib |
|
999 |
@# |
|
1000 |
$(CP) $(LIBDIR)/jexec $(JDK_IMAGE_DIR)/lib/jexec |
|
1001 |
endif # PLATFORM |
|
1002 |
@# |
|
1003 |
@# src.zip |
|
1004 |
@# |
|
1005 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/src |
|
1006 |
@# |
|
1007 |
@# The '*-*' pattern in the find command excludes files named with dashes, |
|
1008 |
@# such as the java.nio templates for generated classes |
|
1009 |
@# |
|
1010 |
@# The Linux 'tar' command cannot handle the huge command line argument |
|
1011 |
@# generated by the more efficient solaris/windows method of copying files. |
|
1012 |
@# So for Linux, make use of the -T option (like Solaris' -I option) of |
|
1013 |
@# obtaining the list of files from a file. MKS tar has no such option. |
|
1014 |
ifeq ($(PLATFORM), linux) |
|
1015 |
for d in $(SOURCE_DIRS); do \ |
|
1016 |
$(RM) $(ABS_TEMPDIR)/src-files.list; \ |
|
1017 |
($(CD) $$d && \ |
|
1018 |
for sd in $(SOURCES) ; do \ |
|
1019 |
if [ -d $$sd ] ; then \ |
|
1020 |
$(FIND) $$sd $(SOURCE_FILES_filter) \ |
|
1021 |
-name '*.java' -print \ |
|
1022 |
>> $(ABS_TEMPDIR)/src-files.list ; \ |
|
1023 |
fi; \ |
|
1024 |
done ; \ |
|
1025 |
) ; \ |
|
1026 |
if [ -f $(ABS_TEMPDIR)/src-files.list ] ; then \ |
|
1027 |
($(CD) $$d && $(TAR) cf - -T $(ABS_TEMPDIR)/src-files.list ) \ |
|
1028 |
| ($(CD) $(JDK_IMAGE_DIR)/src && $(TAR) xf -); \ |
|
1029 |
fi; \ |
|
1030 |
done |
|
1031 |
else |
|
1032 |
for d in $(SOURCE_DIRS); do \ |
|
1033 |
$(RM) $(ABS_TEMPDIR)/src-files.list; \ |
|
1034 |
($(CD) $$d && \ |
|
1035 |
for sd in $(SOURCES) ; do \ |
|
1036 |
if [ -d $$sd ] ; then \ |
|
1037 |
$(FIND) $$sd $(SOURCE_FILES_filter) \ |
|
1038 |
-name '*.java' -print \ |
|
1039 |
>> $(ABS_TEMPDIR)/src-files.list ; \ |
|
1040 |
fi; \ |
|
1041 |
done ; \ |
|
1042 |
) ; \ |
|
1043 |
if [ -f $(ABS_TEMPDIR)/src-files.list ] ; then \ |
|
1044 |
($(CD) $$d && $(TAR) cf - `$(CAT) $(ABS_TEMPDIR)/src-files.list`) \ |
|
1045 |
| ($(CD) $(JDK_IMAGE_DIR)/src && $(TAR) xf -); \ |
|
1046 |
fi; \ |
|
1047 |
done |
|
1048 |
endif |
|
1049 |
$(RM) $(ABS_TEMPDIR)/src-files.list |
|
1050 |
$(CHMOD) -R +w $(JDK_IMAGE_DIR)/src |
|
1051 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/src/launcher |
|
1052 |
$(CP) $(SHARE_SRC)/bin/java.c $(JDK_IMAGE_DIR)/src/launcher |
|
1053 |
$(CP) $(SHARE_SRC)/bin/java.h $(JDK_IMAGE_DIR)/src/launcher |
|
1054 |
$(CP) $(SHARE_SRC)/bin/manifest_info.h $(JDK_IMAGE_DIR)/src/launcher |
|
1055 |
$(CP) $(SHARE_SRC)/bin/parse_manifest.c $(JDK_IMAGE_DIR)/src/launcher |
|
1056 |
$(CP) $(SHARE_SRC)/bin/version_comp.c $(JDK_IMAGE_DIR)/src/launcher |
|
1057 |
$(CP) $(SHARE_SRC)/bin/version_comp.h $(JDK_IMAGE_DIR)/src/launcher |
|
1058 |
$(CP) $(SHARE_SRC)/bin/wildcard.h $(JDK_IMAGE_DIR)/src/launcher |
|
1059 |
$(CP) $(SHARE_SRC)/bin/wildcard.c $(JDK_IMAGE_DIR)/src/launcher |
|
1060 |
$(CP) $(SHARE_SRC)/bin/jli_util.h $(JDK_IMAGE_DIR)/src/launcher |
|
1061 |
$(CP) $(SHARE_SRC)/bin/jli_util.c $(JDK_IMAGE_DIR)/src/launcher |
|
1062 |
$(CP) $(SHARE_SRC)/bin/splashscreen_stubs.c $(JDK_IMAGE_DIR)/src/launcher |
|
1063 |
$(CP) $(SHARE_SRC)/bin/splashscreen.h $(JDK_IMAGE_DIR)/src/launcher |
|
1064 |
$(CP) $(PLATFORM_SRC)/bin/java_md.c $(JDK_IMAGE_DIR)/src/launcher |
|
1065 |
$(CP) $(PLATFORM_SRC)/bin/java_md.h $(JDK_IMAGE_DIR)/src/launcher |
|
1066 |
$(CD) $(JDK_IMAGE_DIR)/src && $(ZIPEXE) -qr ../src.zip * |
|
1067 |
$(RM) -r $(JDK_IMAGE_DIR)/src |
|
1068 |
@# |
|
1069 |
@# demo, include |
|
1070 |
@# |
|
1071 |
$(CP) -r -f $(DEMODIR) $(JDK_IMAGE_DIR) |
|
1072 |
$(CP) -r -f $(SAMPLEDIR) $(JDK_IMAGE_DIR) |
|
1073 |
$(CP) -r $(INCLUDEDIR) $(JDK_IMAGE_DIR) |
|
1074 |
@# |
|
1075 |
@# Swing BeanInfo generation |
|
1076 |
@# |
|
1077 |
$(CD) javax/swing/beaninfo && $(MAKE) swing-1.2-beans |
|
1078 |
ifneq ($(PLATFORM), windows) |
|
1079 |
$(call copy-man-pages,$(JDK_IMAGE_DIR),$(JDK_MAN_PAGES)) |
|
1080 |
endif # !windows |
|
1081 |
||
1082 |
# Trim out files we don't want to ship |
|
1083 |
trim-image-jdk:: |
|
1084 |
@# Remove tools that should not be part of SDK. |
|
1085 |
for t in $(NOTJDKTOOLS); do \ |
|
1086 |
$(RM) $(JDK_IMAGE_DIR)/bin/$${t}$(EXE_SUFFIX) \ |
|
1087 |
$(JDK_IMAGE_DIR)/bin/*/native_threads/$${t}$(EXE_SUFFIX); \ |
|
1088 |
done |
|
1089 |
||
1090 |
# Get list of Elf files in the jdk |
|
1091 |
JDK_ELF_LIST=$(TEMPDIR)/jdk-elf-files.list |
|
1092 |
$(JDK_ELF_LIST): |
|
1093 |
ifneq ($(PLATFORM), windows) |
|
1094 |
$(RM) $@ |
|
1095 |
$(FIND) $(JDK_IMAGE_DIR)/jre/lib -type f -name \*.$(LIB_SUFFIX) >> $@ |
|
1096 |
$(FILE) `$(FIND) $(JDK_IMAGE_DIR)/jre/bin -type f -name \*$(EXE_SUFFIX)` \ |
|
1097 |
| $(EGREP) 'ELF' | $(CUT) -d':' -f1 >> $@ |
|
1098 |
file `$(FIND) $(JDK_IMAGE_DIR)/bin -type f -name \*$(EXE_SUFFIX)` \ |
|
1099 |
| $(EGREP) 'ELF' | $(CUT) -d':' -f1 >> $@ |
|
1100 |
endif |
|
1101 |
||
1102 |
# Post process the image (strips and mcs on files we are shipping) |
|
1103 |
process-image-jdk:: $(JDK_ELF_LIST) |
|
1104 |
ifneq ($(POST_STRIP_PROCESS), ) |
|
1105 |
for f in `$(CAT) $(JDK_ELF_LIST)`; do \ |
|
1106 |
$(CHMOD) u+w $${f}; \ |
|
1107 |
$(ECHO) $(POST_STRIP_PROCESS) $${f}; \ |
|
1108 |
$(POST_STRIP_PROCESS) $${f}; \ |
|
1109 |
$(CHMOD) go-w $${f}; \ |
|
1110 |
done |
|
1111 |
endif |
|
1112 |
ifneq ($(POST_MCS_PROCESS), ) |
|
1113 |
for f in `$(CAT) $(JDK_ELF_LIST)`; do \ |
|
1114 |
$(CHMOD) u+w $${f}; \ |
|
1115 |
$(ECHO) $(POST_MCS_PROCESS) $${f}; \ |
|
1116 |
$(POST_MCS_PROCESS) $${f}; \ |
|
1117 |
$(CHMOD) go-w $${f}; \ |
|
1118 |
done |
|
1119 |
endif |
|
1120 |
$(RM) $(JDK_ELF_LIST) |
|
1121 |
||
1122 |
################################################################### |
|
1123 |
# What do we compare against |
|
1124 |
################################################################### |
|
1125 |
||
1126 |
# The temporary files and areas created |
|
1127 |
TEMP_PREV_JRE_BASE_DIR=$(TEMPDIR)/previous_jre |
|
1128 |
TEMP_PREV_JDK_BASE_DIR=$(TEMPDIR)/previous_jdk |
|
1129 |
TEMP_PREV_JRE_COMPARISON=$(TEMP_PREV_JRE_BASE_DIR)/previous_jre_comparison.txt |
|
1130 |
TEMP_PREV_JDK_COMPARISON=$(TEMP_PREV_JDK_BASE_DIR)/previous_jdk_comparison.txt |
|
1131 |
TEMP_PREV_JRE_IMAGE_DIR=$(TEMP_PREV_JRE_BASE_DIR)/jre$(PREVIOUS_JDK_VERSION) |
|
1132 |
TEMP_PREV_JDK_IMAGE_DIR=$(TEMP_PREV_JDK_BASE_DIR)/jdk$(PREVIOUS_JDK_VERSION) |
|
1133 |
||
1134 |
# unbundle(sourcedir,bundlename,destdir) |
|
1135 |
# logic is slightly different if a .tar.gz file (linux) |
|
1136 |
define unbundle |
|
1137 |
$(RM) -r $3 |
|
1138 |
$(MKDIR) -p $3 |
|
1139 |
$(CP) $1 $3 |
|
1140 |
if [ "`$(BASENAME) $2 .gz`" != "$2" ] ; then \ |
|
1141 |
( $(CD) $3 && ( $(GUNZIP) -dc $2 | $(TAR) xf - ) && $(RM) $2 ); \ |
|
1142 |
else \ |
|
1143 |
( $(CD) $3 && $(TAR) xf $2 && $(RM) $2 ); \ |
|
1144 |
fi |
|
1145 |
( $(CD) $3 && $(RM) $2 ) |
|
1146 |
endef |
|
1147 |
||
1148 |
# In general, ignore the fastdebug tree, and changes in the demo and sample area |
|
1149 |
COMPARE_FILTER = | $(EGREP) -v /fastdebug/ | $(EGREP) -v /demo/ | $(EGREP) -v /sample/ |
|
1150 |
||
1151 |
# If a previuous image is provided, no need to install it. |
|
916
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
715
diff
changeset
|
1152 |
ifdef PREVIOUS_RELEASE_IMAGE |
2 | 1153 |
|
1154 |
# Just use the pre-installed images |
|
916
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
715
diff
changeset
|
1155 |
PREV_JRE_IMAGE_DIR=$(PREVIOUS_RELEASE_IMAGE)/jre |
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
715
diff
changeset
|
1156 |
PREV_JDK_IMAGE_DIR=$(PREVIOUS_RELEASE_IMAGE) |
2 | 1157 |
|
1158 |
else |
|
1159 |
||
1160 |
# Use the temp images we will create |
|
1161 |
PREV_JRE_IMAGE_DIR=$(TEMP_PREV_JRE_IMAGE_DIR) |
|
1162 |
PREV_JDK_IMAGE_DIR=$(TEMP_PREV_JDK_IMAGE_DIR) |
|
1163 |
||
1164 |
# Force the installation in this case |
|
1165 |
compare-image:: install-previous-sanity install-previous-jre install-previous-jdk |
|
1166 |
||
1167 |
# Unbundle the jre |
|
1168 |
$(TEMP_PREV_JRE_IMAGE_DIR)/bin/java$(EXE_SUFFIX): $(PREVIOUS_JRE_BUNDLE) |
|
1169 |
$(call unbundle,$(PREVIOUS_JRE_BUNDLE),$(PREVIOUS_JRE_FILE),$(TEMP_PREV_JRE_BASE_DIR)) |
|
1170 |
$(TOUCH) $@ |
|
1171 |
||
1172 |
# Unbundle the jdk |
|
1173 |
$(TEMP_PREV_JDK_IMAGE_DIR)/bin/java$(EXE_SUFFIX): $(PREVIOUS_JDK_BUNDLE) |
|
1174 |
$(call unbundle,$(PREVIOUS_JDK_BUNDLE),$(PREVIOUS_JDK_FILE),$(TEMP_PREV_JDK_BASE_DIR)) |
|
1175 |
$(TOUCH) $@ |
|
1176 |
||
1177 |
endif |
|
1178 |
||
1179 |
# Make sure all images have a java in them (used as the touch file) |
|
1180 |
install-previous-sanity: |
|
1181 |
@if [ ! -f $(PREVIOUS_JRE_BUNDLE) ]; then \ |
|
1182 |
$(ECHO) "ERROR: You do not have access to the previous java release jre bundles. \n" \ |
|
1183 |
" Please check your access to \n" \ |
|
1184 |
" $(PREVIOUS_JRE_BUNDLE) \n" \ |
|
1185 |
" and/or check your value of ALT_PREVIOUS_RELEASE_PATH or ALT_PREVIOUS_JRE_FILE \n" \ |
|
1186 |
" This will affect you if you build the images target. \n" \ |
|
1187 |
"" >> $(ERROR_FILE) ; \ |
|
1188 |
fi |
|
1189 |
@if [ ! -f $(PREVIOUS_JDK_BUNDLE) ]; then \ |
|
1190 |
$(ECHO) "ERROR: You do not have access to the previous java release sdk bundles. \n" \ |
|
1191 |
" Please check your access to \n" \ |
|
1192 |
" $(PREVIOUS_sdk_BUNDLE) \n" \ |
|
1193 |
" and/or check your value of ALT_PREVIOUS_RELEASE_PATH or ALT_PREVIOUS_JDK_FILE. \n" \ |
|
1194 |
" This will affect you if you build the images target. \n" \ |
|
1195 |
"" >> $(ERROR_FILE) ; \ |
|
1196 |
fi |
|
1197 |
install-previous-jre: $(PREV_JRE_IMAGE_DIR)/bin/java$(EXE_SUFFIX) |
|
1198 |
install-previous-jdk: $(PREV_JDK_IMAGE_DIR)/bin/java$(EXE_SUFFIX) |
|
1199 |
||
1200 |
# Create the jre comparison report |
|
1201 |
$(TEMP_PREV_JRE_COMPARISON): install-previous-jre $(DIRDIFF_JARFILE) |
|
1202 |
$(prep-target) |
|
1203 |
$(BOOT_JAVA_CMD) -jar $(DIRDIFF_JARFILE) \ |
|
1204 |
$(PREV_JRE_IMAGE_DIR) $(JRE_IMAGE_DIR) | $(SORT) > $@ |
|
1205 |
@$(java-vm-cleanup) |
|
1206 |
||
1207 |
# Create the jdk comparison report |
|
1208 |
$(TEMP_PREV_JDK_COMPARISON): install-previous-jdk $(DIRDIFF_JARFILE) |
|
1209 |
$(prep-target) |
|
1210 |
$(BOOT_JAVA_CMD) -jar $(DIRDIFF_JARFILE) \ |
|
1211 |
$(PREV_JDK_IMAGE_DIR) $(JDK_IMAGE_DIR) | $(SORT) > $@ |
|
1212 |
@$(java-vm-cleanup) |
|
1213 |
||
1214 |
# Clean up names in the messages printed out |
|
1215 |
CAT_FILTER = $(SED) -e "s@$(JDK_IMAGE_DIR)@JDK_IMAGE@g" \ |
|
1216 |
-e "s@$(JRE_IMAGE_DIR)@JRE_IMAGE@g" |
|
1217 |
||
1218 |
# Report on the jre image comparison |
|
1219 |
compare-image-jre: $(TEMP_PREV_JRE_COMPARISON) |
|
1220 |
@$(ECHO) "JRE Image Comparison to version $(PREVIOUS_JDK_VERSION)" |
|
1221 |
@$(ECHO) " Previous: $(PREV_JRE_IMAGE_DIR)" |
|
1222 |
@$(ECHO) " Current: $(JRE_IMAGE_DIR)" |
|
1223 |
@$(CAT) $< $(COMPARE_FILTER) | $(CAT_FILTER) |
|
1224 |
( $(ECHO) " " ; $(CAT) $< | $(CAT_FILTER) ; $(ECHO) " " ) >> $(WARNING_FILE) |
|
1225 |
||
1226 |
# Report on the jdk image comparison |
|
1227 |
compare-image-jdk: $(TEMP_PREV_JDK_COMPARISON) |
|
1228 |
@$(ECHO) "JDK Image Comparison to version $(PREVIOUS_JDK_VERSION)" |
|
1229 |
@$(ECHO) " Previous: $(PREV_JDK_IMAGE_DIR)" |
|
1230 |
@$(ECHO) " Current: $(JDK_IMAGE_DIR)" |
|
1231 |
$(CAT) $< $(COMPARE_FILTER) | $(CAT_FILTER) |
|
1232 |
( $(ECHO) " " ; $(CAT) $< | $(CAT_FILTER) ; $(ECHO) " " ) >> $(WARNING_FILE) |
|
1233 |
||
1234 |
# Do both image comparisons |
|
1235 |
compare-image:: compare-image-jre compare-image-jdk |
|
1236 |
||
1237 |
# Clean up any temp images and reports |
|
1238 |
compare-image-clobber: |
|
1239 |
$(RM) -r $(TEMP_PREV_JRE_BASE_DIR) |
|
1240 |
$(RM) -r $(TEMP_PREV_JDK_BASE_DIR) |
|
1241 |
||
1242 |
###################################################### |
|
1243 |
# clobber |
|
1244 |
###################################################### |
|
1245 |
images-clobber:: |
|
1246 |
$(RM) -r $(REORDER_TEMPDIR) |
|
1247 |
$(RM) -r $(JARFILELISTS_TEMPDIR) |
|
1248 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
1249 |
$(CD) javax/swing/beaninfo && $(MAKE) swingbeans.clobber |
|
1250 |
$(RM) -r $(CLASSBINDIR)/META-INF |
|
1251 |
$(RM) $(TEMPDIR)/tmp.jar |
|
1252 |
endif |
|
1253 |
ifeq ($(PLATFORM), linux) |
|
1254 |
$(RM) -r $(OUTPUTDIR)/$(ARCH) |
|
1255 |
endif |
|
1256 |
ifeq ($(PLATFORM), windows) |
|
1257 |
$(RM) $(TEMPDIR)/rebase.input |
|
1258 |
endif |
|
1259 |
$(RM) -r $(JDK_IMAGE_DIR) |
|
1260 |
$(RM) -r $(JRE_IMAGE_DIR) |
|
1261 |
||
1262 |
images images-clobber:: |
|
1263 |
@$(ECHO) ">>>Finished making "$@" @ `$(DATE)` ..." |
|
1264 |
@$(java-vm-cleanup) |
|
1265 |
||
1266 |
.PHONY: images image-jre image-jdk \ |
|
1267 |
initial-image-jre initial-image-jdk \ |
|
1268 |
initial-image-jre-sol64 initial-image-jdk-sol64 \ |
|
1269 |
initial-image-jdk-setup \ |
|
1270 |
initial-image-jdk-db \ |
|
1271 |
initial-image-jdk64-bindemos \ |
|
1272 |
initial-image-jre-setup \ |
|
1273 |
trim-image-jre trim-image-jdk \ |
|
1274 |
process-image-jre process-image-jdk \ |
|
1275 |
install-previous-jre install-previous-jdk \ |
|
1276 |
compare-image-jre compare-image-jdk \ |
|
1277 |
compare-image compare-image-clobber \ |
|
1278 |
images-clobber |
|
1279 |
||
1280 |
# Force rule |
|
1281 |
FRC: |
|
1282 |