Makefile revision 363
431N/A# The contents of this file are subject to the terms of the 431N/A# Common Development and Distribution License (the "License"). 431N/A# You may not use this file except in compliance with the License. 431N/A# See the License for the specific language governing permissions 431N/A# and limitations under the License. 431N/A# When distributing Covered Code, include this CDDL HEADER in each 431N/A# If applicable, add the following below this CDDL HEADER, with the 431N/A# fields enclosed by brackets "[]" replaced with your own identifying 431N/A# information: Portions Copyright [yyyy] [name of copyright owner] 844N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 431N/A# This component is not to be installed. It is used from openssl-0.9.8-fips-140 431N/A# to build FIPS-140 certified OpenSSL libraries. 431N/A# In order to build a 32bit version on a 64bit system the isalist(1) command 431N/A# must be substituted for the 32bit build so that amd64|sparcv9 is not part of 431N/A# its output. isalist is used internally when configuring the canister before 431N/A# building it. In order to allow make install to be run as a no-op we have to 431N/A# fake "make install" since we do not want to install the files anywhere. The 431N/A# command sets U1 and U2 are defined in the FIPS 1.2 security policy and must be 431N/A# run as shown there. Nothing from the tarball can be modified. We use the U2 431N/A# command set, see below. 431N/A# Do not use $(PWD), it would not work if run from a different directory with # "gmake -C" as we do from openssl-0.9.8-fips-140. # There is a broken link in the tarball which causes cp(1) to fail which would # fail the whole configure process. It's safer to get rid of the link than # adding "true" at the end of COMPONENT_PRE_CONFIGURE_ACTION since that could # There is a specific way that must be followed to build the FIPS-140 canister. # It is "./config fipscanisterbuild; make; make install" and is called a command # set "U2" in the OpenSSL FIPS-140 User Guide. # You should not use this target with this component unless testing or # debugging. The OpenSSL FIPS-140 policy is strict and full U2 command set # should be run. See above for more information. # We must make the "install" target a no-op (but must run it to be compliant). # See above for more information. # This is a recommended set of commands to verify that the FIPS-140 mode can be # used and that we used the correct tarball. $(NAWK) '{ if ($$2 != "$(OPENSSL_FIPS_HMAC)") exit 1 }'