Makefile revision 5a44cca936d722ba0da8ad634653e04b93747ecc
0N/A#
553N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
553N/A# CDDL HEADER END
553N/A#
553N/A#
0N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A
0N/ARELEASECERTS = SUNW_SunOS_5.10
0N/ARELEASECRYPTO = SUNW_SunOS_5.10
0N/A
0N/AETCCRYPTOFILES = \
0N/A kcf.conf \
0N/A pkcs11.conf \
0N/A kmf.conf \
0N/A $(RELEASECRYPTO:%=certs/%) \
0N/A certs/CA \
0N/A certs/SUNWObjectCA
0N/A
0N/AETCCERTSFILES = \
0N/A $(RELEASECERTS) \
0N/A SUNWSolarisCA \
0N/A SUNWObjectCA
0N/A
0N/AANNOTATEDFILES = \
0N/A certs/SUNWObjectCA.annot
0N/A
0N/Ainclude ../../Makefile.cmd
0N/A
0N/A.KEEP_STATE:
0N/A
0N/AROOTCRYPTODIR= $(ROOT)/etc/crypto
0N/AROOTCRYPTOCERTSDIR= $(ROOTCRYPTODIR)/certs
0N/A
0N/AROOTETCCERTSDIR= $(ROOT)/etc/certs
0N/A
0N/AIETCCRYPTOFILES= $(ETCCRYPTOFILES:%=$(ROOTCRYPTODIR)/%)
IETCCERTSFILES= $(ETCCERTSFILES:%=$(ROOTETCCERTSDIR)/%)
$(ROOTCRYPTOCERTSDIR)/SUNWObjectCA: \
$(ROOTETCCERTSDIR)/SUNWObjectCA
$(RM) $@
$(LN) $(ROOTETCCERTSDIR)/SUNWObjectCA $@
$(ROOTCRYPTODIR)/%: %
$(INS.file)
$(RELEASECRYPTO:%=$(ROOTCRYPTODIR)/certs/%): \
certs/$(@F:SUNW_SunOS_5.%=SUNWCryptographic%)
$(RM) $@
$(INS) -s -m $(FILEMODE) -f $(@D) \
certs/$(@F:SUNW_SunOS_5.%=SUNWCryptographic%)
$(MV) $(@D)/$(@F:SUNW_SunOS_5.%=SUNWCryptographic%) $@
$(ROOTETCCERTSDIR)/SUNWObjectCA: \
certs/$$(@F)
$(RM) $@
$(INS) -s -m $(FILEMODE) -f $(@D) certs/$(@F)
$(ROOTETCCERTSDIR)/%: certs/%
$(INS.file)
$(RELEASECERTS:%=$(ROOTETCCERTSDIR)/%): \
certs/$(@F:SUNW_SunOS_5.%=SUNWSolaris%)
$(RM) $@
$(INS) -s -m $(FILEMODE) -f $(@D) \
certs/$(@F:SUNW_SunOS_5.%=SUNWSolaris%)
$(MV) $(@D)/$(@F:SUNW_SunOS_5.%=SUNWSolaris%) $@
ANNOT_DEL = SOURCE ANNOTATION DELETE
$(ANNOTATEDFILES:%.annot=%): \
$$(@:%=%.annot)
$(RM) $@
$(SED) -e '/${ANNOT_DEL} START/,/${ANNOT_DEL} END/d' \
$(@:%=%.annot) > $@
$(IETCCRYPTOFILES):= FILEMODE= 644
$(IETCCERTSFILES):= FILEMODE= 644
install: $(IETCCRYPTOFILES) $(IETCCERTSFILES)
clean clobber:
$(RM) $(ANNOTATEDFILES:%.annot=%)