2
|
1 |
#
|
|
2 |
# Copyright 2007 Sun Microsystems, Inc. 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. Sun designates this
|
|
8 |
# particular file as subject to the "Classpath" exception as provided
|
|
9 |
# by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
22 |
# CA 95054 USA or visit www.sun.com if you need additional information or
|
|
23 |
# have any questions.
|
|
24 |
#
|
|
25 |
|
|
26 |
#
|
|
27 |
# Makefile for building jce.jar and the various cryptographic strength
|
|
28 |
# policy jar files.
|
|
29 |
#
|
|
30 |
|
|
31 |
#
|
|
32 |
# (The terms "OpenJDK" and "JDK" below refer to OpenJDK and Sun JDK builds
|
|
33 |
# respectively.)
|
|
34 |
#
|
|
35 |
# JCE builds are very different between OpenJDK and JDK. The OpenJDK JCE
|
|
36 |
# jar files do not require signing, but those for JDK do. If an unsigned
|
|
37 |
# jar file is installed into JDK, things will break when the crypto
|
|
38 |
# routines are called.
|
|
39 |
#
|
|
40 |
# This Makefile does the "real" build of the JCE files. There are some
|
|
41 |
# javac options currently specific to JCE, so we recompile now to make
|
|
42 |
# sure any implicit compilations didn't use any incorrect flags.
|
|
43 |
#
|
|
44 |
# For OpenJDK, the jar files built here are installed directly into the
|
|
45 |
# OpenJDK.
|
|
46 |
#
|
|
47 |
# For JDK, the binaries use pre-built/pre-signed/pre-obfuscated binary
|
|
48 |
# files stored in the closed workspace that are not shipped in the
|
|
49 |
# OpenJDK workspaces. We still build the JDK files here to verify the
|
|
50 |
# files compile, and in preparation for possible signing and
|
|
51 |
# obfuscation. Developers working on JCE in JDK must sign the JCE files
|
|
52 |
# before testing: obfuscation is optional during development. The JCE
|
|
53 |
# signing key is kept separate from the JDK workspace to prevent its
|
|
54 |
# disclosure. The obfuscation tool has not been licensed for general
|
|
55 |
# usage.
|
|
56 |
#
|
|
57 |
# SPECIAL NOTE TO JCE/JDK developers: The source files must eventually
|
|
58 |
# be built, obfuscated, signed, and the resulting jar files *MUST BE
|
|
59 |
# CHECKED INTO THE CLOSED PART OF THE WORKSPACE*. This separate step
|
|
60 |
# *MUST NOT BE FORGOTTEN*, otherwise a bug fixed in the source code will
|
|
61 |
# not be reflected in the shipped binaries. The "release" target should
|
|
62 |
# be used to generate the required files.
|
|
63 |
#
|
|
64 |
# There are a number of targets to help both JDK/OpenJDK developers.
|
|
65 |
#
|
|
66 |
# Main Targets (JDK/OPENJDK):
|
|
67 |
#
|
|
68 |
# all/clobber/clean The usual.
|
|
69 |
# If OpenJDK, installs
|
|
70 |
# jce.jar/limited policy files.
|
|
71 |
# If JDK, installs prebuilt
|
|
72 |
# jce.jar/limited policy files.
|
|
73 |
#
|
|
74 |
# jar Builds/installs jce.jar
|
|
75 |
# If OpenJDK, does not sign
|
|
76 |
# If JDK, tries to sign
|
|
77 |
#
|
|
78 |
# Other lesser-used Targets (JDK/OPENJDK):
|
|
79 |
#
|
|
80 |
# build-jar Builds jce.jar (does not sign/install)
|
|
81 |
#
|
|
82 |
# build-policy Builds policy files (does not sign/install)
|
|
83 |
#
|
|
84 |
# install-jar Alias for "jar" above
|
|
85 |
#
|
|
86 |
# install-limited Builds/installs limited policy files
|
|
87 |
# If OpenJDK, does not sign
|
|
88 |
# If JDK, tries to sign
|
|
89 |
# install-unlimited Builds/nstalls unlimited policy files
|
|
90 |
# If OpenJDK, does not sign
|
|
91 |
# If JDK, tries to sign
|
|
92 |
#
|
|
93 |
# Other targets (JDK only):
|
|
94 |
#
|
|
95 |
# sign Alias for sign-jar and sign-policy
|
|
96 |
# sign-jar Builds/signs jce.jar file (no install)
|
|
97 |
# sign-policy Builds/signs policy files (no install)
|
|
98 |
#
|
|
99 |
# obfus Builds/obfuscates/signs/installs jce.jar
|
|
100 |
#
|
|
101 |
# release Builds all targets in preparation
|
|
102 |
# for workspace integration.
|
|
103 |
#
|
|
104 |
# install-prebuilt Installs the pre-built jar files
|
|
105 |
#
|
|
106 |
# This makefile was written to support parallel target execution.
|
|
107 |
#
|
|
108 |
|
|
109 |
BUILDDIR = ../..
|
|
110 |
PACKAGE = javax.crypto
|
|
111 |
PRODUCT = sun
|
|
112 |
|
|
113 |
include $(BUILDDIR)/common/Defs.gmk
|
|
114 |
include Defs-jce.gmk
|
|
115 |
|
|
116 |
#
|
|
117 |
# Location for the newly built classfiles.
|
|
118 |
#
|
|
119 |
CLASSDESTDIR = $(TEMPDIR)/classes
|
|
120 |
|
|
121 |
#
|
|
122 |
# Subdirectories of these are automatically included.
|
|
123 |
#
|
|
124 |
AUTO_FILES_JAVA_DIRS = \
|
|
125 |
javax/crypto \
|
|
126 |
sun/security/internal/interfaces \
|
|
127 |
sun/security/internal/spec
|
|
128 |
|
|
129 |
include $(BUILDDIR)/common/Classes.gmk
|
|
130 |
|
|
131 |
#
|
|
132 |
# Rules
|
|
133 |
#
|
|
134 |
|
|
135 |
#
|
|
136 |
# Some licensees do not get the security sources, but we still need to
|
|
137 |
# be able to build "all" for them. Check here to see if the sources were
|
|
138 |
# available. If not, then we don't need to continue this rule.
|
|
139 |
#
|
|
140 |
|
|
141 |
ifdef OPENJDK
|
|
142 |
all: build-jar install-jar build-policy install-limited
|
|
143 |
else # OPENJDK
|
|
144 |
ifeq ($(strip $(FILES_java)),)
|
|
145 |
all:
|
|
146 |
$(no-source-warning)
|
|
147 |
else # FILES_java/policy files available
|
|
148 |
all: build-jar build-policy
|
|
149 |
$(build-warning)
|
|
150 |
endif # $(FILES_java)/policy files available
|
|
151 |
endif # OPENJDK
|
|
152 |
|
|
153 |
#
|
|
154 |
# We use a variety of subdirectories in the $(TEMPDIR) depending on what
|
|
155 |
# part of the build we're doing. Both OPENJDK/JDK builds are initially
|
|
156 |
# done in the unsigned area. When files are signed or obfuscated in JDK,
|
|
157 |
# they will be placed in the appropriate areas.
|
|
158 |
#
|
|
159 |
UNSIGNED_DIR = $(TEMPDIR)/unsigned
|
|
160 |
|
|
161 |
|
|
162 |
# =====================================================
|
|
163 |
# Build the unsigned jce.jar file. Signing/obfuscation comes later.
|
|
164 |
#
|
|
165 |
|
|
166 |
JAR_DESTFILE = $(LIBDIR)/jce.jar
|
|
167 |
|
|
168 |
#
|
|
169 |
# JCE building is somewhat involved.
|
|
170 |
#
|
|
171 |
# OpenJDK: Since we do not ship prebuilt JCE files, previous compiles
|
|
172 |
# in the build may have needed JCE class signatures. There were then
|
|
173 |
# implicitly built by javac (likely using the boot javac). While using
|
|
174 |
# those class files was fine for signatures, we need to rebuild using
|
|
175 |
# the right compiler.
|
|
176 |
#
|
|
177 |
# JDK: Even through the jce.jar was previously installed, since the
|
|
178 |
# source files are accessible in the source directories, they will
|
|
179 |
# always be "newer" than the prebuilt files inside the jar, and thus
|
|
180 |
# make will always rebuild them. (We could "hide" the JCE source in a
|
|
181 |
# separate directory, but that would make the build logic for JDK and
|
|
182 |
# OpenJDK more complicated.)
|
|
183 |
#
|
|
184 |
# Thus in either situation, we shouldn't use these files.
|
|
185 |
#
|
|
186 |
# To make sure the classes were built with the right compiler options,
|
|
187 |
# delete the existing files in $(CLASSBINDIR), rebuild the right way in a
|
|
188 |
# directory under $(TEMPDIR), then copy the files back to
|
|
189 |
# $(CLASSBINDIR). Building in $(TEMPDIR) allows us to use our make
|
|
190 |
# infrastructure without modification: .classes.list, macros, etc.
|
|
191 |
#
|
|
192 |
|
|
193 |
#
|
|
194 |
# The list of directories that will be remade from scratch, using the
|
|
195 |
# right compilers/options.
|
|
196 |
#
|
|
197 |
DELETE_DIRS = $(patsubst %, $(CLASSBINDIR)/%, $(AUTO_FILES_JAVA_DIRS))
|
|
198 |
|
|
199 |
#
|
|
200 |
# Since the -C option to jar is used below, each directory entry must be
|
|
201 |
# preceded with the appropriate directory to "cd" into.
|
|
202 |
#
|
|
203 |
JAR_DIRS = $(patsubst %, -C $(CLASSDESTDIR) %, $(AUTO_FILES_JAVA_DIRS))
|
|
204 |
|
|
205 |
build-jar: $(UNSIGNED_DIR)/jce.jar
|
|
206 |
|
|
207 |
#
|
|
208 |
# Build jce.jar, then replace the previously built JCE files in the
|
|
209 |
# classes directory with these. This ensures we have consistently built
|
|
210 |
# files throughout the workspaces.
|
|
211 |
#
|
|
212 |
$(UNSIGNED_DIR)/jce.jar: prebuild build $(JCE_MANIFEST_FILE)
|
|
213 |
$(prep-target)
|
|
214 |
$(BOOT_JAR_CMD) cmf $(JCE_MANIFEST_FILE) $@ $(JAR_DIRS) \
|
|
215 |
$(JAR_JFLAGS)
|
|
216 |
$(CP) -r $(CLASSDESTDIR)/* $(CLASSBINDIR)
|
|
217 |
@$(java-vm-cleanup)
|
|
218 |
|
|
219 |
build: prebuild
|
|
220 |
|
|
221 |
prebuild:
|
|
222 |
$(RM) -r $(DELETE_DIRS)
|
|
223 |
|
|
224 |
|
|
225 |
# =====================================================
|
|
226 |
# Build the unsigned policy files.
|
|
227 |
#
|
|
228 |
# Given the current state of world export/import policies,
|
|
229 |
# these settings work for Sun's situation. This note is not
|
|
230 |
# legal guidance, you must still resolve any export/import issues
|
|
231 |
# applicable for your situation. Contact your export/import
|
|
232 |
# counsel for more information.
|
|
233 |
#
|
|
234 |
|
|
235 |
POLICY_DESTDIR = $(LIBDIR)/security
|
|
236 |
UNSIGNED_POLICY_BUILDDIR = $(UNSIGNED_DIR)/policy
|
|
237 |
|
|
238 |
build-policy: unlimited limited
|
|
239 |
|
|
240 |
#
|
|
241 |
# Build the unsigned unlimited policy files.
|
|
242 |
#
|
|
243 |
unlimited: \
|
|
244 |
$(UNSIGNED_POLICY_BUILDDIR)/unlimited/US_export_policy.jar \
|
|
245 |
$(UNSIGNED_POLICY_BUILDDIR)/unlimited/local_policy.jar
|
|
246 |
|
|
247 |
$(UNSIGNED_POLICY_BUILDDIR)/unlimited/US_export_policy.jar: \
|
|
248 |
policy/unlimited/default_US_export.policy \
|
|
249 |
policy/unlimited/UNLIMITED
|
|
250 |
$(prep-target)
|
|
251 |
$(BOOT_JAR_CMD) cmf policy/unlimited/UNLIMITED $@ \
|
|
252 |
-C policy/unlimited default_US_export.policy \
|
|
253 |
$(JAR_JFLAGS)
|
|
254 |
@$(java-vm-cleanup)
|
|
255 |
|
|
256 |
$(UNSIGNED_POLICY_BUILDDIR)/unlimited/local_policy.jar: \
|
|
257 |
policy/unlimited/default_local.policy \
|
|
258 |
policy/unlimited/UNLIMITED
|
|
259 |
$(prep-target)
|
|
260 |
$(BOOT_JAR_CMD) cmf policy/unlimited/UNLIMITED $@ \
|
|
261 |
-C policy/unlimited default_local.policy \
|
|
262 |
$(JAR_JFLAGS)
|
|
263 |
@$(java-vm-cleanup)
|
|
264 |
|
|
265 |
#
|
|
266 |
# Build the unsigned limited policy files.
|
|
267 |
#
|
|
268 |
# NOTE: We currently do not place restrictions on our limited export
|
|
269 |
# policy. This was not a typo.
|
|
270 |
#
|
|
271 |
limited: \
|
|
272 |
$(UNSIGNED_POLICY_BUILDDIR)/limited/US_export_policy.jar \
|
|
273 |
$(UNSIGNED_POLICY_BUILDDIR)/limited/local_policy.jar
|
|
274 |
|
|
275 |
$(UNSIGNED_POLICY_BUILDDIR)/limited/US_export_policy.jar: \
|
|
276 |
$(UNSIGNED_POLICY_BUILDDIR)/unlimited/US_export_policy.jar
|
|
277 |
$(install-file)
|
|
278 |
|
|
279 |
$(UNSIGNED_POLICY_BUILDDIR)/limited/local_policy.jar: \
|
|
280 |
policy/limited/default_local.policy \
|
|
281 |
policy/limited/exempt_local.policy \
|
|
282 |
policy/limited/LIMITED
|
|
283 |
$(prep-target)
|
|
284 |
$(BOOT_JAR_CMD) cmf policy/limited/LIMITED $@ \
|
|
285 |
-C policy/limited default_local.policy \
|
|
286 |
-C policy/limited exempt_local.policy \
|
|
287 |
$(JAR_JFLAGS)
|
|
288 |
@$(java-vm-cleanup)
|
|
289 |
|
|
290 |
UNSIGNED_POLICY_FILES = \
|
|
291 |
$(UNSIGNED_POLICY_BUILDDIR)/unlimited/US_export_policy.jar \
|
|
292 |
$(UNSIGNED_POLICY_BUILDDIR)/unlimited/local_policy.jar \
|
|
293 |
$(UNSIGNED_POLICY_BUILDDIR)/limited/US_export_policy.jar \
|
|
294 |
$(UNSIGNED_POLICY_BUILDDIR)/limited/local_policy.jar \
|
|
295 |
|
|
296 |
|
|
297 |
ifndef OPENJDK
|
|
298 |
# =====================================================
|
|
299 |
# Sign the various jar files. Not needed for OpenJDK.
|
|
300 |
#
|
|
301 |
|
|
302 |
SIGNED_DIR = $(TEMPDIR)/signed
|
|
303 |
SIGNED_POLICY_BUILDDIR = $(SIGNED_DIR)/policy
|
|
304 |
|
|
305 |
SIGNED_POLICY_FILES = \
|
|
306 |
$(patsubst $(UNSIGNED_POLICY_BUILDDIR)/%,$(SIGNED_POLICY_BUILDDIR)/%, \
|
|
307 |
$(UNSIGNED_POLICY_FILES))
|
|
308 |
|
|
309 |
sign: sign-jar sign-policy
|
|
310 |
|
|
311 |
sign-jar: $(SIGNED_DIR)/jce.jar
|
|
312 |
|
|
313 |
sign-policy: $(SIGNED_POLICY_FILES)
|
|
314 |
|
|
315 |
$(SIGNED_DIR)/jce.jar: $(UNSIGNED_DIR)/jce.jar
|
|
316 |
$(sign-file)
|
|
317 |
|
|
318 |
$(SIGNED_POLICY_BUILDDIR)/unlimited/US_export_policy.jar: \
|
|
319 |
$(UNSIGNED_POLICY_BUILDDIR)/unlimited/US_export_policy.jar
|
|
320 |
$(sign-file)
|
|
321 |
|
|
322 |
$(SIGNED_POLICY_BUILDDIR)/unlimited/local_policy.jar: \
|
|
323 |
$(UNSIGNED_POLICY_BUILDDIR)/unlimited/local_policy.jar
|
|
324 |
$(sign-file)
|
|
325 |
|
|
326 |
$(SIGNED_POLICY_BUILDDIR)/limited/US_export_policy.jar: \
|
|
327 |
$(UNSIGNED_POLICY_BUILDDIR)/limited/US_export_policy.jar
|
|
328 |
$(sign-file)
|
|
329 |
|
|
330 |
$(SIGNED_POLICY_BUILDDIR)/limited/local_policy.jar: \
|
|
331 |
$(UNSIGNED_POLICY_BUILDDIR)/limited/local_policy.jar
|
|
332 |
$(sign-file)
|
|
333 |
|
|
334 |
|
|
335 |
# =====================================================
|
|
336 |
# Obfuscate/sign/install the JDK build. Not needed for OpenJDK.
|
|
337 |
#
|
|
338 |
|
|
339 |
OBFUS_DIR = $(TEMPDIR)/obfus
|
|
340 |
|
|
341 |
CLOSED_DIR = $(BUILDDIR)/closed/javax/crypto
|
|
342 |
|
|
343 |
obfus: $(OBFUS_DIR)/jce.jar
|
|
344 |
$(release-warning)
|
|
345 |
|
|
346 |
$(OBFUS_DIR)/jce.jar: build-jar $(JCE_MANIFEST_FILE)
|
|
347 |
$(presign)
|
|
348 |
$(preobfus)
|
|
349 |
@$(ECHO) ">>>Obfuscating JCE framework..."
|
|
350 |
$(prep-target)
|
|
351 |
$(CD) $(OBFUS_DIR); \
|
|
352 |
$(OBFUSCATOR) -fv \
|
|
353 |
$(CURRENT_DIRECTORY)/$(CLOSED_DIR)/obfus/framework.dox
|
|
354 |
@$(CD) $(OBFUS_DIR); $(java-vm-cleanup)
|
|
355 |
@# The sun.security.internal classes are currently not obfuscated
|
|
356 |
@# due to an obfus problem. Manually copy them to the build directory
|
|
357 |
@# so that they are included in the jce.jar file.
|
|
358 |
$(CP) -r $(CLASSDESTDIR)/sun $(OBFUS_DIR)/build
|
|
359 |
$(RM) $(UNSIGNED_DIR)/jce.jar
|
|
360 |
$(BOOT_JAR_CMD) cmf $(JCE_MANIFEST_FILE) $@ \
|
|
361 |
-C $(OBFUS_DIR)/build javax \
|
|
362 |
-C $(OBFUS_DIR)/build sun \
|
|
363 |
$(JAR_JFLAGS)
|
|
364 |
$(sign-target)
|
|
365 |
$(MKDIR) -p $(dir $(JAR_DESTFILE))
|
|
366 |
$(RM) $(JAR_DESTFILE)
|
|
367 |
$(CP) $@ $(JAR_DESTFILE)
|
|
368 |
@$(java-vm-cleanup)
|
|
369 |
|
|
370 |
#
|
|
371 |
# The current obfuscator has a limitation in that it currently only
|
|
372 |
# supports up to v49 class file format. Force v49 classfiles in our
|
|
373 |
# builds for now.
|
|
374 |
#
|
|
375 |
TARGET_CLASS_VERSION = 5
|
|
376 |
|
|
377 |
|
|
378 |
# =====================================================
|
|
379 |
# Create the Release Engineering files. Obfuscated builds,
|
|
380 |
# unlimited policy file distribution, etc.
|
|
381 |
#
|
|
382 |
|
|
383 |
release: $(OBFUS_DIR)/jce.jar sign-policy
|
|
384 |
$(RM) -r \
|
|
385 |
$(RELEASE_DIR)/UnlimitedJCEPolicy \
|
|
386 |
$(RELEASE_DIR)/jce.jar \
|
|
387 |
$(RELEASE_DIR)/US_export_policy.jar \
|
|
388 |
$(RELEASE_DIR)/local_policy.jar \
|
|
389 |
$(RELEASE_DIR)/UnlimitedJCEPolicy.zip
|
|
390 |
$(MKDIR) -p $(RELEASE_DIR)/UnlimitedJCEPolicy
|
|
391 |
$(CP) $(OBFUS_DIR)/jce.jar $(RELEASE_DIR)
|
|
392 |
$(CP) -r \
|
|
393 |
$(SIGNED_POLICY_BUILDDIR)/limited/US_export_policy.jar \
|
|
394 |
$(SIGNED_POLICY_BUILDDIR)/limited/local_policy.jar \
|
|
395 |
$(RELEASE_DIR)
|
|
396 |
$(CP) \
|
|
397 |
$(SIGNED_POLICY_BUILDDIR)/unlimited/US_export_policy.jar \
|
|
398 |
$(SIGNED_POLICY_BUILDDIR)/unlimited/local_policy.jar \
|
|
399 |
$(RELEASE_DIR)/UnlimitedJCEPolicy
|
|
400 |
$(CP) $(CLOSED_DIR)/doc/COPYRIGHT.html \
|
|
401 |
$(CLOSED_DIR)/doc/README.txt $(RELEASE_DIR)/UnlimitedJCEPolicy
|
|
402 |
cd $(RELEASE_DIR) ; \
|
|
403 |
$(ZIPEXE) -qr UnlimitedJCEPolicy.zip UnlimitedJCEPolicy
|
|
404 |
$(release-warning)
|
|
405 |
|
|
406 |
endif # OPENJDK
|
|
407 |
|
|
408 |
|
|
409 |
# =====================================================
|
|
410 |
# Install routines.
|
|
411 |
#
|
|
412 |
|
|
413 |
#
|
|
414 |
# Install jce.jar, depending on which type is requested.
|
|
415 |
#
|
|
416 |
install-jar jar: $(JAR_DESTFILE)
|
|
417 |
ifndef OPENJDK
|
|
418 |
$(release-warning)
|
|
419 |
endif
|
|
420 |
|
|
421 |
ifdef OPENJDK
|
|
422 |
$(JAR_DESTFILE): $(UNSIGNED_DIR)/jce.jar
|
|
423 |
else
|
|
424 |
$(JAR_DESTFILE): $(SIGNED_DIR)/jce.jar
|
|
425 |
endif
|
|
426 |
$(install-file)
|
|
427 |
|
|
428 |
#
|
|
429 |
# Install the appropriate policy file, depending on the type of build.
|
|
430 |
#
|
|
431 |
ifdef OPENJDK
|
|
432 |
INSTALL_POLICYDIR = $(UNSIGNED_POLICY_BUILDDIR)
|
|
433 |
else
|
|
434 |
INSTALL_POLICYDIR = $(SIGNED_POLICY_BUILDDIR)
|
|
435 |
endif
|
|
436 |
|
|
437 |
install-limited: \
|
|
438 |
$(INSTALL_POLICYDIR)/limited/US_export_policy.jar \
|
|
439 |
$(INSTALL_POLICYDIR)/limited/local_policy.jar
|
|
440 |
$(MKDIR) -p $(POLICY_DESTDIR)
|
|
441 |
$(RM) \
|
|
442 |
$(POLICY_DESTDIR)/US_export_policy.jar \
|
|
443 |
$(POLICY_DESTDIR)/local_policy.jar
|
|
444 |
$(CP) $^ $(POLICY_DESTDIR)
|
|
445 |
ifndef OPENJDK
|
|
446 |
$(release-warning)
|
|
447 |
endif
|
|
448 |
|
|
449 |
install-unlimited: \
|
|
450 |
$(INSTALL_POLICYDIR)/unlimited/US_export_policy.jar \
|
|
451 |
$(INSTALL_POLICYDIR)/unlimited/local_policy.jar
|
|
452 |
$(MKDIR) -p $(POLICY_DESTDIR)
|
|
453 |
$(RM) \
|
|
454 |
$(POLICY_DESTDIR)/US_export_policy.jar \
|
|
455 |
$(POLICY_DESTDIR)/local_policy.jar
|
|
456 |
$(CP) $^ $(POLICY_DESTDIR)
|
|
457 |
ifndef OPENJDK
|
|
458 |
$(release-warning)
|
|
459 |
endif
|
|
460 |
|
|
461 |
ifndef OPENJDK
|
|
462 |
install-prebuilt:
|
|
463 |
@$(ECHO) "\n>>>Installing prebuilt JCE framework..."
|
|
464 |
$(RM) $(JAR_DESTFILE) \
|
|
465 |
$(POLICY_DESTDIR)/US_export_policy.jar \
|
|
466 |
$(POLICY_DESTDIR)/local_policy.jar
|
|
467 |
$(CP) $(PREBUILT_DIR)/jce/jce.jar $(JAR_DESTFILE)
|
|
468 |
$(CP) \
|
|
469 |
$(PREBUILT_DIR)/jce/US_export_policy.jar \
|
|
470 |
$(PREBUILT_DIR)/jce/local_policy.jar \
|
|
471 |
$(POLICY_DESTDIR)
|
|
472 |
endif
|
|
473 |
|
|
474 |
|
|
475 |
# =====================================================
|
|
476 |
# Support routines.
|
|
477 |
#
|
|
478 |
|
|
479 |
clobber clean::
|
|
480 |
$(RM) -r $(JAR_DESTFILE) $(POLICY_DESTDIR)/US_export_policy.jar \
|
|
481 |
$(POLICY_DESTDIR)/local_policy.jar $(DELETE_DIRS) $(TEMPDIR)
|
|
482 |
|
|
483 |
.PHONY: build-jar jar build-policy unlimited limited install-jar \
|
|
484 |
install-limited install-unlimited
|
|
485 |
ifndef OPENJDK
|
|
486 |
.PHONY: sign sign-jar sign-policy obfus release install-prebuilt
|
|
487 |
endif
|