xref: /titanic_41/usr/src/lib/pkcs11/libpkcs11/Makefile.com (revision 3ee6e1231b28188bebd1d5bb4a32a673f5820322)
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 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26LIBRARY= libpkcs11.a
27VERS= .1
28
29
30OBJECTS= \
31	metaAttrManager.o \
32	metaCrypt.o \
33	metaDigest.o \
34	metaDualCrypt.o \
35	metaGeneral.o \
36	metaKeys.o \
37	metaMechManager.o \
38	metaObject.o \
39	metaObjectManager.o \
40	metaRand.o \
41	metaSession.o \
42	metaSessionManager.o \
43	metaSign.o \
44	metaSlotManager.o \
45	metaSlotToken.o \
46	metaUtil.o \
47	metaVerify.o \
48	pkcs11General.o 	\
49	pkcs11SlotToken.o 	\
50	pkcs11Session.o 	\
51	pkcs11Object.o 		\
52	pkcs11Crypt.o 		\
53	pkcs11Digest.o	 	\
54	pkcs11Sign.o 		\
55	pkcs11Verify.o 		\
56	pkcs11DualCrypt.o 	\
57	pkcs11Keys.o 		\
58	pkcs11Rand.o		\
59	pkcs11Slottable.o	\
60	pkcs11Conf.o		\
61	pkcs11Sessionlist.o	\
62	pkcs11SUNWExtensions.o
63
64include ../../../Makefile.lib
65
66SRCDIR=		../common
67INCDIR=		../../include
68
69LIBS =		$(DYNLIB) $(LINTLIB)
70$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
71LDLIBS +=	-lcryptoutil -lc
72
73CFLAGS	+=	$(CCVERBOSE)
74CPPFLAGS +=	-I$(INCDIR) -I$(SRCDIR) -D_REENTRANT
75
76LINTFLAGS64 += -errchk=longptr64
77
78.KEEP_STATE:
79
80all:	$(LIBS)
81
82lint: lintcheck
83
84include $(SRC)/lib/Makefile.targ
85