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