Makefile revision 3261
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
784a904bd06c7492361ed09a882d10c636b1291bAutomatic Updater# This code is free software; you can redistribute it and/or modify it
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# under the terms of the GNU General Public License version 2 only, as
db0008c4486414b81e90dca9938e1fc2320e5133Automatic Updater# published by the Free Software Foundation. Oracle designates this
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# particular file as subject to the "Classpath" exception as provided
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# by Oracle in the LICENSE file that accompanied this code.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# This code is distributed in the hope that it will be useful, but WITHOUT
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# version 2 for more details (a copy is included in the LICENSE file that
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# accompanied this code).
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# You should have received a copy of the GNU General Public License version
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# 2 along with this work; if not, write to the Free Software Foundation,
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# or visit www.oracle.com if you need additional information or have any
cf58feee56bf1afb8c2909f399a6f1e28d0dbf68Jeremy Reed# questions.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Makefile for building jce.jar and the various cryptographic strength
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# policy jar files.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# (The terms "OpenJDK" and "JDK" below refer to OpenJDK and Sun JDK builds
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# respectively.)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# JCE builds are very different between OpenJDK and JDK. The OpenJDK JCE
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# jar files do not require signing, but those for JDK do. If an unsigned
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# jar file is installed into JDK, things will break when the crypto
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# routines are called.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
26d8ffe715e74d1e67d268551449b780fec1b95fAutomatic Updater# This Makefile does the "real" build of the JCE files. There are some
ca4e44ebe8f3b29a426fe047c4192262ca660c6fAutomatic Updater# javac options currently specific to JCE, so we recompile now to make
784a904bd06c7492361ed09a882d10c636b1291bAutomatic Updater# sure any implicit compilations didn't use any incorrect flags.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# For OpenJDK, the jar files built here are installed directly into the
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# OpenJDK.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# For JDK, the binaries use pre-built/pre-signed binary files stored in
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# the closed workspace that are not shipped in the OpenJDK workspaces.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# We still build the JDK files here to verify the files compile, and in
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# preparation for possible signing. Developers working on JCE in JDK
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt# must sign the JCE files before testing. The JCE signing key is kept
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt# separate from the JDK workspace to prevent its disclosure.
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# SPECIAL NOTE TO JCE/JDK developers: The source files must eventually
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# be built and signed, and the resulting jar files *MUST BE CHECKED INTO
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont# THE CLOSED PART OF THE WORKSPACE*. This separate step *MUST NOT BE
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# FORGOTTEN*, otherwise a bug fixed in the source code will not be
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# reflected in the shipped binaries. The "release" target should be
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# used to generate the required files.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# There are a number of targets to help both JDK/OpenJDK developers.
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Main Targets (JDK/OPENJDK):
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# all/clobber/clean The usual.
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# If OpenJDK: builds/installs the
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# jce.jar/limited policy files.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If JDK: builds but does not install.
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt# During full tops-down builds,
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# prebuilt/presigned jce.jar &
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# limited policy files are copied
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# in by make/java/redist/Makefile.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If you are working in this directory
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# and want to install the prebuilts,
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# use the "install-prebuilt" target.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# jar Builds/installs jce.jar
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If OpenJDK, does not sign
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If JDK, tries to sign
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# Other lesser-used Targets (JDK/OPENJDK):
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont#
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# build-jar Builds jce.jar (does not sign/install)
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont#
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# build-policy Builds policy files (does not sign/install)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# install-jar Alias for "jar" above
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# install-limited Builds/installs limited policy files
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If OpenJDK, does not sign
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If JDK, tries to sign
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# install-unlimited Builds/nstalls unlimited policy files
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If OpenJDK, does not sign
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If JDK, tries to sign
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Other targets (JDK only):
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt#
aaaf8d4f4873d21e55c3ffb4f656203d08339865Mark Andrews# sign Alias for sign-jar and sign-policy
aaaf8d4f4873d21e55c3ffb4f656203d08339865Mark Andrews# sign-jar Builds/signs jce.jar file (no install)
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews# sign-policy Builds/signs policy files (no install)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt# release Builds all targets in preparation
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt# for workspace integration.
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt#
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt# install-prebuilt Installs the pre-built jar files
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt#
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt# This makefile was written to support parallel target execution.
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis DupontBUILDDIR = ../..
2a31bd531072824ef252c18303859d6af7451b00Francis DupontMODULE = base
2a31bd531072824ef252c18303859d6af7451b00Francis DupontPACKAGE = javax.crypto
2a31bd531072824ef252c18303859d6af7451b00Francis DupontPRODUCT = sun
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# The following is for when we need to do postprocessing
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# (signing) against a read-only build. If the OUTPUTDIR
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# isn't writable, the build currently crashes out.
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt#
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Huntifndef OPENJDK
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt ifdef ALT_JCE_BUILD_DIR
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt # =====================================================
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt # Where to place the output, in case we're building from a read-only
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt # build area. (e.g. a release engineering build.)
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt JCE_BUILD_DIR=${ALT_JCE_BUILD_DIR}
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt IGNORE_WRITABLE_OUTPUTDIR_TEST=true
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt else
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt JCE_BUILD_DIR=${TEMPDIR}
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt endif
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Huntendif
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupontinclude $(BUILDDIR)/common/Defs.gmk
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont#
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont# Location for the newly built classfiles.
f80b665135127a12ca503c8830aa465aa1ddd17dEvan Hunt#
8b78c993cb475cc94e88560941b28c37684789d9Francis DupontCLASSDESTDIR = $(TEMPDIR)/classes
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont#
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont# Subdirectories of these are automatically included.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis DupontAUTO_FILES_JAVA_DIRS = \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont javax/crypto \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont sun/security/internal/interfaces \
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt sun/security/internal/spec
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Huntinclude $(BUILDDIR)/common/Classes.gmk
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Rules
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Some licensees do not get the security sources, but we still need to
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# be able to build "all" for them. Check here to see if the sources were
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# available. If not, then we don't need to continue this rule.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontifdef OPENJDK
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontall: build-jar install-jar build-policy install-limited
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontelse # OPENJDK
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontifeq ($(strip $(FILES_java)),)
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontall:
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(no-source-warning)
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontelse # FILES_java/policy files available
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontall: build-jar build-policy
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(build-warning)
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontendif # $(FILES_java)/policy files available
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontendif # OPENJDK
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont#
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# We use a variety of subdirectories in the $(TEMPDIR) depending on what
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# part of the build we're doing. Both OPENJDK/JDK builds are initially
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# done in the unsigned area. When files are signed in JDK, they will be
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# placed in the appropriate areas.
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis DupontUNSIGNED_DIR = $(TEMPDIR)/unsigned
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude Defs-jce.gmk
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# =====================================================
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Build the unsigned jce.jar file. Signing comes later.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis DupontJAR_DESTFILE = $(LIBDIR)/jce.jar
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# JCE building is somewhat involved.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# OpenJDK: Since we do not ship prebuilt JCE files, previous compiles
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# in the build may have needed JCE class signatures. There were then
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# implicitly built by javac (likely using the boot javac). While using
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# those class files was fine for signatures, we need to rebuild using
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# the right compiler.
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# JDK: Even through the jce.jar was previously installed, since the
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# source files are accessible in the source directories, they will
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# always be "newer" than the prebuilt files inside the jar, and thus
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# make will always rebuild them. (We could "hide" the JCE source in a
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# separate directory, but that would make the build logic for JDK and
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# OpenJDK more complicated.)
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt#
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# Thus in either situation, we shouldn't use these files.
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt#
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# To make sure the classes were built with the right compiler options,
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# delete the existing files in $(CLASSBINDIR), rebuild the right way in a
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# directory under $(TEMPDIR), then copy the files back to
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# $(CLASSBINDIR). Building in $(TEMPDIR) allows us to use our make
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# infrastructure without modification: .classes.list, macros, etc.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# The list of directories that will be remade from scratch, using the
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# right compilers/options.
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis DupontDELETE_DIRS = $(patsubst %, $(CLASSBINDIR)/%, $(AUTO_FILES_JAVA_DIRS))
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Since the -C option to jar is used below, each directory entry must be
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# preceded with the appropriate directory to "cd" into.
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntJAR_DIRS = $(patsubst %, -C $(CLASSDESTDIR) %, $(AUTO_FILES_JAVA_DIRS))
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Huntbuild-jar: $(UNSIGNED_DIR)/jce.jar
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt#
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Build jce.jar, then replace the previously built JCE files in the
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# classes directory with these. This ensures we have consistently built
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# files throughout the workspaces.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(UNSIGNED_DIR)/jce.jar: prebuild build $(JCE_MANIFEST_FILE)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(prep-target)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(BOOT_JAR_CMD) cmf $(JCE_MANIFEST_FILE) $@ $(JAR_DIRS) \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(BOOT_JAR_JFLAGS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(CP) -r $(CLASSDESTDIR)/* $(CLASSBINDIR)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont @$(java-vm-cleanup)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Huntbuild: prebuild
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Huntprebuild:
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt $(RM) -r $(DELETE_DIRS)
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt# =====================================================
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt# Build the unsigned policy files.
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt#
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt# Given the current state of world export/import policies,
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt# these settings work for Sun's situation. This note is not
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt# legal guidance, you must still resolve any export/import issues
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt# applicable for your situation. Contact your export/import
61bcc232038f0a2cb77ed6269675fdc288f5ec98Evan Hunt# counsel for more information.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis DupontPOLICY_DESTDIR = $(LIBDIR)/security
2a31bd531072824ef252c18303859d6af7451b00Francis DupontUNSIGNED_POLICY_BUILDDIR = $(UNSIGNED_DIR)/policy
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontbuild-policy: unlimited limited
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Build the unsigned unlimited policy files.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontunlimited: \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(UNSIGNED_POLICY_BUILDDIR)/unlimited/US_export_policy.jar \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(UNSIGNED_POLICY_BUILDDIR)/unlimited/local_policy.jar
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(UNSIGNED_POLICY_BUILDDIR)/unlimited/US_export_policy.jar: \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont policy/unlimited/default_US_export.policy \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont policy/unlimited/UNLIMITED
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(prep-target)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(BOOT_JAR_CMD) cmf policy/unlimited/UNLIMITED $@ \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -C policy/unlimited default_US_export.policy \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(BOOT_JAR_JFLAGS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont @$(java-vm-cleanup)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(UNSIGNED_POLICY_BUILDDIR)/unlimited/local_policy.jar: \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont policy/unlimited/default_local.policy \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont policy/unlimited/UNLIMITED
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(prep-target)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(BOOT_JAR_CMD) cmf policy/unlimited/UNLIMITED $@ \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -C policy/unlimited default_local.policy \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(BOOT_JAR_JFLAGS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont @$(java-vm-cleanup)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt# Build the unsigned limited policy files.
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt#
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt# NOTE: We currently do not place restrictions on our limited export
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt# policy. This was not a typo.
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt#
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Huntlimited: \
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt $(UNSIGNED_POLICY_BUILDDIR)/limited/US_export_policy.jar \
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt $(UNSIGNED_POLICY_BUILDDIR)/limited/local_policy.jar
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt$(UNSIGNED_POLICY_BUILDDIR)/limited/US_export_policy.jar: \
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt $(UNSIGNED_POLICY_BUILDDIR)/unlimited/US_export_policy.jar
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt $(install-non-module-file)
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(UNSIGNED_POLICY_BUILDDIR)/limited/local_policy.jar: \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont policy/limited/default_local.policy \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont policy/limited/exempt_local.policy \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont policy/limited/LIMITED
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(prep-target)
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(BOOT_JAR_CMD) cmf policy/limited/LIMITED $@ \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont -C policy/limited default_local.policy \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont -C policy/limited exempt_local.policy \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(BOOT_JAR_JFLAGS)
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont @$(java-vm-cleanup)
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis DupontUNSIGNED_POLICY_FILES = \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(UNSIGNED_POLICY_BUILDDIR)/unlimited/US_export_policy.jar \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(UNSIGNED_POLICY_BUILDDIR)/unlimited/local_policy.jar \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(UNSIGNED_POLICY_BUILDDIR)/limited/US_export_policy.jar \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(UNSIGNED_POLICY_BUILDDIR)/limited/local_policy.jar \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontifndef OPENJDK
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# =====================================================
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# Sign the various jar files. Not needed for OpenJDK.
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont#
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis DupontSIGNED_DIR = $(JCE_BUILD_DIR)/signed
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan HuntSIGNED_POLICY_BUILDDIR = $(SIGNED_DIR)/policy
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis DupontSIGNED_POLICY_FILES = \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(patsubst $(UNSIGNED_POLICY_BUILDDIR)/%,$(SIGNED_POLICY_BUILDDIR)/%, \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(UNSIGNED_POLICY_FILES))
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontsign: sign-jar sign-policy
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontsign-jar: $(SIGNED_DIR)/jce.jar
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontsign-policy: $(SIGNED_POLICY_FILES)
eec29cfd40361662b25bad50e1b94f7738a8fea0Jeremy Reed
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Huntifndef ALT_JCE_BUILD_DIR
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt$(SIGNED_DIR)/jce.jar: $(UNSIGNED_DIR)/jce.jar
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontelse
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont#
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# We have to remove the build dependency, otherwise, we'll try to rebuild it
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# which we can't do on a read-only filesystem.
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont#
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont$(SIGNED_DIR)/jce.jar:
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont @if [ ! -r $(UNSIGNED_DIR)/jce.jar ] ; then \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(ECHO) "Couldn't find $(UNSIGNED_DIR)/jce.jar"; \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont exit 1; \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont fi
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontendif
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(call sign-file, $(UNSIGNED_DIR)/jce.jar)
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont$(SIGNED_POLICY_BUILDDIR)/unlimited/US_export_policy.jar: \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(UNSIGNED_POLICY_BUILDDIR)/unlimited/US_export_policy.jar
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(call sign-file, $<)
5cfe4bcb0afd71f6bc1cc2dab37a9ad6181c13f9Mark Andrews
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont$(SIGNED_POLICY_BUILDDIR)/unlimited/local_policy.jar: \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(UNSIGNED_POLICY_BUILDDIR)/unlimited/local_policy.jar
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt $(call sign-file, $<)
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt$(SIGNED_POLICY_BUILDDIR)/limited/US_export_policy.jar: \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(UNSIGNED_POLICY_BUILDDIR)/limited/US_export_policy.jar
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(call sign-file, $<)
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont$(SIGNED_POLICY_BUILDDIR)/limited/local_policy.jar: \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(UNSIGNED_POLICY_BUILDDIR)/limited/local_policy.jar
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(call sign-file, $<)
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# =====================================================
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# Create the Release Engineering files. Signed builds,
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt# unlimited policy file distribution, etc.
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont#
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis DupontCLOSED_DIR = $(BUILDDIR)/closed/javax/crypto
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontrelease: $(SIGNED_DIR)/jce.jar sign-policy $(CLOSED_DIR)/doc/COPYRIGHT.html \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(CLOSED_DIR)/doc/README.txt
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(RM) -r \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(JCE_BUILD_DIR)/release/UnlimitedJCEPolicy \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(JCE_BUILD_DIR)/release/jce.jar \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(JCE_BUILD_DIR)/release/US_export_policy.jar \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(JCE_BUILD_DIR)/release/local_policy.jar \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(JCE_BUILD_DIR)/release/UnlimitedJCEPolicy.zip
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(MKDIR) -p $(JCE_BUILD_DIR)/release/UnlimitedJCEPolicy
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(CP) $(SIGNED_DIR)/jce.jar $(JCE_BUILD_DIR)/release
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(CP) \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(SIGNED_POLICY_BUILDDIR)/limited/US_export_policy.jar \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(SIGNED_POLICY_BUILDDIR)/limited/local_policy.jar \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(JCE_BUILD_DIR)/release
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(CP) \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(SIGNED_POLICY_BUILDDIR)/unlimited/US_export_policy.jar \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(SIGNED_POLICY_BUILDDIR)/unlimited/local_policy.jar \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(CLOSED_DIR)/doc/COPYRIGHT.html \
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont $(CLOSED_DIR)/doc/README.txt \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(JCE_BUILD_DIR)/release/UnlimitedJCEPolicy
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont cd $(JCE_BUILD_DIR)/release ; \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(ZIPEXE) -qr UnlimitedJCEPolicy.zip UnlimitedJCEPolicy
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(release-warning)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontendif # OPENJDK
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# =====================================================
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Install routines.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# Install jce.jar, depending on which type is requested.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinstall-jar jar: $(JAR_DESTFILE)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontifndef OPENJDK
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(release-warning)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontendif
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontifdef OPENJDK
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(JAR_DESTFILE): $(UNSIGNED_DIR)/jce.jar
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupontelse
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont$(JAR_DESTFILE): $(SIGNED_DIR)/jce.jar
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontendif
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(install-non-module-file)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Install the appropriate policy file, depending on the type of build.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontifdef OPENJDK
2a31bd531072824ef252c18303859d6af7451b00Francis DupontINSTALL_POLICYDIR = $(UNSIGNED_POLICY_BUILDDIR)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontelse
2a31bd531072824ef252c18303859d6af7451b00Francis DupontINSTALL_POLICYDIR = $(SIGNED_POLICY_BUILDDIR)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontendif
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinstall-limited-jars: \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(INSTALL_POLICYDIR)/limited/US_export_policy.jar \
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt $(INSTALL_POLICYDIR)/limited/local_policy.jar
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(MKDIR) -p $(POLICY_DESTDIR)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(RM) \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(POLICY_DESTDIR)/US_export_policy.jar \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(POLICY_DESTDIR)/local_policy.jar
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(CP) $^ $(POLICY_DESTDIR)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinstall-limited: install-limited-jars install-module-files
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontifndef OPENJDK
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(release-warning)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontendif
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinstall-unlimited-jars: \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(INSTALL_POLICYDIR)/unlimited/US_export_policy.jar \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(INSTALL_POLICYDIR)/unlimited/local_policy.jar
$(MKDIR) -p $(POLICY_DESTDIR)
$(RM) \
$(POLICY_DESTDIR)/US_export_policy.jar \
$(POLICY_DESTDIR)/local_policy.jar
$(CP) $^ $(POLICY_DESTDIR)
install-unlimited: install-unlimited-jars install-module-files
ifndef OPENJDK
$(release-warning)
endif
ifndef OPENJDK
install-prebuilt-jars:
@$(ECHO) "\n>>>Installing prebuilt JCE framework..."
$(RM) $(JAR_DESTFILE) \
$(POLICY_DESTDIR)/US_export_policy.jar \
$(POLICY_DESTDIR)/local_policy.jar
$(CP) $(PREBUILT_DIR)/jce/jce.jar $(JAR_DESTFILE)
$(CP) \
$(PREBUILT_DIR)/jce/US_export_policy.jar \
$(PREBUILT_DIR)/jce/local_policy.jar \
$(POLICY_DESTDIR)
install-prebuilt: install-prebuilt-jars install-module-files
endif
install-module-files: \
$(POLICY_DESTDIR)/US_export_policy.jar \
$(POLICY_DESTDIR)/local_policy.jar
$(POLICY_DESTDIR)/%.jar :
$(install-module-file)
# =====================================================
# Support routines.
#
clobber clean::
$(RM) -r $(JAR_DESTFILE) $(POLICY_DESTDIR)/US_export_policy.jar \
$(POLICY_DESTDIR)/local_policy.jar $(DELETE_DIRS) $(TEMPDIR) \
$(JCE_BUILD_DIR)
.PHONY: build-jar jar build-policy unlimited limited install-jar \
install-limited install-unlimited
ifndef OPENJDK
.PHONY: sign sign-jar sign-policy release install-prebuilt
endif