author | rfield |
Tue, 20 Nov 2012 09:58:55 -0800 | |
changeset 14554 | 4e29b285c723 |
parent 14230 | 40cfabf65fc7 |
child 14902 | c03055cef158 |
permissions | -rw-r--r-- |
2 | 1 |
# |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
2 |
# Copyright (c) 1997, 2012, 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 \ |
10325
b72c20cd583a
7047325: Internal API to improve management of direct buffers
coffeys
parents:
9824
diff
changeset
|
63 |
com.oracle.net \ |
b72c20cd583a
7047325: Internal API to improve management of direct buffers
coffeys
parents:
9824
diff
changeset
|
64 |
com.oracle.nio |
5789
246b84dc50d9
6960789: com.sun.servicetag API needs to be added in ct.sym
mchung
parents:
5506
diff
changeset
|
65 |
|
2 | 66 |
# 64-bit solaris has a few special cases. We define the variable |
67 |
# SOLARIS64 for use in this Makefile to easily test those cases |
|
68 |
ifeq ($(PLATFORM), solaris) |
|
69 |
ifeq ($(ARCH_DATA_MODEL), 64) |
|
70 |
SOLARIS64 = true |
|
71 |
IMAGE_BINDIR = bin/$(ARCH) |
|
72 |
endif |
|
73 |
endif |
|
74 |
||
75 |
JTG_DOCS = $(JDK_TOPDIR)/src/solaris/doc |
|
76 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
77 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
78 |
include $(JDK_TOPDIR)/make/common/Release-$(PLATFORM).gmk |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
79 |
endif |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
80 |
|
2 | 81 |
# 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
|
82 |
# (These files get placed in the jdk and jre install images) |
2 | 83 |
ifdef OPENJDK |
920
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
84 |
# Where to find these files |
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
85 |
SHARE_JDK_DOC_SRC = $(JDK_TOPDIR) |
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
86 |
SHARE_JRE_DOC_SRC = $(JDK_TOPDIR) |
2 | 87 |
# Same files for jdk and jre, no name changes |
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
88 |
IMAGE_DOCLIST_JDK = LICENSE ASSEMBLY_EXCEPTION THIRD_PARTY_README |
11332 | 89 |
IMAGE_DOCLIST_JDK_DEMOS_AND_SAMPLES = |
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
90 |
IMAGE_DOCLIST_JRE = LICENSE ASSEMBLY_EXCEPTION THIRD_PARTY_README |
2 | 91 |
else |
8694
6e5584652aea
7029704: JFB: Refix JFB Custom Revision Version Build/Makefile changes
asaha
parents:
8588
diff
changeset
|
92 |
# 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
|
93 |
|
9554 | 94 |
IMAGE_DOCLIST_JDK = COPYRIGHT README.html LICENSE THIRDPARTYLICENSEREADME.txt |
11332 | 95 |
IMAGE_DOCLIST_JDK_DEMOS_AND_SAMPLES = demo/DEMOS_LICENSE sample/SAMPLES_LICENSE |
9554 | 96 |
IMAGE_DOCLIST_JRE = COPYRIGHT Welcome.html LICENSE THIRDPARTYLICENSEREADME.txt |
2 | 97 |
ifeq ($(PLATFORM), windows) |
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
98 |
IMAGE_DOCLIST_JRE += README.txt |
2 | 99 |
else |
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
100 |
IMAGE_DOCLIST_JRE += README |
2 | 101 |
endif |
102 |
endif |
|
103 |
||
104 |
# Paths to these files we need |
|
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
105 |
JDK_DOCFILES = $(IMAGE_DOCLIST_JDK:%=$(JDK_IMAGE_DIR)/%) |
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
106 |
JRE_DOCFILES = $(IMAGE_DOCLIST_JRE:%=$(JRE_IMAGE_DIR)/%) |
11332 | 107 |
JDK_DEMOS_AND_SAMPLES_DOCFILES = $(IMAGE_DOCLIST_JDK_DEMOS_AND_SAMPLES:%=$(JDK_IMAGE_DIR)/%) |
2 | 108 |
|
109 |
# absolute directory names: note, these must exist prior to build |
|
110 |
# time - they are created in the main Makefile. |
|
111 |
JRE_IMAGE_BINDIR = $(JRE_IMAGE_DIR)/bin |
|
112 |
||
113 |
MAINMANIFEST = $(JDK_TOPDIR)/make/tools/manifest.mf |
|
114 |
BEANMANIFEST = $(JDK_TOPDIR)/make/javax/swing/beaninfo/manifest |
|
115 |
||
116 |
# |
|
117 |
# Man pages |
|
118 |
# |
|
119 |
||
120 |
JRE_MAN_PAGES = \ |
|
121 |
java.1 \ |
|
122 |
keytool.1 \ |
|
123 |
orbd.1 \ |
|
124 |
pack200.1 \ |
|
125 |
policytool.1 \ |
|
126 |
rmid.1 \ |
|
127 |
rmiregistry.1 \ |
|
128 |
servertool.1 \ |
|
129 |
tnameserv.1 \ |
|
130 |
unpack200.1 |
|
131 |
||
8270 | 132 |
ifndef OPENJDK |
2 | 133 |
JRE_MAN_PAGES += javaws.1 |
134 |
endif |
|
135 |
||
136 |
JDK_MAN_PAGES = \ |
|
137 |
$(JRE_MAN_PAGES) \ |
|
138 |
appletviewer.1 \ |
|
139 |
extcheck.1 \ |
|
140 |
idlj.1 \ |
|
141 |
jar.1 \ |
|
142 |
jarsigner.1 \ |
|
143 |
javac.1 \ |
|
144 |
javadoc.1 \ |
|
145 |
javah.1 \ |
|
146 |
javap.1 \ |
|
12299
ea3d337ed663
7156831: The jcmd man page is not included in generated bundles
fparain
parents:
12296
diff
changeset
|
147 |
jcmd.1 \ |
2 | 148 |
jconsole.1 \ |
149 |
jdb.1 \ |
|
150 |
jhat.1 \ |
|
151 |
jinfo.1 \ |
|
152 |
jmap.1 \ |
|
153 |
jps.1 \ |
|
154 |
jrunscript.1 \ |
|
155 |
jsadebugd.1 \ |
|
156 |
jstack.1 \ |
|
157 |
jstat.1 \ |
|
158 |
jstatd.1 \ |
|
159 |
native2ascii.1 \ |
|
160 |
rmic.1 \ |
|
161 |
schemagen.1 \ |
|
162 |
serialver.1 \ |
|
163 |
wsgen.1 \ |
|
164 |
wsimport.1 \ |
|
165 |
xjc.1 |
|
166 |
||
13497
2c09fb7cdf7f
7192804: Build should not install jvisualvm man page for OpenJDK
andrew
parents:
13353
diff
changeset
|
167 |
ifndef OPENJDK |
2c09fb7cdf7f
7192804: Build should not install jvisualvm man page for OpenJDK
andrew
parents:
13353
diff
changeset
|
168 |
JDK_MAN_PAGES += jvisualvm.1 |
2c09fb7cdf7f
7192804: Build should not install jvisualvm man page for OpenJDK
andrew
parents:
13353
diff
changeset
|
169 |
endif |
2c09fb7cdf7f
7192804: Build should not install jvisualvm man page for OpenJDK
andrew
parents:
13353
diff
changeset
|
170 |
|
2 | 171 |
ifeq ($(PLATFORM), solaris) |
172 |
MANBASEDIRS=$(JDK_TOPDIR)/src/solaris/doc $(IMPORTDOCDIR) |
|
173 |
MAN1SUBDIR=sun/man/man1 |
|
174 |
endif # solaris |
|
175 |
||
176 |
ifeq ($(PLATFORM), linux) |
|
177 |
MANBASEDIRS=$(JDK_TOPDIR)/src/linux/doc $(IMPORTDOCDIR) |
|
178 |
MAN1SUBDIR=man |
|
9367
7ed49dc79ebc
7036955: Japanese man pages in linux should be in utf-8 encoding
ogino
parents:
9021
diff
changeset
|
179 |
JA_DIRNAME=ja_JP.UTF-8 |
2 | 180 |
endif # linux |
181 |
||
182 |
define copy-man-pages |
|
183 |
$(MKDIR) -p $1/man/man1 |
|
184 |
for manbase in $(MANBASEDIRS:%=%/$(MAN1SUBDIR)) ; do \ |
|
185 |
for manpage in $2; do \ |
|
186 |
if [ -f $${manbase}/$${manpage} ] ; then \ |
|
187 |
$(CP) $${manbase}/$${manpage} $1/man/man1 ; \ |
|
188 |
for ja_encoding in $(JA_TARGET_ENCODINGS); do \ |
|
189 |
ja_dir="ja"; \ |
|
190 |
if [ "$${ja_encoding}" != "$(JA_SOURCE_ENCODING)" ]; then \ |
|
191 |
ja_dir="ja_JP.$${ja_encoding}"; \ |
|
192 |
fi; \ |
|
193 |
$(MKDIR) -p $1/man/$${ja_dir}/man1; \ |
|
194 |
$(CAT) $${manbase}/ja/$${manpage} \ |
|
195 |
| $(NATIVE2ASCII) -encoding $(JA_SOURCE_ENCODING) \ |
|
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
196 |
| $(SED) 's/@@VERSION@@/$(THIS_JDK_VERSION)/g' \ |
2 | 197 |
| $(NATIVE2ASCII) -reverse -encoding $${ja_encoding} \ |
198 |
> $1/man/$${ja_dir}/man1/$${manpage}; \ |
|
199 |
done; \ |
|
200 |
fi; \ |
|
201 |
done; \ |
|
202 |
done |
|
203 |
$(java-vm-cleanup) |
|
204 |
if [ "$(JA_DIRNAME)" != "" ] ; then \ |
|
9367
7ed49dc79ebc
7036955: Japanese man pages in linux should be in utf-8 encoding
ogino
parents:
9021
diff
changeset
|
205 |
$(CD) $1/man && $(RM) ja && $(LN) -s $(JA_DIRNAME) ja; \ |
2 | 206 |
fi |
207 |
endef |
|
208 |
||
8993
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
8588
diff
changeset
|
209 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
8588
diff
changeset
|
210 |
# no compression unless requested |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
8588
diff
changeset
|
211 |
ifndef COMPRESS_JARS |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
8588
diff
changeset
|
212 |
CREATE_JAR_OPTS = c0mf |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
8588
diff
changeset
|
213 |
CREATE_JAR_OPTS_NOMANIFEST = c0f |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
8588
diff
changeset
|
214 |
else |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
8588
diff
changeset
|
215 |
CREATE_JAR_OPTS = cmf |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
8588
diff
changeset
|
216 |
CREATE_JAR_OPTS_NOMANIFEST = cf |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
8588
diff
changeset
|
217 |
endif |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
8588
diff
changeset
|
218 |
|
2 | 219 |
# |
220 |
# Targets. |
|
221 |
# |
|
222 |
INITIAL_IMAGE_JRE=initial-image-jre |
|
223 |
INITIAL_IMAGE_JDK=initial-image-jdk |
|
224 |
ifeq ($(PLATFORM), solaris) |
|
225 |
ifeq ($(ARCH_DATA_MODEL), 64) |
|
226 |
INITIAL_IMAGE_JRE=initial-image-jre-sol64 |
|
227 |
INITIAL_IMAGE_JDK=initial-image-jdk-sol64 |
|
228 |
endif |
|
229 |
endif |
|
230 |
||
231 |
images images-clobber \ |
|
232 |
initial-image-jre initial-image-jdk \ |
|
233 |
initial-image-jre-sol64 initial-image-jdk-sol64 \ |
|
234 |
trim-image-jre trim-image-jdk \ |
|
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
235 |
identify-image-jre identify-image-jdk \ |
2 | 236 |
process-image-jre process-image-jdk \ |
237 |
compare-image \ |
|
238 |
sec-files sec-files-win jgss-files :: |
|
239 |
@$(ECHO) ">>>Making "$@" @ `$(DATE)` ..." |
|
240 |
||
241 |
# Order is important here, trim jre after jdk image is created |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
242 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
243 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
244 |
images:: sanity-images post-sanity-images \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
245 |
$(INITIAL_IMAGE_JRE) $(EXTRA_JRE_TARGETS) $(INITIAL_IMAGE_JDK) \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
246 |
trim-image-jre trim-image-jdk \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
247 |
identify-image-jre identify-image-jdk \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
248 |
process-image-jre process-image-jdk sec-files sec-files-win jgss-files \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
249 |
$(EXTRA_IMAGE_TARGETS) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
250 |
else |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
251 |
|
2 | 252 |
images:: sanity-images post-sanity-images \ |
253 |
$(INITIAL_IMAGE_JRE) $(INITIAL_IMAGE_JDK) \ |
|
254 |
trim-image-jre trim-image-jdk \ |
|
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
255 |
identify-image-jre identify-image-jdk \ |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
256 |
process-image-jre process-image-jdk sec-files sec-files-win jgss-files |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
257 |
endif |
2 | 258 |
|
259 |
# Don't use these |
|
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
260 |
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
|
261 |
image-jdk:: initial-image-jdk trim-image-jdk identify-image-jdk process-image-jdk |
2 | 262 |
|
263 |
# |
|
264 |
# Sources we ship in the SDK. |
|
265 |
# |
|
266 |
SOURCES = \ |
|
267 |
java/applet \ |
|
268 |
java/awt \ |
|
269 |
java/beans \ |
|
270 |
java/io \ |
|
271 |
java/lang \ |
|
272 |
java/math \ |
|
273 |
java/net \ |
|
274 |
java/nio \ |
|
275 |
java/rmi \ |
|
276 |
java/security \ |
|
277 |
java/sql \ |
|
278 |
java/text \ |
|
279 |
java/util \ |
|
280 |
com/sun/corba \ |
|
281 |
com/sun/image/codec/jpeg \ |
|
282 |
com/sun/imageio \ |
|
283 |
com/sun/java/swing \ |
|
284 |
com/sun/javadoc \ |
|
285 |
com/sun/jmx \ |
|
286 |
com/sun/source \ |
|
287 |
com/sun/naming \ |
|
288 |
com/sun/security/auth \ |
|
289 |
com/sun/security/jgss \ |
|
290 |
javax/accessibility \ |
|
291 |
javax/annotation \ |
|
292 |
javax/script \ |
|
293 |
javax/imageio \ |
|
294 |
javax/lang \ |
|
295 |
javax/management \ |
|
296 |
javax/naming \ |
|
297 |
javax/print \ |
|
298 |
javax/rmi \ |
|
299 |
javax/security \ |
|
300 |
javax/sound \ |
|
301 |
javax/sql \ |
|
302 |
javax/swing \ |
|
303 |
javax/tools \ |
|
304 |
javax/xml \ |
|
305 |
com/sun/org/apache \ |
|
306 |
com/sun/java_cup \ |
|
307 |
com/sun/jlex \ |
|
308 |
org/ietf \ |
|
309 |
org/omg \ |
|
310 |
org/w3c/dom \ |
|
13353
a043d6778c4c
4650871: Classes in sunw.* should be removed from workspace and rt.jar
malenkov
parents:
12605
diff
changeset
|
311 |
org/xml/sax |
2 | 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 \ |
|
11365 | 343 |
sun/tools/jcmd \ |
2 | 344 |
sun/tools/jps \ |
345 |
sun/tools/jstat \ |
|
346 |
sun/tools/jstatd \ |
|
347 |
sun/tools/native2ascii \ |
|
348 |
sun/tools/serialver \ |
|
349 |
sun/tools/tree \ |
|
350 |
sun/tools/util \ |
|
14182
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
351 |
sun/security/tools/jarsigner/JarBASE64Encoder.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
352 |
sun/security/tools/jarsigner/Main.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
353 |
sun/security/tools/jarsigner/JarSignerParameters.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
354 |
sun/security/tools/jarsigner/Resources.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
355 |
sun/security/tools/jarsigner/Resources_ja.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
356 |
sun/security/tools/jarsigner/Resources_zh_CN.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
357 |
sun/security/tools/jarsigner/SignatureFile\$$Block.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
358 |
sun/security/tools/jarsigner/SignatureFile.class \ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
359 |
sun/security/tools/jarsigner/TimestampedSigner.class \ |
2 | 360 |
sun/rmi/rmic \ |
361 |
sun/applet \ |
|
362 |
sun/jvmstat \ |
|
363 |
com/sun/javadoc \ |
|
364 |
com/sun/jdi \ |
|
365 |
com/sun/jarsigner \ |
|
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/javah \ |
|
684 | 376 |
com/sun/tools/javap \ |
2 | 377 |
com/sun/tools/corba \ |
378 |
com/sun/tools/internal/xjc \ |
|
379 |
com/sun/tools/internal/ws \ |
|
11825
267ac03556be
7140918: Remove dependency on apt and com.sun.mirror API
alanb
parents:
11682
diff
changeset
|
380 |
META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \ |
267ac03556be
7140918: Remove dependency on apt and com.sun.mirror API
alanb
parents:
11682
diff
changeset
|
381 |
META-INF/services/com.sun.tools.internal.xjc.Plugin \ |
2 | 382 |
com/sun/istack/internal/tools \ |
11825
267ac03556be
7140918: Remove dependency on apt and com.sun.mirror API
alanb
parents:
11682
diff
changeset
|
383 |
com/sun/tools/internal/jxc/ap \ |
267ac03556be
7140918: Remove dependency on apt and com.sun.mirror API
alanb
parents:
11682
diff
changeset
|
384 |
com/sun/tools/internal/ws/wscompile/plugin/at_generated \ |
2 | 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 |
|
11678
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
400 |
# classes that go into jfr.jar |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
401 |
JFR_CLASSES_DIRS= \ |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
402 |
com/oracle/jrockit/jfr \ |
11682
0abce7b186a8
7133124: Remove redundant packages from JAR command line
rbackman
parents:
11678
diff
changeset
|
403 |
oracle/jrockit/jfr |
11678
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
404 |
|
2 | 405 |
# classes that go into jsse.jar |
406 |
JSSE_CLASSES_DIRS = \ |
|
407 |
sun/security/provider/Sun.class \ |
|
408 |
sun/security/rsa/SunRsaSign.class \ |
|
409 |
sun/security/ssl \ |
|
410 |
com/sun/net/ssl/internal/ssl |
|
411 |
||
412 |
# files under $(OUTPUTDIR) that need to go into sec-bin.zip for builds |
|
413 |
# where the corresponding sources are not available |
|
414 |
SEC_FILES_DIRS = \ |
|
415 |
classes/javax/net \ |
|
416 |
classes/javax/security/cert \ |
|
417 |
classes/com/sun/net/ssl \ |
|
418 |
classes/com/sun/security/cert \ |
|
419 |
classes/sun/net/www/protocol/https \ |
|
420 |
classes/sun/security/pkcs12 \ |
|
421 |
classes/sun/security/ssl \ |
|
422 |
classes/sun/security/krb5/*.class \ |
|
423 |
classes/sun/security/krb5/internal/*.class \ |
|
424 |
classes/sun/security/krb5/internal/ccache \ |
|
425 |
classes/sun/security/krb5/internal/crypto \ |
|
426 |
classes/sun/security/krb5/internal/ktab \ |
|
427 |
classes/sun/security/krb5/internal/rcache \ |
|
428 |
classes/sun/security/krb5/internal/util \ |
|
429 |
classes/sun/security/jgss/spi/GSSContextSpi.class |
|
430 |
||
431 |
# files under $(OUTPUTDIR) that need to go into sec-windows-win.zip for builds |
|
432 |
# where the corresponding sources are not available |
|
433 |
SEC_FILES_WIN_DIRS = \ |
|
434 |
classes/sun/security/krb5/internal/tools |
|
435 |
||
436 |
# files under $(BINDIR) that need to go into jgss_files.zip for builds |
|
437 |
# where the corresponding sources are not available |
|
438 |
JGSS_FILES_DIRS = \ |
|
439 |
bin/w2k_lsa_auth.dll \ |
|
440 |
bin/w2k_lsa_auth.map \ |
|
441 |
bin/w2k_lsa_auth.pdb |
|
442 |
||
443 |
# The following get removed from the SDK image. |
|
444 |
NOTJDKTOOLS = \ |
|
445 |
java_vm |
|
446 |
||
447 |
# The following get removed from the JRE after the bulk-copy of BINDIR... |
|
448 |
NOTJRETOOLS = \ |
|
449 |
appletviewer$(EXE_SUFFIX) \ |
|
450 |
extcheck$(EXE_SUFFIX) \ |
|
451 |
idlj$(EXE_SUFFIX) \ |
|
452 |
jar$(EXE_SUFFIX) \ |
|
453 |
jarsigner$(EXE_SUFFIX) \ |
|
454 |
java-rmi.cgi \ |
|
455 |
javac$(EXE_SUFFIX) \ |
|
456 |
javadoc$(EXE_SUFFIX) \ |
|
457 |
javah$(EXE_SUFFIX) \ |
|
458 |
javap$(EXE_SUFFIX) \ |
|
11365 | 459 |
jcmd$(EXE_SUFFIX) \ |
2 | 460 |
jdb$(EXE_SUFFIX) \ |
461 |
jps$(EXE_SUFFIX) \ |
|
462 |
jrunscript$(EXE_SUFFIX) \ |
|
463 |
jstat$(EXE_SUFFIX) \ |
|
464 |
jstatd$(EXE_SUFFIX) \ |
|
465 |
jstack$(EXE_SUFFIX) \ |
|
466 |
packagebean$(SCRIPT_SUFFIX) \ |
|
467 |
rmic$(EXE_SUFFIX) \ |
|
468 |
serialver$(EXE_SUFFIX) \ |
|
469 |
unregbean$(EXE_SUFFIX) \ |
|
470 |
jconsole$(EXE_SUFFIX) \ |
|
471 |
jinfo$(EXE_SUFFIX) \ |
|
472 |
jmap$(EXE_SUFFIX) \ |
|
473 |
native2ascii$(EXE_SUFFIX) \ |
|
474 |
xjc$(EXE_SUFFIX) \ |
|
475 |
wsgen$(EXE_SUFFIX) \ |
|
476 |
wsimport$(EXE_SUFFIX) \ |
|
477 |
schemagen$(EXE_SUFFIX) \ |
|
478 |
jsadebugd$(EXE_SUFFIX) \ |
|
479 |
jhat$(EXE_SUFFIX) |
|
480 |
||
481 |
# The following get removed from the JRE after the bulk-copy of LIBDIR... |
|
482 |
NOTJRELIBS = tools.jar \ |
|
483 |
jconsole.jar |
|
484 |
||
485 |
ifeq ($(INCLUDE_SA), true) |
|
486 |
NOTJRELIBS += sa-jdi.jar |
|
487 |
||
488 |
# The following get removed from the JRE after the bulk-copy of LIBDIR... |
|
489 |
NOTJRE_SHARED_LIBS = $(SALIB_NAME) |
|
490 |
else |
|
491 |
NOTJRE_SHARED_LIBS = |
|
492 |
endif |
|
493 |
||
494 |
# Attach library is JDK only |
|
495 |
NOTJRE_SHARED_LIBS += $(LIB_PREFIX)attach.$(LIBRARY_SUFFIX) |
|
496 |
||
497 |
# |
|
498 |
###### RULES |
|
499 |
||
500 |
# Processing license files from source area to image area |
|
501 |
# These will be modified to have the platform specific EOL chars. |
|
502 |
define process-doc-file |
|
503 |
$(prep-target) |
|
504 |
$(SED) 's/$$//g' $< > $@ |
|
505 |
$(CHMOD) 444 $@ |
|
506 |
endef |
|
507 |
||
508 |
# JDK files |
|
509 |
$(JDK_IMAGE_DIR)/%: $(SHARE_JDK_DOC_SRC)/% |
|
510 |
$(process-doc-file) |
|
511 |
||
11331
245d2d6da902
7066713: Separate demos from the bundles on Solaris and Linux
cgruszka
parents:
10325
diff
changeset
|
512 |
$(JDK_IMAGE_DIR)/demo/DEMOS_LICENSE: $(SHARE_JDK_DOC_SRC)/DEMOS_LICENSE |
245d2d6da902
7066713: Separate demos from the bundles on Solaris and Linux
cgruszka
parents:
10325
diff
changeset
|
513 |
$(process-doc-file) |
245d2d6da902
7066713: Separate demos from the bundles on Solaris and Linux
cgruszka
parents:
10325
diff
changeset
|
514 |
|
245d2d6da902
7066713: Separate demos from the bundles on Solaris and Linux
cgruszka
parents:
10325
diff
changeset
|
515 |
$(JDK_IMAGE_DIR)/sample/SAMPLES_LICENSE: $(SHARE_JDK_DOC_SRC)/SAMPLES_LICENSE |
245d2d6da902
7066713: Separate demos from the bundles on Solaris and Linux
cgruszka
parents:
10325
diff
changeset
|
516 |
$(process-doc-file) |
245d2d6da902
7066713: Separate demos from the bundles on Solaris and Linux
cgruszka
parents:
10325
diff
changeset
|
517 |
|
11994
74f1488b7347
7143162: Allow disable building of jdk demos and samples
mduigou
parents:
11826
diff
changeset
|
518 |
# JRE files |
2 | 519 |
$(JRE_IMAGE_DIR)/%: $(SHARE_JRE_DOC_SRC)/% |
520 |
$(process-doc-file) |
|
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
521 |
ifeq ($(PLATFORM), windows) |
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
522 |
$(JRE_IMAGE_DIR)/README.txt: $(SHARE_JRE_DOC_SRC)/README |
2 | 523 |
$(process-doc-file) |
524 |
endif |
|
525 |
||
526 |
# Differences tool |
|
527 |
DIRDIFF_JARFILE = $(BUILDTOOLJARDIR)/dirdiff.jar |
|
528 |
||
529 |
###################################################### |
|
530 |
# List of directories in classes directory that should NOT be in rt.jar |
|
531 |
###################################################### |
|
532 |
||
533 |
NOT_RT_JAR_LIST = $(ABS_TEMPDIR)/not_rt_jar.list |
|
534 |
||
535 |
$(NOT_RT_JAR_LIST): FRC |
|
536 |
$(prep-target) |
|
537 |
$(ECHO) "#\n" >> $@ |
|
538 |
$(ECHO) "# List of subdirectories not in include in rt.jar" >> $@ |
|
539 |
$(ECHO) "# Directories must contain trailing '/'." >> $@ |
|
540 |
$(ECHO) "com/sun/javadoc/" >> $@ |
|
541 |
$(ECHO) "com/sun/jdi/" >> $@ |
|
542 |
$(ECHO) "com/sun/jarsigner/" >> $@ |
|
543 |
$(ECHO) "com/sun/source/" >> $@ |
|
544 |
$(ECHO) "com/sun/istack/internal/tools/" >> $@ |
|
545 |
$(ECHO) "META-INF/services/com.sun.jdi.connect.Connector" >> $@ |
|
546 |
$(ECHO) "META-INF/services/com.sun.jdi.connect.spi.TransportService" >> $@ |
|
547 |
$(ECHO) "META-INF/services/com.sun.tools.xjc.Plugin" >> $@ |
|
548 |
$(ECHO) "com/sun/tools/" >> $@ |
|
549 |
$(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
|
550 |
$(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
|
551 |
$(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
|
552 |
$(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
|
553 |
$(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
|
554 |
$(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
|
555 |
$(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
|
556 |
$(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
|
557 |
$(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
|
558 |
$(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
|
559 |
$(ECHO) "sun/awt/motif/X11KSC5601.class" >> $@ |
2 | 560 |
$(ECHO) "sun/rmi/rmic/" >> $@ |
561 |
$(ECHO) "sun/tools/asm/" >> $@ |
|
562 |
$(ECHO) "sun/tools/java/" >> $@ |
|
563 |
$(ECHO) "sun/tools/javac/" >> $@ |
|
684 | 564 |
$(ECHO) "com/sun/tools/classfile/" >> $@ |
565 |
$(ECHO) "com/sun/tools/javap/" >> $@ |
|
11365 | 566 |
$(ECHO) "sun/tools/jcmd/" >> $@ |
2 | 567 |
$(ECHO) "sun/tools/jconsole/" >> $@ |
568 |
$(ECHO) "sun/tools/jps/" >> $@ |
|
569 |
$(ECHO) "sun/tools/jstat/" >> $@ |
|
570 |
$(ECHO) "sun/tools/jstatd/" >> $@ |
|
571 |
$(ECHO) "sun/tools/native2ascii/" >> $@ |
|
572 |
$(ECHO) "sun/tools/serialver/" >> $@ |
|
573 |
$(ECHO) "sun/tools/tree/" >> $@ |
|
574 |
$(ECHO) "sun/tools/util/" >> $@ |
|
14182
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
575 |
$(ECHO) "sun/security/tools/jarsigner/JarBASE64Encoder.class" >> $@ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
576 |
$(ECHO) "sun/security/tools/jarsigner/Main.class" >> $@ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
577 |
$(ECHO) "sun/security/tools/jarsigner/JarSignerParameters.class" >> $@ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
578 |
$(ECHO) "sun/security/tools/jarsigner/Resources.class" >> $@ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
579 |
$(ECHO) "sun/security/tools/jarsigner/Resources_ja.class" >> $@ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
580 |
$(ECHO) "sun/security/tools/jarsigner/Resources_zh_CN.class" >> $@ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
581 |
$(ECHO) "sun/security/tools/jarsigner/SignatureFile\$$Block.class" >> $@ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
582 |
$(ECHO) "sun/security/tools/jarsigner/SignatureFile.class" >> $@ |
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
13703
diff
changeset
|
583 |
$(ECHO) "sun/security/tools/jarsigner/TimestampedSigner.class" >> $@ |
2 | 584 |
$(ECHO) "sun/security/provider/Sun.class" >> $@ |
585 |
$(ECHO) "sun/security/rsa/SunRsaSign.class" >> $@ |
|
586 |
$(ECHO) "sun/security/ssl/" >> $@ |
|
587 |
$(ECHO) "com/sun/net/ssl/internal/ssl/" >> $@ |
|
588 |
$(ECHO) "javax/crypto/" >> $@ |
|
589 |
$(ECHO) "sun/security/internal/" >> $@ |
|
590 |
$(ECHO) "com/sun/crypto/provider/" >> $@ |
|
591 |
$(ECHO) "META-INF/services/com.sun.tools.attach.spi.AttachProvider" >> $@ |
|
592 |
$(ECHO) "com/sun/tools/attach/" >> $@ |
|
593 |
$(ECHO) "org/relaxng/datatype/" >> $@ |
|
594 |
$(ECHO) "com/sun/codemodel/" >> $@ |
|
595 |
$(ECHO) "com/sun/xml/internal/dtdparser/" >> $@ |
|
596 |
$(ECHO) "com/sun/xml/internal/rngom/" >> $@ |
|
597 |
$(ECHO) "com/sun/xml/internal/xsom/" >> $@ |
|
598 |
$(ECHO) "com/sun/tools/script/shell/" >> $@ |
|
599 |
$(ECHO) "sun/tools/attach/" >> $@ |
|
600 |
$(ECHO) "sun/tools/jstack/" >> $@ |
|
601 |
$(ECHO) "sun/tools/jinfo/" >> $@ |
|
602 |
$(ECHO) "sun/tools/jmap/" >> $@ |
|
11678
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
603 |
ifndef OPENJDK |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
604 |
ifndef JAVASE_EMBEDDED |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
605 |
$(ECHO) "com/oracle/jrockit/jfr/" >> $@ |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
606 |
$(ECHO) "com/oracle/jrockit/jfr/client/" >> $@ |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
607 |
$(ECHO) "com/oracle/jrockit/jfr/management/" >> $@ |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
608 |
$(ECHO) "oracle/jrockit/jfr/" >> $@ |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
609 |
$(ECHO) "oracle/jrockit/jfr/events/" >> $@ |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
610 |
$(ECHO) "oracle/jrockit/jfr/openmbean/" >> $@ |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
611 |
$(ECHO) "oracle/jrockit/jfr/parser/" >> $@ |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
612 |
$(ECHO) "oracle/jrockit/jfr/settings/" >> $@ |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
613 |
$(ECHO) "oracle/jrockit/jfr/tools/" >> $@ |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
614 |
endif |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
615 |
endif |
2 | 616 |
|
617 |
||
618 |
# File order list for rt.jar |
|
619 |
# - sun.applet is included, till hotjava stops relying on it. |
|
620 |
# - sun.tools.jar is included, needs cleanup. |
|
621 |
# |
|
622 |
REORDER_TEMPDIR=$(ABS_TEMPDIR)/reorder |
|
623 |
TOTAL_JAR_FILELIST=$(REORDER_TEMPDIR)/file_list |
|
624 |
||
625 |
JARFILELISTS_TEMPDIR=$(ABS_TEMPDIR)/jarfilelists |
|
626 |
RT_JAR_FILELIST=$(JARFILELISTS_TEMPDIR)/rt_jar_list |
|
627 |
RES_JAR_FILELIST=$(JARFILELISTS_TEMPDIR)/resources_jar_list |
|
628 |
||
629 |
JARREORDER_JARFILE = $(ABS_BUILDTOOLJARDIR)/jarreorder.jar |
|
630 |
||
631 |
$(TOTAL_JAR_FILELIST): $(JARREORDER_JARFILE) $(NOT_RT_JAR_LIST) |
|
632 |
$(prep-target) |
|
633 |
$(RM) $@.temp |
|
634 |
($(CD) $(CLASSBINDIR) && \ |
|
635 |
$(BOOT_JAVA_CMD) -jar $(JARREORDER_JARFILE) \ |
|
636 |
-o $@.temp $(ABS_LIBDIR)/classlist $(NOT_RT_JAR_LIST) . ) |
|
637 |
$(MV) $@.temp $@ |
|
638 |
@($(CD) $(CLASSBINDIR) && $(java-vm-cleanup)) |
|
639 |
||
12296
cbc9b437292e
7156000: Change makefile to reflect refactored classes
nloodin
parents:
12054
diff
changeset
|
640 |
# Create jfr.jar |
11678
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
641 |
JFR_JAR= |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
642 |
ifndef OPENJDK |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
643 |
ifndef JAVASE_EMBEDDED |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
644 |
JFR_JAR=$(ABS_TEMPDIR)/jfr-orig.jar |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
645 |
$(JFR_JAR): $(OTHER_JAR_MANIFEST_FILE) |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
646 |
$(prep-target) |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
647 |
$(CD) $(CLASSBINDIR) && \ |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
648 |
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(OTHER_JAR_MANIFEST_FILE) $@ \ |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
649 |
$(JFR_CLASSES_DIRS) $(BOOT_JAR_JFLAGS) |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
650 |
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
651 |
endif |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
652 |
endif |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
653 |
|
2 | 654 |
# Create the rt.jar file list & non-class files list |
655 |
||
656 |
JARSPLIT_JARFILE = $(BUILDTOOLJARDIR)/jarsplit.jar |
|
657 |
||
658 |
$(RT_JAR_FILELIST) + $(RES_JAR_FILELIST): \ |
|
659 |
$(TOTAL_JAR_FILELIST) $(JARSPLIT_JARFILE) |
|
660 |
@$(RM) $(RT_JAR_FILELIST) $(RES_JAR_FILELIST) |
|
661 |
$(MKDIR) -p $(JARFILELISTS_TEMPDIR) |
|
662 |
$(BOOT_JAVA_CMD) -jar $(JARSPLIT_JARFILE) \ |
|
663 |
$(TOTAL_JAR_FILELIST) \ |
|
664 |
-o $(RT_JAR_FILELIST) $(RES_JAR_FILELIST) |
|
665 |
@$(java-vm-cleanup) |
|
666 |
||
667 |
# Create the manifest file. |
|
9351 | 668 |
RT_JAR_MANIFEST_FILE=$(ABS_TEMPDIR)/rt_manifest.tmp |
669 |
$(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST) |
|
2 | 670 |
$(prep-target) |
5552 | 671 |
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \ |
672 |
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
|
673 |
$(MAINMANIFEST) >> $@ |
|
2 | 674 |
$(ECHO) >> $@ |
675 |
$(CAT) $(BEANMANIFEST) >> $@ |
|
676 |
||
9351 | 677 |
OTHER_JAR_MANIFEST_FILE=$(ABS_TEMPDIR)/other_manifest.tmp |
678 |
$(OTHER_JAR_MANIFEST_FILE): $(MAINMANIFEST) |
|
679 |
$(prep-target) |
|
680 |
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \ |
|
681 |
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
|
682 |
$(MAINMANIFEST) >> $@ |
|
683 |
||
2 | 684 |
# 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
|
685 |
RESOURCES_JAR=$(ABS_TEMPDIR)/resources-orig.jar |
9351 | 686 |
$(RESOURCES_JAR): $(RES_JAR_FILELIST) $(OTHER_JAR_MANIFEST_FILE) |
2 | 687 |
$(prep-target) |
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
688 |
$(CD) $(CLASSBINDIR) && \ |
9351 | 689 |
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(OTHER_JAR_MANIFEST_FILE) $@ \ |
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
690 |
@$(RES_JAR_FILELIST) $(BOOT_JAR_JFLAGS) |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
691 |
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) |
2 | 692 |
|
693 |
# 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
|
694 |
JSSE_JAR=$(ABS_TEMPDIR)/jsse-orig.jar |
9351 | 695 |
$(JSSE_JAR): $(OTHER_JAR_MANIFEST_FILE) |
2 | 696 |
$(prep-target) |
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
697 |
$(CD) $(CLASSBINDIR) && \ |
9351 | 698 |
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(OTHER_JAR_MANIFEST_FILE) $@ \ |
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
699 |
$(JSSE_CLASSES_DIRS) $(BOOT_JAR_JFLAGS) |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
700 |
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) |
2 | 701 |
|
702 |
# Create sec-bin.zip |
|
703 |
SEC_FILES_ZIP=$(ABS_TEMPDIR)/sec-bin.zip |
|
704 |
sec-files:: |
|
705 |
$(prep-target) |
|
706 |
$(RM) $(SEC_FILES_ZIP) |
|
707 |
$(CD) $(OUTPUTDIR) && \ |
|
708 |
$(ZIPEXE) -rq9 $(SEC_FILES_ZIP) $(SEC_FILES_DIRS) |
|
709 |
@$(java-vm-cleanup) |
|
710 |
||
711 |
# Create sec-windows-bin.zip |
|
712 |
SEC_FILES_WIN_ZIP=$(ABS_TEMPDIR)/sec-windows-bin.zip |
|
713 |
sec-files-win:: |
|
714 |
ifeq ($(PLATFORM), windows) |
|
715 |
$(prep-target) |
|
716 |
$(RM) $(SEC_FILES_WIN_ZIP) |
|
717 |
$(CD) $(OUTPUTDIR) && \ |
|
718 |
$(ZIPEXE) -rq9 $(SEC_FILES_WIN_ZIP) $(SEC_FILES_WIN_DIRS) |
|
719 |
@$(java-vm-cleanup) |
|
720 |
endif |
|
721 |
||
722 |
# Create JGSS files that contains the native Kerberos library |
|
723 |
JGSS_WIN32_FILES_ZIP=$(ABS_TEMPDIR)/jgss-windows-i586-bin.zip |
|
724 |
JGSS_WIN64_FILES_ZIP=$(ABS_TEMPDIR)/jgss-windows-x64-bin.zip |
|
725 |
jgss-files:: |
|
726 |
ifeq ($(PLATFORM), windows) |
|
727 |
$(prep-target) |
|
728 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
729 |
$(RM) $(JGSS_WIN32_FILES_ZIP) |
|
730 |
$(CD) $(OUTPUTDIR) && \ |
|
731 |
$(ZIPEXE) -rq9 $(JGSS_WIN32_FILES_ZIP) $(JGSS_FILES_DIRS) |
|
732 |
else |
|
733 |
$(RM) $(JGSS_WIN64_FILES_ZIP) |
|
734 |
$(CD) $(OUTPUTDIR) && \ |
|
735 |
$(ZIPEXE) -rq9 $(JGSS_WIN64_FILES_ZIP) $(JGSS_FILES_DIRS) |
|
736 |
endif |
|
737 |
@$(java-vm-cleanup) |
|
738 |
endif |
|
739 |
||
740 |
# Create rt.jar |
|
741 |
RT_JAR=$(ABS_TEMPDIR)/rt-orig.jar |
|
9351 | 742 |
$(RT_JAR): $(RT_JAR_FILELIST) $(RT_JAR_MANIFEST_FILE) |
2 | 743 |
$(prep-target) |
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
744 |
$(CD) $(CLASSBINDIR) && \ |
9351 | 745 |
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(RT_JAR_MANIFEST_FILE) $@ \ |
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
746 |
@$(RT_JAR_FILELIST) $(BOOT_JAR_JFLAGS) |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
747 |
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) |
2 | 748 |
|
749 |
# Meta-index construction to make core class loaders lazier |
|
750 |
||
751 |
BUILDMETAINDEX_JARFILE = $(ABS_BUILDTOOLJARDIR)/buildmetaindex.jar |
|
752 |
||
753 |
###################################################### |
|
754 |
# JRE Image |
|
755 |
###################################################### |
|
756 |
||
757 |
initial-image-jre-setup: |
|
758 |
$(RM) -r $(JRE_IMAGE_DIR) |
|
759 |
$(MKDIR) -p $(JRE_IMAGE_DIR) |
|
760 |
||
761 |
# 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
|
762 |
initial-image-jre-sol64:: initial-image-jre-setup |
2 | 763 |
@# Use tar instead of cp to preserve the symbolic links |
764 |
for dir in bin lib ; do \ |
|
765 |
( $(CD) $(OUTPUTDIR) && \ |
|
766 |
$(TAR) cf - `$(FIND) $$dir -name '$(ARCH)' -print` | \ |
|
767 |
($(CD) $(JRE_IMAGE_DIR) && $(TAR) xf -) ) ; \ |
|
768 |
done |
|
769 |
@# Remove some files from the jre area |
|
770 |
for t in $(NOTJRETOOLS) ; do \ |
|
771 |
$(RM) $(JRE_IMAGE_DIR)/bin$(ISA_DIR)/$$t ; \ |
|
772 |
done |
|
773 |
for l in $(NOTJRELIBS) ; do \ |
|
774 |
$(RM) $(JRE_IMAGE_DIR)/lib/$$l ; \ |
|
775 |
done |
|
776 |
$(RM) `$(FIND) $(JRE_IMAGE_DIR)/lib -name 'orb.idl'` |
|
777 |
$(RM) `$(FIND) $(JRE_IMAGE_DIR)/lib -name 'ir.idl'` |
|
778 |
||
779 |
# 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
|
780 |
# 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
|
781 |
# drive names like C: |
2 | 782 |
initial-image-jre:: initial-image-jre-setup \ |
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
783 |
$(JRE_DOCFILES) \ |
11678
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
784 |
$(RT_JAR) $(RESOURCES_JAR) $(JSSE_JAR) $(JFR_JAR) \ |
2 | 785 |
$(BUILDMETAINDEX_JARFILE) |
786 |
@# Copy in bin directory |
|
14091 | 787 |
ifeq ($(USING_MSYS),true) |
788 |
# No cpio in MinGW/MSYS |
|
789 |
$(CD) $(OUTPUTDIR) && $(TAR) -cf - bin | ($(CD) $(JRE_IMAGE_DIR) && $(TAR) -xpf -) |
|
790 |
else |
|
2 | 791 |
$(CD) $(OUTPUTDIR) && $(FIND) bin -depth | $(CPIO) -pdum $(JRE_IMAGE_DIR) |
14091 | 792 |
endif |
2 | 793 |
@# CTE plugin security change require new empty directory lib/applet |
794 |
$(MKDIR) -p $(JRE_IMAGE_DIR)/lib/applet |
|
795 |
@# Copy in lib directory |
|
14091 | 796 |
ifeq ($(USING_MSYS),true) |
797 |
# No cpio in MinGW/MSYS |
|
798 |
$(CD) $(OUTPUTDIR) && $(TAR) -cf - lib | ($(CD) $(JRE_IMAGE_DIR) && $(TAR) -xpf -) |
|
799 |
else |
|
2 | 800 |
$(CD) $(OUTPUTDIR) && $(FIND) lib -depth | $(CPIO) -pdum $(JRE_IMAGE_DIR) |
14091 | 801 |
endif |
802 |
||
5381
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
803 |
ifeq ($(USING_CYGWIN),true) |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
804 |
$(RM) -rf $(JRE_IMAGE_DIR)/[A-Za-z]: |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
805 |
$(RM) -rf $(OUTPUTDIR)/[A-Za-z]: |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
806 |
endif |
2 | 807 |
@# Make sure all directories are read/execute for everyone |
808 |
$(CHMOD) a+rx `$(FIND) $(JRE_IMAGE_DIR) -type d` |
|
809 |
@# Remove some files from the jre area |
|
810 |
for t in $(NOTJRETOOLS) ; do \ |
|
811 |
$(RM) $(JRE_IMAGE_DIR)/bin$(ISA_DIR)/$$t ; \ |
|
812 |
done |
|
813 |
for l in $(NOTJRELIBS) ; do \ |
|
814 |
$(RM) $(JRE_IMAGE_DIR)/lib/$$l ; \ |
|
815 |
done |
|
816 |
@# Remove orb.idl and ir.idl from jre |
|
817 |
$(FIND) $(JRE_IMAGE_DIR)/lib -name 'orb.idl' -exec $(RM) \{} \; |
|
818 |
$(FIND) $(JRE_IMAGE_DIR)/lib -name 'ir.idl' -exec $(RM) \{} \; |
|
819 |
@# Copy in rt.jar & resources.jar file |
|
820 |
$(CP) $(RT_JAR) $(JRE_IMAGE_DIR)/lib/rt.jar |
|
821 |
$(CP) $(RESOURCES_JAR) $(JRE_IMAGE_DIR)/lib/resources.jar |
|
822 |
$(CP) $(JSSE_JAR) $(JRE_IMAGE_DIR)/lib/jsse.jar |
|
11678
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
823 |
ifneq ($(JFR_JAR),) |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
824 |
$(CP) $(JFR_JAR) $(JRE_IMAGE_DIR)/lib/jfr.jar |
9d22454e9dad
7132386: makefile support for tracing/Java Flight Recorder framework phase I
rbackman
parents:
11366
diff
changeset
|
825 |
endif |
2 | 826 |
@# Generate meta-index to make boot and extension class loaders lazier |
827 |
$(CD) $(JRE_IMAGE_DIR)/lib && \ |
|
828 |
$(BOOT_JAVA_CMD) -jar $(BUILDMETAINDEX_JARFILE) \ |
|
829 |
-o meta-index *.jar |
|
830 |
@$(CD) $(JRE_IMAGE_DIR)/lib && $(java-vm-cleanup) |
|
831 |
$(CD) $(JRE_IMAGE_DIR)/lib/ext && \ |
|
832 |
$(BOOT_JAVA_CMD) -jar $(BUILDMETAINDEX_JARFILE) \ |
|
833 |
-o meta-index *.jar |
|
834 |
@$(CD) $(JRE_IMAGE_DIR)/lib/ext && $(java-vm-cleanup) |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
835 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
836 |
@#install jobjc, apple mac only |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
837 |
$(CP) $(OUTPUTDIR)/JObjC.build/JObjC.jar $(JRE_IMAGE_DIR)/lib/JObjC.jar |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
838 |
endif |
2 | 839 |
ifeq ($(PLATFORM), windows) |
840 |
@# Remove certain *.lib files |
|
841 |
$(CD) $(JRE_IMAGE_DIR)/lib && \ |
|
842 |
$(RM) java.$(LIB_SUFFIX) jvm.$(LIB_SUFFIX) \ |
|
7967 | 843 |
awt.$(LIB_SUFFIX) jawt.$(LIB_SUFFIX) |
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2763
diff
changeset
|
844 |
ifeq ($(ARCH_DATA_MODEL), 32) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2763
diff
changeset
|
845 |
@# 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
|
846 |
@# 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
|
847 |
$(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
|
848 |
endif |
2 | 849 |
endif # Windows |
850 |
ifneq ($(PLATFORM), windows) |
|
851 |
$(call copy-man-pages,$(JRE_IMAGE_DIR),$(JRE_MAN_PAGES)) |
|
852 |
endif # !windows |
|
853 |
||
854 |
# Trim out any extra files not for the jre shipment but wanted in the jdk jre. |
|
855 |
# (Note the jdk WILL want the jre image before this trimming) |
|
856 |
# Removes server VM on Windows 32bit. |
|
857 |
# Remove certain shared libraries that should not be in the jre image |
|
858 |
# but should be in the jdk jre image. |
|
859 |
trim-image-jre:: |
|
860 |
ifeq ($(PLATFORM), windows) |
|
861 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
862 |
$(RM) -r $(JRE_IMAGE_DIR)/bin/server |
|
863 |
endif |
|
864 |
ifdef NOTJRE_SHARED_LIBS |
|
865 |
for l in $(NOTJRE_SHARED_LIBS) ; do \ |
|
866 |
$(RM) $(JRE_IMAGE_DIR)/bin/$$l ; \ |
|
867 |
done ; |
|
868 |
endif |
|
869 |
else # PLATFORM |
|
870 |
ifdef NOTJRE_SHARED_LIBS |
|
871 |
for l in $(NOTJRE_SHARED_LIBS) ; do \ |
|
872 |
$(RM) $(JRE_IMAGE_DIR)/lib/$(LIBARCH)/$$l ; \ |
|
873 |
done ; |
|
874 |
endif |
|
875 |
endif # PLATFORM |
|
876 |
||
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
877 |
# 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
|
878 |
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
|
879 |
$(JRE_BIN_LIST): |
2 | 880 |
$(RM) $@ |
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
881 |
ifeq ($(PLATFORM), windows) |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
882 |
$(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
|
883 |
-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
|
884 |
else |
2 | 885 |
$(FIND) $(JRE_IMAGE_DIR)/lib -type f -name \*.$(LIB_SUFFIX) >> $@ |
12427 | 886 |
# The FILE command reports .debuginfo files as "ELF", but we don't want |
887 |
# those files in the JRE_BIN_LIST file. EXE_SUFFIX is empty on non-Windows. |
|
888 |
$(FILE) `$(FIND) $(JRE_IMAGE_DIR)/bin -type f ! -name '*.debuginfo' -name \*$(EXE_SUFFIX)` \ |
|
2 | 889 |
| $(EGREP) 'ELF' | $(CUT) -d':' -f1 >> $@ |
890 |
endif |
|
891 |
||
892 |
# Post process the image (strips and mcs on Elf files we are shipping) |
|
893 |
# (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
|
894 |
process-image-jre:: $(JRE_BIN_LIST) |
2 | 895 |
ifneq ($(POST_STRIP_PROCESS), ) |
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
896 |
@for f in `$(CAT) $(JRE_BIN_LIST)`; do \ |
2 | 897 |
$(CHMOD) u+w $${f}; \ |
898 |
$(ECHO) $(POST_STRIP_PROCESS) $${f}; \ |
|
899 |
$(POST_STRIP_PROCESS) $${f}; \ |
|
900 |
$(CHMOD) go-w $${f}; \ |
|
901 |
done |
|
902 |
endif |
|
903 |
ifneq ($(POST_MCS_PROCESS), ) |
|
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
904 |
@for f in `$(CAT) $(JRE_BIN_LIST)`; do \ |
2 | 905 |
$(CHMOD) u+w $${f}; \ |
906 |
$(ECHO) $(POST_MCS_PROCESS) $${f}; \ |
|
907 |
$(POST_MCS_PROCESS) $${f}; \ |
|
908 |
$(CHMOD) go-w $${f}; \ |
|
909 |
done |
|
910 |
endif |
|
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
911 |
@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
|
912 |
$(call binary_file_verification,$${f}); \ |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
913 |
done |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
914 |
$(RM) $(JRE_BIN_LIST) |
2 | 915 |
|
916 |
###################################################### |
|
917 |
# JDK Image |
|
918 |
###################################################### |
|
919 |
# Note: cpio ($(CPIO)) sometimes leaves directories without rx access. |
|
920 |
||
5381
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
921 |
# 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
|
922 |
# 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
|
923 |
# 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
|
924 |
# 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
|
925 |
# 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
|
926 |
# 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
|
927 |
# leaving these there. |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
928 |
# 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
|
929 |
# 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
|
930 |
# 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
|
931 |
# 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
|
932 |
# in "install". |
14091 | 933 |
|
2 | 934 |
initial-image-jdk-setup: |
935 |
$(RM) -r $(JDK_IMAGE_DIR) |
|
936 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/jre |
|
14091 | 937 |
ifeq ($(USING_MSYS),true) |
938 |
($(CD) $(JRE_IMAGE_DIR) && $(TAR) -cf - . \ |
|
939 |
| ($(CD) $(JDK_IMAGE_DIR)/jre && $(TAR) -xpf -)) |
|
940 |
else |
|
2 | 941 |
($(CD) $(JRE_IMAGE_DIR) && $(FIND) . -depth -print \ |
942 |
| $(CPIO) -pdum $(JDK_IMAGE_DIR)/jre ) |
|
14091 | 943 |
endif |
5381
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
944 |
ifeq ($(USING_CYGWIN),true) |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
945 |
$(RM) -rf $(JRE_IMAGE_DIR)/[A-Za-z]: |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
946 |
$(RM) -rf $(JDK_IMAGE_DIR)/jre/[A-Za-z]: |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
947 |
endif |
2 | 948 |
$(RM) -rf $(JDK_IMAGE_DIR)/jre/man |
949 |
$(CHMOD) a+rx `$(FIND) $(JDK_IMAGE_DIR) -type d` |
|
950 |
||
951 |
initial-image-jdk64-bindemos: |
|
952 |
for dir in bin demo ; do \ |
|
953 |
( $(CD) $(OUTPUTDIR) && \ |
|
954 |
$(TAR) cf - `$(FIND) $$dir -name '$(LIBARCH)' -print` | \ |
|
955 |
($(CD) $(JDK_IMAGE_DIR) && $(TAR) xf -) ) ; \ |
|
956 |
done |
|
957 |
||
958 |
# Solaris 64 bit image is special |
|
959 |
initial-image-jdk-sol64:: initial-image-jdk-setup \ |
|
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
960 |
initial-image-jdk64-bindemos |
2 | 961 |
|
962 |
# DB files to add |
|
963 |
ifdef OPENJDK |
|
964 |
||
965 |
initial-image-jdk-db: |
|
966 |
||
967 |
else |
|
968 |
||
969 |
# Create the list of db *.zip files to bundle with jdk |
|
970 |
ABS_DB_PATH :=$(call FullPath,$(CLOSED_SHARE_SRC)/db) |
|
971 |
DB_ZIP_LIST = $(shell $(LS) $(ABS_DB_PATH)/*.zip 2>/dev/null) |
|
972 |
||
9273
da8c6a765bc9
7036048: Bring the Java DB in JDK7 to the same level as JDK 6 (Java DB v10.6.2.1)
dwanvik
parents:
9021
diff
changeset
|
973 |
# Java DB image. Move the Java DB demo directory into the JDK's demo |
da8c6a765bc9
7036048: Bring the Java DB in JDK7 to the same level as JDK 6 (Java DB v10.6.2.1)
dwanvik
parents:
9021
diff
changeset
|
974 |
# dir and in the process, rename it to db. Also remove index.html, |
da8c6a765bc9
7036048: Bring the Java DB in JDK7 to the same level as JDK 6 (Java DB v10.6.2.1)
dwanvik
parents:
9021
diff
changeset
|
975 |
# since it presumes docs are co-located. Also remove register.html (no |
da8c6a765bc9
7036048: Bring the Java DB in JDK7 to the same level as JDK 6 (Java DB v10.6.2.1)
dwanvik
parents:
9021
diff
changeset
|
976 |
# longer relevant). |
2 | 977 |
initial-image-jdk-db: $(DB_ZIP_LIST) |
978 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/db |
|
979 |
for d in $(DB_ZIP_LIST); do \ |
|
980 |
($(CD) $(JDK_IMAGE_DIR)/db && $(UNZIP) -o $$d); \ |
|
981 |
done |
|
9824
9b1480806413
7046557: Changes to the Java DB README files in JDK7
dwanvik
parents:
9555
diff
changeset
|
982 |
$(CP) $(ABS_DB_PATH)/README-JDK.html $(JDK_IMAGE_DIR)/db |
12054
e395fe961b4a
7151595: Disable creation of db demos if NO_DEMOS is specified
mduigou
parents:
12047
diff
changeset
|
983 |
ifndef NO_DEMOS |
9273
da8c6a765bc9
7036048: Bring the Java DB in JDK7 to the same level as JDK 6 (Java DB v10.6.2.1)
dwanvik
parents:
9021
diff
changeset
|
984 |
$(RM) -rf $(DEMODIR)/db |
da8c6a765bc9
7036048: Bring the Java DB in JDK7 to the same level as JDK 6 (Java DB v10.6.2.1)
dwanvik
parents:
9021
diff
changeset
|
985 |
$(MV) $(JDK_IMAGE_DIR)/db/demo $(DEMODIR)/db |
9824
9b1480806413
7046557: Changes to the Java DB README files in JDK7
dwanvik
parents:
9555
diff
changeset
|
986 |
$(CP) $(ABS_DB_PATH)/README-JDK-DEMOS.html $(DEMODIR)/db/ |
12054
e395fe961b4a
7151595: Disable creation of db demos if NO_DEMOS is specified
mduigou
parents:
12047
diff
changeset
|
987 |
else |
e395fe961b4a
7151595: Disable creation of db demos if NO_DEMOS is specified
mduigou
parents:
12047
diff
changeset
|
988 |
$(RM) -rf $(JDK_IMAGE_DIR)/db/demo |
e395fe961b4a
7151595: Disable creation of db demos if NO_DEMOS is specified
mduigou
parents:
12047
diff
changeset
|
989 |
endif |
9273
da8c6a765bc9
7036048: Bring the Java DB in JDK7 to the same level as JDK 6 (Java DB v10.6.2.1)
dwanvik
parents:
9021
diff
changeset
|
990 |
$(RM) $(JDK_IMAGE_DIR)/db/index.html $(JDK_IMAGE_DIR)/db/register.html |
2 | 991 |
endif |
992 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
993 |
# The launcher source files we need for src.zip |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
994 |
FILES_launcher = $(wildcard $(SHARE_SRC)/bin/*) \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
995 |
$(wildcard $(PLATFORM_SRC)/bin/java_md*) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
996 |
|
2 | 997 |
# Standard jdk image |
998 |
initial-image-jdk:: initial-image-jdk-setup \ |
|
999 |
initial-image-jdk-db \ |
|
11331
245d2d6da902
7066713: Separate demos from the bundles on Solaris and Linux
cgruszka
parents:
10325
diff
changeset
|
1000 |
$(JDK_DOCFILES) \ |
245d2d6da902
7066713: Separate demos from the bundles on Solaris and Linux
cgruszka
parents:
10325
diff
changeset
|
1001 |
$(JDK_DEMOS_AND_SAMPLES_DOCFILES) |
2 | 1002 |
$(MKDIR) $(JDK_IMAGE_DIR)/lib |
1003 |
@# |
|
1004 |
@# Copy in the jars in lib that only belong in the JDK |
|
1005 |
@# |
|
1006 |
for l in $(NOTJRELIBS); do \ |
|
1007 |
if [ -r $(LIBDIR)/$$l ]; then \ |
|
1008 |
$(CP) $(LIBDIR)/$$l $(JDK_IMAGE_DIR)/lib; \ |
|
1009 |
fi; \ |
|
1010 |
done |
|
1011 |
ifeq ($(PLATFORM), windows) |
|
1012 |
@# |
|
1013 |
@# lib/ |
|
1014 |
@# |
|
1015 |
$(CP) $(LIBDIR)/$(LIB_PREFIX)jvm.$(LIB_SUFFIX) $(JDK_IMAGE_DIR)/lib |
|
1016 |
$(CP) $(LIBDIR)/$(LIB_PREFIX)jawt.$(LIB_SUFFIX) $(JDK_IMAGE_DIR)/lib |
|
1017 |
@# |
|
1018 |
@# bin/ |
|
1019 |
@# |
|
1020 |
@# copy all EXE files and only certain DLL files from BINDIR |
|
1021 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/bin |
|
1022 |
$(CP) $(BINDIR)/*$(EXE_SUFFIX) $(JDK_IMAGE_DIR)/bin |
|
1023 |
$(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
|
1024 |
ifeq ($(COMPILER_VERSION), VS2010) |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
1025 |
$(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
|
1026 |
endif |
2 | 1027 |
else # PLATFORM |
1028 |
@# |
|
1029 |
@# bin/ |
|
1030 |
@# |
|
1031 |
($(CD) $(BINDIR)/.. && $(TAR) cf - \ |
|
1032 |
`$(FIND) bin \( -type f -o -type l \) -print `) | \ |
|
1033 |
($(CD) $(JDK_IMAGE_DIR) && $(TAR) xf -) |
|
1034 |
endif # PLATFORM |
|
1035 |
@# |
|
1036 |
@# files that might not exist need to be touched. |
|
1037 |
@# |
|
11825
267ac03556be
7140918: Remove dependency on apt and com.sun.mirror API
alanb
parents:
11682
diff
changeset
|
1038 |
$(TOUCH) $(CLASSBINDIR)/META-INF/services/com.sun.tools.internal.xjc.Plugin |
2 | 1039 |
@# |
1040 |
@# lib/tools.jar |
|
1041 |
@# |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
1042 |
$(CD) $(CLASSBINDIR) && \ |
8993
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
8588
diff
changeset
|
1043 |
$(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
|
1044 |
$(TOOLS) $(BOOT_JAR_JFLAGS) |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
1045 |
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) |
2 | 1046 |
$(CP) $(LIBDIR)/tools.jar $(JDK_IMAGE_DIR)/lib/tools.jar |
1047 |
@# |
|
1048 |
@# lib/ct.sym |
|
1049 |
@# |
|
1050 |
$(MKDIR) -p $(OUTPUTDIR)/symbols/META-INF/sym |
|
1051 |
$(JAVAC_CMD) -XDprocess.packages -proc:only \ |
|
1052 |
-processor com.sun.tools.javac.sym.CreateSymbols \ |
|
1053 |
-Acom.sun.tools.javac.sym.Jar=$(RT_JAR) \ |
|
1054 |
-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
|
1055 |
$(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
|
1056 |
$(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
|
1057 |
-C $(OUTPUTDIR)/symbols META-INF $(BOOT_JAR_JFLAGS) |
2 | 1058 |
@$(java-vm-cleanup) |
1059 |
$(CP) $(LIBDIR)/ct.sym $(JDK_IMAGE_DIR)/lib/ct.sym |
|
1060 |
@# |
|
1061 |
@# CORBA supported orb.idl and ir.idl should be copied to lib |
|
1062 |
@# |
|
1063 |
$(CP) $(LIBDIR)/orb.idl $(JDK_IMAGE_DIR)/lib/orb.idl |
|
1064 |
$(CP) $(LIBDIR)/ir.idl $(JDK_IMAGE_DIR)/lib/ir.idl |
|
1065 |
ifeq ($(PLATFORM), linux) |
|
1066 |
@# |
|
1067 |
@# on Linux copy jexec from jre/lib to /lib |
|
1068 |
@# |
|
1069 |
$(CP) $(LIBDIR)/jexec $(JDK_IMAGE_DIR)/lib/jexec |
|
1070 |
endif # PLATFORM |
|
1071 |
@# |
|
1072 |
@# src.zip |
|
1073 |
@# |
|
1074 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/src |
|
1075 |
@# |
|
1076 |
@# The '*-*' pattern in the find command excludes files named with dashes, |
|
1077 |
@# such as the java.nio templates for generated classes |
|
1078 |
@# |
|
1079 |
@# The Linux 'tar' command cannot handle the huge command line argument |
|
1080 |
@# generated by the more efficient solaris/windows method of copying files. |
|
1081 |
@# So for Linux, make use of the -T option (like Solaris' -I option) of |
|
1082 |
@# obtaining the list of files from a file. MKS tar has no such option. |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
1083 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
1084 |
ifneq (,$(findstring $(PLATFORM), linux macosx)) |
2 | 1085 |
for d in $(SOURCE_DIRS); do \ |
1086 |
$(RM) $(ABS_TEMPDIR)/src-files.list; \ |
|
1087 |
($(CD) $$d && \ |
|
1088 |
for sd in $(SOURCES) ; do \ |
|
1089 |
if [ -d $$sd ] ; then \ |
|
1090 |
$(FIND) $$sd $(SOURCE_FILES_filter) \ |
|
1091 |
-name '*.java' -print \ |
|
1092 |
>> $(ABS_TEMPDIR)/src-files.list ; \ |
|
1093 |
fi; \ |
|
1094 |
done ; \ |
|
1095 |
) ; \ |
|
1096 |
if [ -f $(ABS_TEMPDIR)/src-files.list ] ; then \ |
|
1097 |
($(CD) $$d && $(TAR) cf - -T $(ABS_TEMPDIR)/src-files.list ) \ |
|
1098 |
| ($(CD) $(JDK_IMAGE_DIR)/src && $(TAR) xf -); \ |
|
1099 |
fi; \ |
|
1100 |
done |
|
1101 |
else |
|
1102 |
for d in $(SOURCE_DIRS); do \ |
|
1103 |
$(RM) $(ABS_TEMPDIR)/src-files.list; \ |
|
1104 |
($(CD) $$d && \ |
|
1105 |
for sd in $(SOURCES) ; do \ |
|
1106 |
if [ -d $$sd ] ; then \ |
|
1107 |
$(FIND) $$sd $(SOURCE_FILES_filter) \ |
|
1108 |
-name '*.java' -print \ |
|
1109 |
>> $(ABS_TEMPDIR)/src-files.list ; \ |
|
1110 |
fi; \ |
|
1111 |
done ; \ |
|
1112 |
) ; \ |
|
1113 |
if [ -f $(ABS_TEMPDIR)/src-files.list ] ; then \ |
|
1114 |
($(CD) $$d && $(TAR) cf - `$(CAT) $(ABS_TEMPDIR)/src-files.list`) \ |
|
1115 |
| ($(CD) $(JDK_IMAGE_DIR)/src && $(TAR) xf -); \ |
|
1116 |
fi; \ |
|
1117 |
done |
|
1118 |
endif |
|
1119 |
$(RM) $(ABS_TEMPDIR)/src-files.list |
|
1120 |
$(CHMOD) -R +w $(JDK_IMAGE_DIR)/src |
|
1121 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/src/launcher |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11994
diff
changeset
|
1122 |
$(CP) $(FILES_launcher) $(JDK_IMAGE_DIR)/src/launcher |
2 | 1123 |
$(CD) $(JDK_IMAGE_DIR)/src && $(ZIPEXE) -qr ../src.zip * |
1124 |
$(RM) -r $(JDK_IMAGE_DIR)/src |
|
1125 |
@# |
|
1126 |
@# demo, include |
|
1127 |
@# |
|
11994
74f1488b7347
7143162: Allow disable building of jdk demos and samples
mduigou
parents:
11826
diff
changeset
|
1128 |
ifndef NO_DEMOS |
2 | 1129 |
$(CP) -r -f $(DEMODIR) $(JDK_IMAGE_DIR) |
11994
74f1488b7347
7143162: Allow disable building of jdk demos and samples
mduigou
parents:
11826
diff
changeset
|
1130 |
endif |
74f1488b7347
7143162: Allow disable building of jdk demos and samples
mduigou
parents:
11826
diff
changeset
|
1131 |
ifndef NO_SAMPLES |
2 | 1132 |
$(CP) -r -f $(SAMPLEDIR) $(JDK_IMAGE_DIR) |
11994
74f1488b7347
7143162: Allow disable building of jdk demos and samples
mduigou
parents:
11826
diff
changeset
|
1133 |
endif |
2 | 1134 |
$(CP) -r $(INCLUDEDIR) $(JDK_IMAGE_DIR) |
1135 |
@# |
|
1136 |
@# Swing BeanInfo generation |
|
1137 |
@# |
|
1138 |
$(CD) javax/swing/beaninfo && $(MAKE) swing-1.2-beans |
|
1139 |
ifneq ($(PLATFORM), windows) |
|
1140 |
$(call copy-man-pages,$(JDK_IMAGE_DIR),$(JDK_MAN_PAGES)) |
|
1141 |
endif # !windows |
|
1142 |
||
1143 |
# Trim out files we don't want to ship |
|
1144 |
trim-image-jdk:: |
|
1145 |
@# Remove tools that should not be part of SDK. |
|
1146 |
for t in $(NOTJDKTOOLS); do \ |
|
7967 | 1147 |
$(RM) $(JDK_IMAGE_DIR)/bin/$${t}$(EXE_SUFFIX); \ |
2 | 1148 |
done |
1149 |
||
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1150 |
# 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
|
1151 |
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
|
1152 |
$(JDK_BIN_LIST): |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1153 |
ifeq ($(PLATFORM), windows) |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1154 |
$(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
|
1155 |
-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
|
1156 |
$(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
|
1157 |
-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
|
1158 |
else |
2 | 1159 |
$(RM) $@ |
1160 |
$(FIND) $(JDK_IMAGE_DIR)/jre/lib -type f -name \*.$(LIB_SUFFIX) >> $@ |
|
12427 | 1161 |
# The FILE command reports .debuginfo files as "ELF", but we don't want |
1162 |
# those files in the JDK_BIN_LIST file. EXE_SUFFIX is empty on non-Windows. |
|
1163 |
$(FILE) `$(FIND) $(JDK_IMAGE_DIR)/jre/bin -type f ! -name '*.debuginfo' -name \*$(EXE_SUFFIX)` \ |
|
2 | 1164 |
| $(EGREP) 'ELF' | $(CUT) -d':' -f1 >> $@ |
12427 | 1165 |
file `$(FIND) $(JDK_IMAGE_DIR)/bin -type f ! -name '*.debuginfo' -name \*$(EXE_SUFFIX)` \ |
2 | 1166 |
| $(EGREP) 'ELF' | $(CUT) -d':' -f1 >> $@ |
1167 |
endif |
|
1168 |
||
1169 |
# 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
|
1170 |
process-image-jdk:: $(JDK_BIN_LIST) |
2 | 1171 |
ifneq ($(POST_STRIP_PROCESS), ) |
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1172 |
@for f in `$(CAT) $(JDK_BIN_LIST)`; do \ |
2 | 1173 |
$(CHMOD) u+w $${f}; \ |
1174 |
$(ECHO) $(POST_STRIP_PROCESS) $${f}; \ |
|
1175 |
$(POST_STRIP_PROCESS) $${f}; \ |
|
1176 |
$(CHMOD) go-w $${f}; \ |
|
1177 |
done |
|
1178 |
endif |
|
1179 |
ifneq ($(POST_MCS_PROCESS), ) |
|
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1180 |
@for f in `$(CAT) $(JDK_BIN_LIST)`; do \ |
2 | 1181 |
$(CHMOD) u+w $${f}; \ |
1182 |
$(ECHO) $(POST_MCS_PROCESS) $${f}; \ |
|
1183 |
$(POST_MCS_PROCESS) $${f}; \ |
|
1184 |
$(CHMOD) go-w $${f}; \ |
|
1185 |
done |
|
1186 |
endif |
|
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1187 |
@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
|
1188 |
$(call binary_file_verification,$${f}); \ |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1189 |
done |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1190 |
$(RM) $(JDK_BIN_LIST) |
2 | 1191 |
|
1192 |
################################################################### |
|
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1193 |
# What did we build |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1194 |
################################################################### |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1195 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1196 |
# 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
|
1197 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1198 |
JDK_INFO_FILE = $(JDK_IMAGE_DIR)/release |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1199 |
JRE_INFO_FILE = $(JRE_IMAGE_DIR)/release |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1200 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1201 |
# 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
|
1202 |
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
|
1203 |
$(PRINTF) '%s="%s"\n' $1 $2 >> $@ |
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1204 |
endef |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1205 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1206 |
# Values to emit |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1207 |
MINIMUM_OS_NAME := $(REQUIRED_OS_NAME) |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1208 |
MINIMUM_OS_VERSION := $(REQUIRED_OS_VERSION) |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1209 |
MINIMUM_OS_ARCH := $(ARCH) |
9359 | 1210 |
ALL_SOURCE_TIPS = $(shell \ |
1211 |
if [ -f $(SOURCE_TIPS) ] ; then \ |
|
1212 |
$(CAT) $(SOURCE_TIPS) ; \ |
|
1213 |
fi) |
|
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1214 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1215 |
$(JDK_INFO_FILE): FRC |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1216 |
$(prep-target) |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1217 |
$(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
|
1218 |
$(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
|
1219 |
$(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
|
1220 |
$(call info-file-item, "OS_ARCH", "$(MINIMUM_OS_ARCH)") |
9359 | 1221 |
$(call info-file-item, "SOURCE", "$(ALL_SOURCE_TIPS)") |
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1222 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1223 |
# Create release file to identify this image |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1224 |
identify-image-jdk:: $(JDK_INFO_FILE) |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1225 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1226 |
$(JRE_INFO_FILE): FRC |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1227 |
$(prep-target) |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1228 |
$(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
|
1229 |
$(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
|
1230 |
$(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
|
1231 |
$(call info-file-item, "OS_ARCH", "$(MINIMUM_OS_ARCH)") |
9359 | 1232 |
$(call info-file-item, "SOURCE", "$(ALL_SOURCE_TIPS)") |
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1233 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1234 |
# Create release file to identify this image |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1235 |
identify-image-jre:: $(JRE_INFO_FILE) |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1236 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1237 |
################################################################### |
2 | 1238 |
# What do we compare against |
1239 |
################################################################### |
|
1240 |
||
1241 |
# The temporary files and areas created |
|
1242 |
TEMP_PREV_JRE_BASE_DIR=$(TEMPDIR)/previous_jre |
|
1243 |
TEMP_PREV_JDK_BASE_DIR=$(TEMPDIR)/previous_jdk |
|
1244 |
TEMP_PREV_JRE_COMPARISON=$(TEMP_PREV_JRE_BASE_DIR)/previous_jre_comparison.txt |
|
1245 |
TEMP_PREV_JDK_COMPARISON=$(TEMP_PREV_JDK_BASE_DIR)/previous_jdk_comparison.txt |
|
1246 |
TEMP_PREV_JRE_IMAGE_DIR=$(TEMP_PREV_JRE_BASE_DIR)/jre$(PREVIOUS_JDK_VERSION) |
|
1247 |
TEMP_PREV_JDK_IMAGE_DIR=$(TEMP_PREV_JDK_BASE_DIR)/jdk$(PREVIOUS_JDK_VERSION) |
|
1248 |
||
1249 |
# unbundle(sourcedir,bundlename,destdir) |
|
1250 |
# logic is slightly different if a .tar.gz file (linux) |
|
1251 |
define unbundle |
|
1252 |
$(RM) -r $3 |
|
1253 |
$(MKDIR) -p $3 |
|
1254 |
$(CP) $1 $3 |
|
1255 |
if [ "`$(BASENAME) $2 .gz`" != "$2" ] ; then \ |
|
1256 |
( $(CD) $3 && ( $(GUNZIP) -dc $2 | $(TAR) xf - ) && $(RM) $2 ); \ |
|
1257 |
else \ |
|
1258 |
( $(CD) $3 && $(TAR) xf $2 && $(RM) $2 ); \ |
|
1259 |
fi |
|
1260 |
( $(CD) $3 && $(RM) $2 ) |
|
1261 |
endef |
|
1262 |
||
1263 |
# In general, ignore the fastdebug tree, and changes in the demo and sample area |
|
1264 |
COMPARE_FILTER = | $(EGREP) -v /fastdebug/ | $(EGREP) -v /demo/ | $(EGREP) -v /sample/ |
|
1265 |
||
1266 |
# 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
|
1267 |
ifdef PREVIOUS_RELEASE_IMAGE |
2 | 1268 |
|
1269 |
# 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
|
1270 |
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
|
1271 |
PREV_JDK_IMAGE_DIR=$(PREVIOUS_RELEASE_IMAGE) |
2 | 1272 |
|
1273 |
else |
|
1274 |
||
1275 |
# Use the temp images we will create |
|
1276 |
PREV_JRE_IMAGE_DIR=$(TEMP_PREV_JRE_IMAGE_DIR) |
|
1277 |
PREV_JDK_IMAGE_DIR=$(TEMP_PREV_JDK_IMAGE_DIR) |
|
1278 |
||
1279 |
# Force the installation in this case |
|
1280 |
compare-image:: install-previous-sanity install-previous-jre install-previous-jdk |
|
1281 |
||
1282 |
# Unbundle the jre |
|
1283 |
$(TEMP_PREV_JRE_IMAGE_DIR)/bin/java$(EXE_SUFFIX): $(PREVIOUS_JRE_BUNDLE) |
|
1284 |
$(call unbundle,$(PREVIOUS_JRE_BUNDLE),$(PREVIOUS_JRE_FILE),$(TEMP_PREV_JRE_BASE_DIR)) |
|
1285 |
$(TOUCH) $@ |
|
1286 |
||
1287 |
# Unbundle the jdk |
|
1288 |
$(TEMP_PREV_JDK_IMAGE_DIR)/bin/java$(EXE_SUFFIX): $(PREVIOUS_JDK_BUNDLE) |
|
1289 |
$(call unbundle,$(PREVIOUS_JDK_BUNDLE),$(PREVIOUS_JDK_FILE),$(TEMP_PREV_JDK_BASE_DIR)) |
|
1290 |
$(TOUCH) $@ |
|
1291 |
||
1292 |
endif |
|
1293 |
||
1294 |
# Make sure all images have a java in them (used as the touch file) |
|
1295 |
install-previous-sanity: |
|
1296 |
@if [ ! -f $(PREVIOUS_JRE_BUNDLE) ]; then \ |
|
1297 |
$(ECHO) "ERROR: You do not have access to the previous java release jre bundles. \n" \ |
|
1298 |
" Please check your access to \n" \ |
|
1299 |
" $(PREVIOUS_JRE_BUNDLE) \n" \ |
|
1300 |
" and/or check your value of ALT_PREVIOUS_RELEASE_PATH or ALT_PREVIOUS_JRE_FILE \n" \ |
|
1301 |
" This will affect you if you build the images target. \n" \ |
|
1302 |
"" >> $(ERROR_FILE) ; \ |
|
1303 |
fi |
|
1304 |
@if [ ! -f $(PREVIOUS_JDK_BUNDLE) ]; then \ |
|
1305 |
$(ECHO) "ERROR: You do not have access to the previous java release sdk bundles. \n" \ |
|
1306 |
" Please check your access to \n" \ |
|
1307 |
" $(PREVIOUS_sdk_BUNDLE) \n" \ |
|
1308 |
" and/or check your value of ALT_PREVIOUS_RELEASE_PATH or ALT_PREVIOUS_JDK_FILE. \n" \ |
|
1309 |
" This will affect you if you build the images target. \n" \ |
|
1310 |
"" >> $(ERROR_FILE) ; \ |
|
1311 |
fi |
|
1312 |
install-previous-jre: $(PREV_JRE_IMAGE_DIR)/bin/java$(EXE_SUFFIX) |
|
1313 |
install-previous-jdk: $(PREV_JDK_IMAGE_DIR)/bin/java$(EXE_SUFFIX) |
|
1314 |
||
1315 |
# Create the jre comparison report |
|
1316 |
$(TEMP_PREV_JRE_COMPARISON): install-previous-jre $(DIRDIFF_JARFILE) |
|
1317 |
$(prep-target) |
|
1318 |
$(BOOT_JAVA_CMD) -jar $(DIRDIFF_JARFILE) \ |
|
1319 |
$(PREV_JRE_IMAGE_DIR) $(JRE_IMAGE_DIR) | $(SORT) > $@ |
|
1320 |
@$(java-vm-cleanup) |
|
1321 |
||
1322 |
# Create the jdk comparison report |
|
1323 |
$(TEMP_PREV_JDK_COMPARISON): install-previous-jdk $(DIRDIFF_JARFILE) |
|
1324 |
$(prep-target) |
|
1325 |
$(BOOT_JAVA_CMD) -jar $(DIRDIFF_JARFILE) \ |
|
1326 |
$(PREV_JDK_IMAGE_DIR) $(JDK_IMAGE_DIR) | $(SORT) > $@ |
|
1327 |
@$(java-vm-cleanup) |
|
1328 |
||
1329 |
# Clean up names in the messages printed out |
|
12604
4b1837b6c764
7168208: Change use of @ in one sed command involving paths to different character
ihse
parents:
12427
diff
changeset
|
1330 |
CAT_FILTER = $(SED) -e "s|$(JDK_IMAGE_DIR)|JDK_IMAGE|g" \ |
4b1837b6c764
7168208: Change use of @ in one sed command involving paths to different character
ihse
parents:
12427
diff
changeset
|
1331 |
-e "s|$(JRE_IMAGE_DIR)|JRE_IMAGE|g" |
2 | 1332 |
|
1333 |
# Report on the jre image comparison |
|
1334 |
compare-image-jre: $(TEMP_PREV_JRE_COMPARISON) |
|
1335 |
@$(ECHO) "JRE Image Comparison to version $(PREVIOUS_JDK_VERSION)" |
|
1336 |
@$(ECHO) " Previous: $(PREV_JRE_IMAGE_DIR)" |
|
1337 |
@$(ECHO) " Current: $(JRE_IMAGE_DIR)" |
|
1338 |
@$(CAT) $< $(COMPARE_FILTER) | $(CAT_FILTER) |
|
1339 |
( $(ECHO) " " ; $(CAT) $< | $(CAT_FILTER) ; $(ECHO) " " ) >> $(WARNING_FILE) |
|
1340 |
||
1341 |
# Report on the jdk image comparison |
|
1342 |
compare-image-jdk: $(TEMP_PREV_JDK_COMPARISON) |
|
1343 |
@$(ECHO) "JDK Image Comparison to version $(PREVIOUS_JDK_VERSION)" |
|
1344 |
@$(ECHO) " Previous: $(PREV_JDK_IMAGE_DIR)" |
|
1345 |
@$(ECHO) " Current: $(JDK_IMAGE_DIR)" |
|
1346 |
$(CAT) $< $(COMPARE_FILTER) | $(CAT_FILTER) |
|
1347 |
( $(ECHO) " " ; $(CAT) $< | $(CAT_FILTER) ; $(ECHO) " " ) >> $(WARNING_FILE) |
|
1348 |
||
1349 |
# Do both image comparisons |
|
1350 |
compare-image:: compare-image-jre compare-image-jdk |
|
1351 |
||
1352 |
# Clean up any temp images and reports |
|
1353 |
compare-image-clobber: |
|
1354 |
$(RM) -r $(TEMP_PREV_JRE_BASE_DIR) |
|
1355 |
$(RM) -r $(TEMP_PREV_JDK_BASE_DIR) |
|
1356 |
||
1357 |
###################################################### |
|
1358 |
# clobber |
|
1359 |
###################################################### |
|
1360 |
images-clobber:: |
|
1361 |
$(RM) -r $(REORDER_TEMPDIR) |
|
1362 |
$(RM) -r $(JARFILELISTS_TEMPDIR) |
|
1363 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
1364 |
$(CD) javax/swing/beaninfo && $(MAKE) swingbeans.clobber |
|
1365 |
$(RM) -r $(CLASSBINDIR)/META-INF |
|
1366 |
$(RM) $(TEMPDIR)/tmp.jar |
|
1367 |
endif |
|
1368 |
ifeq ($(PLATFORM), linux) |
|
1369 |
$(RM) -r $(OUTPUTDIR)/$(ARCH) |
|
1370 |
endif |
|
1371 |
ifeq ($(PLATFORM), windows) |
|
1372 |
$(RM) $(TEMPDIR)/rebase.input |
|
1373 |
endif |
|
1374 |
$(RM) -r $(JDK_IMAGE_DIR) |
|
1375 |
$(RM) -r $(JRE_IMAGE_DIR) |
|
1376 |
||
1377 |
images images-clobber:: |
|
1378 |
@$(ECHO) ">>>Finished making "$@" @ `$(DATE)` ..." |
|
1379 |
@$(java-vm-cleanup) |
|
1380 |
||
1381 |
.PHONY: images image-jre image-jdk \ |
|
1382 |
initial-image-jre initial-image-jdk \ |
|
1383 |
initial-image-jre-sol64 initial-image-jdk-sol64 \ |
|
1384 |
initial-image-jdk-setup \ |
|
1385 |
initial-image-jdk-db \ |
|
1386 |
initial-image-jdk64-bindemos \ |
|
1387 |
initial-image-jre-setup \ |
|
1388 |
trim-image-jre trim-image-jdk \ |
|
1389 |
process-image-jre process-image-jdk \ |
|
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1390 |
identify-image-jre identify-image-jdk \ |
2 | 1391 |
install-previous-jre install-previous-jdk \ |
1392 |
compare-image-jre compare-image-jdk \ |
|
1393 |
compare-image compare-image-clobber \ |
|
1394 |
images-clobber |
|
1395 |
||
1396 |
# Force rule |
|
1397 |
FRC: |