xref: /titanic_52/usr/src/lib/pkcs11/libpkcs11/Makefile.com (revision fb3fb4f3d76d55b64440afd0af72775dfad3bd1d)
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
29LIBRARY= libpkcs11.a
30VERS= .1
31
32
33OBJECTS= \
34	metaAttrManager.o \
35	metaCrypt.o \
36	metaDigest.o \
37	metaDualCrypt.o \
38	metaGeneral.o \
39	metaKeys.o \
40	metaMechManager.o \
41	metaObject.o \
42	metaObjectManager.o \
43	metaRand.o \
44	metaSession.o \
45	metaSessionManager.o \
46	metaSign.o \
47	metaSlotManager.o \
48	metaSlotToken.o \
49	metaUtil.o \
50	metaVerify.o \
51	pkcs11General.o 	\
52	pkcs11SlotToken.o 	\
53	pkcs11Session.o 	\
54	pkcs11Object.o 		\
55	pkcs11Crypt.o 		\
56	pkcs11Digest.o	 	\
57	pkcs11Sign.o 		\
58	pkcs11Verify.o 		\
59	pkcs11DualCrypt.o 	\
60	pkcs11Keys.o 		\
61	pkcs11Rand.o		\
62	pkcs11Slottable.o	\
63	pkcs11Conf.o		\
64	pkcs11Sessionlist.o	\
65	pkcs11SUNWExtensions.o
66
67include ../../../Makefile.lib
68
69SRCDIR=		../common
70INCDIR=		../../include
71
72LIBS =		$(DYNLIB) $(LINTLIB)
73SRCS =		$(OBJECTS:%.o=$(SRCDIR)/%.c)
74$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
75LDLIBS +=	-lcryptoutil -lc
76
77MAPDIR	= ../spec/$(TRANSMACH)
78SPECMAPFILE = $(MAPDIR)/mapfile
79
80CFLAGS	+=	$(CCVERBOSE)
81CPPFLAGS +=	-I$(INCDIR) -I$(SRCDIR) -D_REENTRANT
82
83LINTFLAGS64 += -errchk=longptr64
84
85.KEEP_STATE:
86
87all:	$(LIBS)
88
89lint: lintcheck
90
91include $(SRC)/lib/Makefile.targ
92