xref: /onnv-gate/usr/src/lib/libkmf/plugins/kmf_nss/Makefile.com (revision 8192:1e71c4032126)
13089Swyllys#
23089Swyllys# CDDL HEADER START
33089Swyllys#
43089Swyllys# The contents of this file are subject to the terms of the
53089Swyllys# Common Development and Distribution License (the "License").
63089Swyllys# You may not use this file except in compliance with the License.
73089Swyllys#
83089Swyllys# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93089Swyllys# or http://www.opensolaris.org/os/licensing.
103089Swyllys# See the License for the specific language governing permissions
113089Swyllys# and limitations under the License.
123089Swyllys#
133089Swyllys# When distributing Covered Code, include this CDDL HEADER in each
143089Swyllys# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153089Swyllys# If applicable, add the following below this CDDL HEADER, with the
163089Swyllys# fields enclosed by brackets "[]" replaced with your own identifying
173089Swyllys# information: Portions Copyright [yyyy] [name of copyright owner]
183089Swyllys#
193089Swyllys# CDDL HEADER END
203089Swyllys#
213089Swyllys#
22*8192SJohn.Zolnowsky@Sun.COM# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
233089Swyllys# Use is subject to license terms.
243089Swyllys#
253089Swyllys# Makefile for KMF Plugins
263089Swyllys#
273089Swyllys
283089SwyllysLIBRARY=	kmf_nss.a
293089SwyllysVERS=		.1
303089Swyllys
313089SwyllysOBJECTS=	nss_spi.o
323089Swyllys
333089Swyllysinclude	$(SRC)/lib/Makefile.lib
343089Swyllys
353089SwyllysMPSDIR=		/usr/lib/mps
363089SwyllysKMFINC=		-I../../../include -I../../../ber_der/inc
373089SwyllysNSSINC=		-I/usr/include/mps
383089SwyllysBERLIB=		-lkmf -lkmfberder
393089SwyllysBERLIB64=	$(BERLIB)
403089Swyllys
413089SwyllysNSSLIBS=	$(BERLIB) -L$(MPSDIR) -R$(MPSDIR) -lnss3 -lnspr4 -lsmime3 -lc
423089SwyllysNSSLIBS64=	$(BERLIB64) -L$(MPSDIR)/$(MACH64) -R$(MPSDIR)/$(MACH64) -lnss3 -lnspr4 -lsmime3 -lc
433089Swyllys
443089SwyllysSRCDIR=		../common
453089SwyllysINCDIR=		../../include
463089Swyllys
473089SwyllysCFLAGS		+=	$(CCVERBOSE)
483089SwyllysCPPFLAGS	+=	-D_REENTRANT $(KMFINC) $(NSSINC)  \
493089Swyllys		-I$(SFWDIR)/include -I$(INCDIR) -I/usr/include/libxml2
503089Swyllys
513089SwyllysPICS=	$(OBJECTS:%=pics/%)
523089Swyllys
533092SwyllysLINTFLAGS	+=	-erroff=E_STATIC_UNUSED
543092SwyllysLINTFLAGS64	+=	-erroff=E_STATIC_UNUSED
553092Swyllys
563089Swyllyslint:=	NSSLIBS =	$(BERLIB)
573089Swyllyslint:=	NSSLIBS64 =	$(BERLIB64)
583089Swyllys
593089SwyllysLDLIBS32	+=	$(NSSLIBS)
603089Swyllys
613089SwyllysLIBS	=	$(DYNLIB)
623089Swyllys
63*8192SJohn.Zolnowsky@Sun.COMROOTLIBDIR=	$(ROOTFS_LIBDIR)/crypto
64*8192SJohn.Zolnowsky@Sun.COMROOTLIBDIR64=	$(ROOTFS_LIBDIR)/crypto/$(MACH64)
653089Swyllys
663089Swyllys.KEEP_STATE:
673089Swyllys
683089Swyllysall:	$(LIBS) $(LINTLIB)
693089Swyllys
703089Swyllyslint: lintcheck
713089Swyllys
723089SwyllysFRC:
733089Swyllys
743089Swyllysinclude $(SRC)/lib/Makefile.targ
75