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