move 32-bit libs to lib/i386 subdirs & 64-bit libs to lib/
[unleashed.git] / usr / src / lib / libkmf / plugins / kmf_pkcs11 / Makefile.com
blobb10157fba28701ffe154961b7c4c243f204d3a91
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
21 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22 # Use is subject to license terms.
24 # Copyright (c) 2018, Joyent, Inc.
26 LIBRARY=        kmf_pkcs11.a
27 VERS=           .1
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
42 SRCDIR=         ../common
43 INCDIR=         ../../include
45 SRCS =  \
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
55 # not linted
56 SMATCH=off
58 PICS=   $(OBJECTS:%=pics/%)
60 LDLIBS  +=      $(PKCS11LIBS)
62 ROOTLIBDIR=     $(ROOT)/lib/crypto/$(MACH32)
63 ROOTLIBDIR64=   $(ROOT)/lib/crypto
65 .KEEP_STATE:
67 LIBS    =       $(DYNLIB)
69 all:    $(LIBS)
71 FRC:
73 pics/%.o:       $(BIGNUMDIR)/%.c
74         $(COMPILE.c) -o $@ $(BIGNUM_CFG) $<
75         $(POST_PROCESS_O)
77 include $(SRC)/lib/Makefile.targ