dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / lib / libkmf / plugins / kmf_pkcs11 / Makefile.com
blobdba16fc59932a802ad8b4ef8c3c57b720dcb4b5e
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 # Makefile for KMF Plugins
27 LIBRARY=        kmf_pkcs11.a
28 VERS=           .1
30 PKCS11_COBJECTS = pkcs11_spi.o
31 BIGNUM_COBJECTS = bignumimpl.o
32 OBJECTS = $(PKCS11_COBJECTS) $(BIGNUM_COBJECTS)
34 include $(SRC)/lib/Makefile.lib
36 LIBLINKS=       $(DYNLIB:.so.1=.so)
37 KMFINC=         -I../../../include -I../../../ber_der/inc
39 PKCS11LIBS=     -lkmf -lkmfberder -lmd -lpkcs11 -lcryptoutil -lc
41 BIGNUMDIR=      $(SRC)/common/bignum
43 SRCDIR=         ../common
44 INCDIR=         ../../include
46 SRCS =  \
47         $(PKCS11_COBJECTS:%.o=$(SRCDIR)/%.c) \
48         $(BIGNUM_COBJECTS:%.o=$(BIGNUMDIR)/%.c)
51 CPPFLAGS        +=      $(KMFINC) -I$(INCDIR) \
52                         -I$(ADJUNCT_PROTO)/usr/include/libxml2 -I$(BIGNUMDIR)
54 CERRWARN        +=      -Wno-unused-label
56 PICS=   $(OBJECTS:%=pics/%)
58 LDLIBS  +=      $(PKCS11LIBS)
60 ROOTLIBDIR=     $(ROOTFS_LIBDIR)/crypto
61 ROOTLIBDIR64=   $(ROOTFS_LIBDIR)/crypto/$(MACH64)
63 .KEEP_STATE:
65 LIBS    =       $(DYNLIB)
67 all:    $(LIBS)
69 FRC:
71 pics/%.o:       $(BIGNUMDIR)/%.c
72         $(COMPILE.c) -o $@ $(BIGNUM_CFG) $<
73         $(POST_PROCESS_O)
75 include $(SRC)/lib/Makefile.targ