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]
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
24 # Copyright (c) 2018, Joyent, Inc.
29 PKCS11_COBJECTS = pkcs11_spi.o
30 BIGNUM_COBJECTS = bignumimpl.o
31 OBJECTS = $(PKCS11_COBJECTS) $(BIGNUM_COBJECTS)
33 include $(SRC)/lib/Makefile.lib
35 LIBLINKS= $(DYNLIB:.so.1=.so)
36 KMFINC= -I../../../include -I../../../ber_der/inc
38 PKCS11LIBS= -lkmf -lkmfberder -lmd -lpkcs11 -lcryptoutil -lc
40 BIGNUMDIR= $(SRC)/common/bignum
46 $(PKCS11_COBJECTS:%.o=$(SRCDIR)/%.c) \
47 $(BIGNUM_COBJECTS:%.o=$(BIGNUMDIR)/%.c)
50 CPPFLAGS += $(KMFINC) -I$(INCDIR) \
51 -I$(ADJUNCT_PROTO)/usr/include/libxml2 -I$(BIGNUMDIR)
53 CERRWARN += -Wno-unused-label
58 PICS= $(OBJECTS:%=pics/%)
60 LDLIBS += $(PKCS11LIBS)
62 ROOTLIBDIR= $(ROOT)/lib/crypto/$(MACH32)
63 ROOTLIBDIR64= $(ROOT)/lib/crypto
73 pics/%.o: $(BIGNUMDIR)/%.c
74 $(COMPILE.c) -o $@ $(BIGNUM_CFG) $<
77 include $(SRC)/lib/Makefile.targ