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