xref: /titanic_51/usr/src/lib/pkcs11/pkcs11_kernel/Makefile.com (revision faebf79429f1b4c0f9334ac0f880806edf891f1f)
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# 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
54BLOWFISHDIR=	$(SRC)/common/crypto/blowfish
55ARCFOURDIR=	$(SRC)/common/crypto/arcfour
56DESDIR=		$(SRC)/common/crypto/des
57
58lint \
59pics/kernelAttributeUtil.o := \
60	CPPFLAGS += -I$(AESDIR) -I$(BLOWFISHDIR) -I$(ARCFOURDIR) -I$(DESDIR)
61
62include $(SRC)/lib/Makefile.lib
63
64#	set signing mode
65POST_PROCESS_SO	+=	; $(ELFSIGN_CRYPTO)
66
67SRCDIR=		../common
68
69LIBS	=	$(DYNLIB)
70LDLIBS  +=      -lc -lcryptoutil
71
72MAPDIR  = ../spec/$(TRANSMACH)
73SPECMAPFILE = $(MAPDIR)/mapfile
74
75CFLAGS  +=      $(CCVERBOSE)
76
77ROOTLIBDIR=     $(ROOT)/usr/lib/security
78ROOTLIBDIR64=   $(ROOT)/usr/lib/security/$(MACH64)
79
80.KEEP_STATE:
81
82all:    $(LIBS)
83
84lint: lintcheck
85
86include $(SRC)/lib/Makefile.targ
87