xref: /illumos-gate/usr/src/lib/pkcs11/Makefile (revision 60405de4d8688d96dd05157c28db3ade5c9bc234)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/pkcs11/Makefile
29
30include ../Makefile.lib
31
32HDRS =     	cryptoki.h pkcs11.h pkcs11f.h pkcs11t.h
33HDRDIR =	include
34ROOTHDRDIR =	$(ROOT)/usr/include/security
35
36# RSA PKCS#11 sourced header files won't pass hrdchk
37CHECKHDRS =	$(HDRDIR)/cryptoki.h
38
39SUBDIRS = \
40	libpkcs11
41
42#
43# Don't build these for OpenSolaris, since they will be replaced by
44# binaries that are signed by Sun RE.
45#
46$(CLOSED_BUILD)SUBDIRS += \
47			pkcs11_kernel	\
48			pkcs11_softtoken
49
50# EXPORT DELETE START
51$(CLOSED_BUILD)SUBDIRS	+= pkcs11_softtoken_extra
52# EXPORT DELETE END
53
54all 	:=	TARGET= all
55clean 	:=	TARGET= clean
56clobber	:=	TARGET= clobber
57install :=	TARGET= install
58lint :=		TARGET= lint
59
60.KEEP_STATE:
61
62all clean clobber install lint: $(SUBDIRS)
63
64install_h: $(ROOTHDRS)
65
66check:	$(CHECKHDRS)
67
68$(SUBDIRS): FRC
69	@cd $@; pwd; $(MAKE) $(TARGET)
70
71FRC:
72
73# EXPORT DELETE START
74EXPORT_SRC:
75	$(RM) Makefile+
76	$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
77		< Makefile > Makefile+
78	$(MV) -f Makefile+ Makefile
79	$(CHMOD) 444 Makefile
80# EXPORT DELETE END
81
82include ../Makefile.targ
83