Makefile revision 459
e0aad1e08730743b3a27aa070e2861bd1c153afedp# Copyright 2005-2008 Sun Microsystems, Inc. All Rights Reserved.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# This code is free software; you can redistribute it and/or modify it
e0aad1e08730743b3a27aa070e2861bd1c153afedp# under the terms of the GNU General Public License version 2 only, as
e0aad1e08730743b3a27aa070e2861bd1c153afedp# published by the Free Software Foundation. Sun designates this
e0aad1e08730743b3a27aa070e2861bd1c153afedp# particular file as subject to the "Classpath" exception as provided
e0aad1e08730743b3a27aa070e2861bd1c153afedp# by Sun in the LICENSE file that accompanied this code.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# This code is distributed in the hope that it will be useful, but WITHOUT
e0aad1e08730743b3a27aa070e2861bd1c153afedp# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
e0aad1e08730743b3a27aa070e2861bd1c153afedp# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
e0aad1e08730743b3a27aa070e2861bd1c153afedp# version 2 for more details (a copy is included in the LICENSE file that
e0aad1e08730743b3a27aa070e2861bd1c153afedp# accompanied this code).
e0aad1e08730743b3a27aa070e2861bd1c153afedp# You should have received a copy of the GNU General Public License version
e0aad1e08730743b3a27aa070e2861bd1c153afedp# 2 along with this work; if not, write to the Free Software Foundation,
e0aad1e08730743b3a27aa070e2861bd1c153afedp# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
e0aad1e08730743b3a27aa070e2861bd1c153afedp# CA 95054 USA or visit www.sun.com if you need additional information or
e0aad1e08730743b3a27aa070e2861bd1c153afedp# have any questions.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# Makefile for building sunmscapi.jar and native libraries.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# This file was derived from make/com/sun/crypto/provider/Makefile.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# (The terms "OpenJDK" and "JDK" below refer to OpenJDK and Sun JDK builds
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulow# respectively.)
e0aad1e08730743b3a27aa070e2861bd1c153afedp# JCE builds are very different between OpenJDK and JDK. The OpenJDK JCE
e0aad1e08730743b3a27aa070e2861bd1c153afedp# jar files do not require signing, but those for JDK do. If an unsigned
e0aad1e08730743b3a27aa070e2861bd1c153afedp# jar file is installed into JDK, things will break when the crypto
e0aad1e08730743b3a27aa070e2861bd1c153afedp# routines are called.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# This Makefile does the "real" build of the JCE files. For OpenJDK,
e0aad1e08730743b3a27aa070e2861bd1c153afedp# the jar files built here are installed directly into the OpenJDK.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# For JDK, the binaries use pre-built/pre-signed binary files stored in
e0aad1e08730743b3a27aa070e2861bd1c153afedp# the closed workspace that are not shipped in the OpenJDK workspaces.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# We still build the JDK files here to verify the files compile, and in
e0aad1e08730743b3a27aa070e2861bd1c153afedp# preparation for possible signing. Developers working on JCE in JDK
e0aad1e08730743b3a27aa070e2861bd1c153afedp# must sign the JCE files before testing. The JCE signing key is kept
e0aad1e08730743b3a27aa070e2861bd1c153afedp# separate from the JDK workspace to prevent its disclosure.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# SPECIAL NOTE TO JCE/JDK developers: The source files must eventually
e0aad1e08730743b3a27aa070e2861bd1c153afedp# be built, signed, and then the resulting jar files MUST BE CHECKED
e0aad1e08730743b3a27aa070e2861bd1c153afedp# INTO THE CLOSED PART OF THE WORKSPACE*. This separate step *MUST NOT
e0aad1e08730743b3a27aa070e2861bd1c153afedp# BE FORGOTTEN*, otherwise a bug fixed in the source code will not be
e0aad1e08730743b3a27aa070e2861bd1c153afedp# reflected in the shipped binaries. The "release" target should be
e0aad1e08730743b3a27aa070e2861bd1c153afedp# used to generate the required files.
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulow# There are a number of targets to help both JDK/OpenJDK developers.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# Main Targets (JDK/OPENJDK):
e0aad1e08730743b3a27aa070e2861bd1c153afedp# all/clobber/clean The usual, plus the native libraries.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# If OpenJDK, installs sunmscapi.jar.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# If JDK, installs prebuilt
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulow# If OpenJDK, does not sign.
f497f9fe231e0e400f339c84a7d80c4aae2ac4d5Joshua M. Clulow# If JDK, tries to sign.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# Other lesser-used Targets (JDK/OPENJDK):
e0aad1e08730743b3a27aa070e2861bd1c153afedp# build-jar Builds sunmscapi.jar
e0aad1e08730743b3a27aa070e2861bd1c153afedp# (does not sign/install)
e0aad1e08730743b3a27aa070e2861bd1c153afedp# install-jar Alias for "jar" above.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# Other targets (JDK only):
e0aad1e08730743b3a27aa070e2861bd1c153afedp# sign Alias for sign-jar
e0aad1e08730743b3a27aa070e2861bd1c153afedp# sign-jar Builds/signs sunmscapi.jar (no install)
e0aad1e08730743b3a27aa070e2861bd1c153afedp# release Builds all targets in preparation
e0aad1e08730743b3a27aa070e2861bd1c153afedp# for workspace integration.
e0aad1e08730743b3a27aa070e2861bd1c153afedp# install-prebuilt Installs the pre-built jar files
BUILDDIR = ../../..
# (signing/obfuscation) against a read-only build. If the OUTPUTDIR
# build area. (e.g. a release engineering build.)
CPLUSPLUSLIBRARY=true
FILES_export = \
OTHER_INCLUDES += \
# Build the unsigned sunmscapi.jar file.
# The sunmscapi.jar needs to be in the extension class directory,
# Build sunmscapi.jar.
# Install sunmscapi.jar, depending on which type is requested.