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