12892
|
1 |
#
|
|
2 |
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
|
|
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
|
|
7 |
# published by the Free Software Foundation. Oracle designates this
|
|
8 |
# particular file as subject to the "Classpath" exception as provided
|
|
9 |
# by Oracle in the LICENSE file that accompanied this code.
|
|
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 |
#
|
|
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.
|
|
24 |
#
|
|
25 |
|
|
26 |
include $(SPEC)
|
|
27 |
include MakeBase.gmk
|
|
28 |
include JavaCompilation.gmk
|
|
29 |
include Setup.gmk
|
|
30 |
|
|
31 |
default: $(IMAGES_OUTPUTDIR)/_the.images
|
|
32 |
|
|
33 |
include Tools.gmk
|
|
34 |
|
|
35 |
JARS:=
|
|
36 |
|
|
37 |
##########################################################################################
|
|
38 |
|
|
39 |
JCONSOLE_JAR_DEPS := \
|
|
40 |
$(shell $(FIND) $(JDK_OUTPUTDIR)/newclasses/sun/tools/jconsole/ -name "_the.package") \
|
|
41 |
$(shell $(FIND) $(JDK_OUTPUTDIR)/newclasses/com/sun/tools/jconsole/ -name "_the.package")
|
|
42 |
|
|
43 |
$(eval $(call SetupArchive,BUILD_JCONSOLE_JAR,$(JCONSOLE_JAR_DEPS),\
|
|
44 |
SRCS:=$(JDK_OUTPUTDIR)/newclasses,\
|
|
45 |
SUFFIXES:=.class .gif .png,\
|
|
46 |
INCLUDES:=sun/tools/jconsole com/sun/tools/jconsole,\
|
|
47 |
JARMAIN:=sun.tools.jconsole.JConsole,\
|
|
48 |
JAR:=$(JDK_OUTPUTDIR)/lib/jconsole.jar,\
|
|
49 |
SKIP_METAINF:=true))
|
|
50 |
|
|
51 |
JARS+=$(JDK_OUTPUTDIR)/lib/jconsole.jar
|
|
52 |
|
|
53 |
##########################################################################################
|
|
54 |
|
|
55 |
CHARSETS_JAR_DEPS :=
|
|
56 |
|
|
57 |
$(eval $(call SetupArchive,BUILD_CHARSETS_JAR,$(CHARSETS_JAR_DEPS),\
|
|
58 |
SRCS:=$(JDK_OUTPUTDIR)/newclasses, \
|
|
59 |
SUFFIXES:=.class .dat,\
|
|
60 |
INCLUDES:=sun/nio/cs/ext,\
|
|
61 |
EXTRA_FILES := sun/awt/HKSCS.class \
|
|
62 |
sun/awt/motif/X11GBK.class \
|
|
63 |
'sun/awt/motif/X11GB2312$$$$Decoder.class' \
|
|
64 |
sun/awt/motif/X11GB2312.class \
|
|
65 |
'sun/awt/motif/X11KSC5601$$$$Decoder.class' \
|
|
66 |
'sun/awt/motif/X11KSC5601$$$$Encoder.class' \
|
|
67 |
'sun/awt/motif/X11GB2312$$$$Encoder.class' \
|
|
68 |
'sun/awt/motif/X11GBK$$$$Encoder.class' \
|
|
69 |
sun/awt/motif/X11KSC5601.class \
|
|
70 |
META-INF/services/java.nio.charset.spi.CharsetProvider, \
|
|
71 |
JAR:=$(JDK_OUTPUTDIR)/lib/charsets.jar, \
|
|
72 |
JARMAIN := NONE, \
|
|
73 |
SKIP_METAINF := true))
|
|
74 |
|
|
75 |
JARS+=$(JDK_OUTPUTDIR)/lib/charsets.jar
|
|
76 |
|
|
77 |
##########################################################################################
|
|
78 |
|
|
79 |
SUNPKCS11_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunpkcs11.jar
|
|
80 |
|
|
81 |
ifndef OPENJDK
|
|
82 |
|
|
83 |
SUNPKCS11_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/pkcs11/sunpkcs11.jar
|
|
84 |
|
|
85 |
$(SUNPKCS11_JAR_DST) : $(SUNPKCS11_JAR_SRC)
|
|
86 |
@$(ECHO) "\n>>>Installing prebuilt SunPKCS11 provider..."
|
|
87 |
$(RM) $@
|
|
88 |
$(CP) $< $@
|
|
89 |
|
|
90 |
else
|
|
91 |
|
|
92 |
$(eval $(call SetupArchive,BUILD_SUNPKCS11_JAR,$(SUNPKCS11_JAR_DEPS),\
|
|
93 |
SRCS:=$(JDK_OUTPUTDIR)/newclasses, \
|
|
94 |
SUFFIXES:=.class,\
|
|
95 |
INCLUDES:=sun/security/pkcs11,\
|
|
96 |
JAR:=$(SUNPKCS11_JAR_DST), \
|
|
97 |
JARMAIN := NONE, \
|
|
98 |
SKIP_METAINF := true))
|
|
99 |
|
|
100 |
endif
|
|
101 |
|
|
102 |
JARS += $(SUNPKCS11_JAR_DST)
|
|
103 |
|
|
104 |
##########################################################################################
|
|
105 |
|
|
106 |
SUNEC_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunec.jar
|
|
107 |
|
|
108 |
ifndef OPENJDK
|
|
109 |
|
|
110 |
SUNEC_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ec/sunec.jar
|
|
111 |
|
|
112 |
$(SUNEC_JAR_DST) : $(SUNEC_JAR_SRC)
|
|
113 |
@$(ECHO) "\n>>>Installing prebuilt SunEC provider..."
|
|
114 |
$(RM) $@
|
|
115 |
$(CP) $< $@
|
|
116 |
|
|
117 |
else
|
|
118 |
|
|
119 |
$(eval $(call SetupArchive,BUILD_SUNEC_JAR,$(SUNEC_JAR_DEPS),\
|
|
120 |
SRCS:=$(JDK_OUTPUTDIR)/newclasses, \
|
|
121 |
SUFFIXES:=.class,\
|
|
122 |
INCLUDES:=sun/security/ec,\
|
|
123 |
EXCLUDE_FILES := \
|
|
124 |
sun/security/ec/ECKeyFactory.class \
|
|
125 |
sun/security/ec/ECParameters.class \
|
|
126 |
sun/security/ec/ECPrivateKeyImpl.class \
|
|
127 |
sun/security/ec/ECPublicKeyImpl.class \
|
|
128 |
sun/security/ec/NamedCurve.class \
|
|
129 |
'sun/security/ec/ECKeyFactory$$$$1.class' \
|
|
130 |
'sun/security/ec/ECKeyFactory$$$$2.class' ,\
|
|
131 |
JAR:=$(SUNEC_JAR_DST), \
|
|
132 |
JARMAIN := NONE, \
|
|
133 |
SKIP_METAINF := true))
|
|
134 |
|
|
135 |
endif
|
|
136 |
|
|
137 |
JARS += $(SUNEC_JAR_DST)
|
|
138 |
|
|
139 |
##########################################################################################
|
|
140 |
|
|
141 |
# TODO: deps?
|
|
142 |
$(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR,$(SWINGBEANS_JAR_DEPS),\
|
|
143 |
SRCS:=$(JDK_OUTPUTDIR)/newclasses,\
|
|
144 |
SUFFIXES:=BeanInfo.class .gif,\
|
|
145 |
INCLUDES:=javax/swing sun/swing,\
|
|
146 |
EXCLUDES:=javax/swing/plaf,\
|
|
147 |
EXTRA_FILES:=javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class,\
|
|
148 |
JAR:=$(JDK_OUTPUTDIR)/lib/dt.jar,\
|
|
149 |
JARMAIN:=NONE,\
|
|
150 |
SKIP_METAINF:=true))
|
|
151 |
|
|
152 |
JARS+=$(JDK_OUTPUTDIR)/lib/dt.jar
|
|
153 |
|
|
154 |
##########################################################################################
|
|
155 |
|
|
156 |
# Need to define BUILDDIR for Release.gmk to work
|
|
157 |
BUILDDIR=$(JDK_TOPDIR)/makefiles
|
|
158 |
include common/Defs.gmk
|
|
159 |
include common/Release.gmk
|
|
160 |
|
|
161 |
# A rudimentary attempt at band-aiding the dependency tracking.
|
|
162 |
DEPS:= $(shell $(FIND) $(JDK_OUTPUTDIR)/newclasses -name "*.class" -type f) \
|
|
163 |
$(shell $(FIND) $(JDK_OUTPUTDIR)/bin -type f) \
|
|
164 |
$(shell $(FIND) $(JDK_OUTPUTDIR)/lib -type f)
|
|
165 |
|
|
166 |
$(IMAGES_OUTPUTDIR)/_the.images : $(DEPS) $(JARS)
|
|
167 |
$(MKDIR) -p $(@D)
|
|
168 |
# Restart this makefile, ugly, but since double colon (::) rules
|
|
169 |
# have been used in Release.gmk, it is impossible to craft on
|
|
170 |
# dependencies on these. I.e. -do-not-use- :: rules!!!!!
|
|
171 |
# Repeat after me: -do-not-use- :: rules!!!!!
|
|
172 |
$(MAKE) -j1 -f OldImages.gmk $(IMAGES_MAKE_ARGS) images
|
|
173 |
$(TOUCH) $@
|
|
174 |
|
|
175 |
.PHONY: default
|