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