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.
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.
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]
22 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
26 LIBRARY= pkcs11_kernel.a
46 kernelAttributeUtil.o \
49 OTHER_OBJECTS = kernelSoftCommon.o
50 ST_OBJECTS = softDigestUtil.o softMAC.o
57 AESDIR= $(SRC)/common/crypto/aes
58 ARCFOURDIR= $(SRC)/common/crypto/arcfour
59 BLOWFISHDIR= $(SRC)/common/crypto/blowfish
60 DESDIR= $(SRC)/common/crypto/des
61 ECCDIR= $(SRC)/common/crypto/ecc
62 ST_DIR= $(SRC)/lib/pkcs11/pkcs11_softtoken/common
64 pics/kernelAttributeUtil.o := \
65 CPPFLAGS += -I$(AESDIR) -I$(BLOWFISHDIR) -I$(ARCFOURDIR) -I$(DESDIR) \
67 pics/kernelKeys.o := \
68 CPPFLAGS += -I$(ECCDIR)
69 pics/kernelSoftCommon.o := \
70 CPPFLAGS = -I$(ST_DIR) $(CPPFLAGS.master)
72 include $(SRC)/lib/Makefile.lib
75 POST_PROCESS_SO += ; $(ELFSIGN_CRYPTO)
79 $(CORE_OBJECTS:%.o=$(SRCDIR)/%.c)
82 LDLIBS += -lc -lcryptoutil -lmd
85 CERRWARN += -Wno-uninitialized
86 CERRWARN += -Wno-unused-label
88 ROOTLIBDIR= $(ROOT)/usr/lib/security
89 ROOTLIBDIR64= $(ROOT)/usr/lib/security/$(MACH64)
95 pics/%.o: $(ST_DIR)/%.c
96 $(COMPILE.c) -o $@ $< -I$(ST_DIR)
99 include $(SRC)/lib/Makefile.targ