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