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