xref: /illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/Makefile.com (revision b0fe7b8fa79924061f3bdf7f240ea116c2c0b704)
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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28LIBRARY= pkcs11_kernel.a
29VERS= .1
30
31OBJECTS= \
32	kernelGeneral.o 	\
33	kernelSlottable.o 	\
34	kernelSlotToken.o 	\
35	kernelObject.o 		\
36	kernelDigest.o	 	\
37	kernelSign.o 		\
38	kernelVerify.o 		\
39	kernelDualCrypt.o 	\
40	kernelKeys.o 		\
41	kernelRand.o		\
42	kernelSession.o		\
43	kernelSessionUtil.o	\
44	kernelUtil.o		\
45	kernelEncrypt.o		\
46	kernelDecrypt.o		\
47	kernelObjectUtil.o	\
48	kernelAttributeUtil.o
49
50AESDIR=		$(SRC)/common/crypto/aes
51BLOWFISHDIR=	$(SRC)/common/crypto/blowfish
52ARCFOURDIR=	$(SRC)/common/crypto/arcfour
53DESDIR=		$(SRC)/common/crypto/des
54
55lint \
56pics/kernelAttributeUtil.o := \
57	CPPFLAGS += -I$(AESDIR) -I$(BLOWFISHDIR) -I$(ARCFOURDIR) -I$(DESDIR)
58
59include $(SRC)/lib/Makefile.lib
60
61#	set signing mode
62POST_PROCESS_SO	+=	; $(ELFSIGN_CRYPTO)
63
64SRCDIR=		../common
65
66LIBS	=	$(DYNLIB)
67LDLIBS  +=      -lc -lcryptoutil
68
69CFLAGS  +=      $(CCVERBOSE)
70
71ROOTLIBDIR=     $(ROOT)/usr/lib/security
72ROOTLIBDIR64=   $(ROOT)/usr/lib/security/$(MACH64)
73
74.KEEP_STATE:
75
76all:    $(LIBS)
77
78lint: lintcheck
79
80include $(SRC)/lib/Makefile.targ
81