xref: /illumos-gate/usr/src/lib/pkcs11/Makefile (revision 84ab085a13f931bc78e7415e7ce921dbaa14fcb3)
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 2003 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	pkcs11_kernel	\
42	pkcs11_softtoken
43
44# EXPORT DELETE START
45SUBDIRS	+= pkcs11_softtoken_extra
46# EXPORT DELETE END
47
48all 	:=	TARGET= all
49clean 	:=	TARGET= clean
50clobber	:=	TARGET= clobber
51install :=	TARGET= install
52lint :=		TARGET= lint
53
54.KEEP_STATE:
55
56all clean clobber install lint: $(SUBDIRS)
57
58install_h: $(ROOTHDRS)
59
60check:	$(CHECKHDRS)
61
62$(SUBDIRS): FRC
63	@cd $@; pwd; $(MAKE) $(TARGET)
64
65FRC:
66
67# EXPORT DELETE START
68EXPORT_SRC:
69	$(RM) Makefile+
70	$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
71		< Makefile > Makefile+
72	$(MV) -f Makefile+ Makefile
73	$(CHMOD) 444 Makefile
74# EXPORT DELETE END
75
76include ../Makefile.targ
77