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