xref: /illumos-gate/usr/src/lib/pkcs11/libpkcs11/Makefile.com (revision 8119dad84d6416f13557b0ba8e2aaf9064cbcfd3)
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)
71LDLIBS +=	-lcryptoutil -lc
72
73CFLAGS	+=	$(CCVERBOSE)
74CPPFLAGS +=	-I$(INCDIR) -I$(SRCDIR) -D_REENTRANT
75
76
77CERRWARN +=	-_gcc=-Wno-unused-label
78CERRWARN +=	$(CNOWARN_UNINIT)
79
80# not linted
81SMATCH=off
82
83.KEEP_STATE:
84
85all:	$(LIBS)
86
87
88include $(SRC)/lib/Makefile.targ
89