xref: /titanic_51/usr/src/lib/libkmf/plugins/kmf_nss/Makefile.com (revision 20c794b39650d115e17a15983b6b82e46238cf45)
1#
2# CDDL HEADER START
3#
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.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27# Makefile for KMF Plugins
28#
29
30LIBRARY=	kmf_nss.a
31VERS=		.1
32
33OBJECTS=	nss_spi.o
34
35include	$(SRC)/lib/Makefile.lib
36
37MPSDIR=		/usr/lib/mps
38KMFINC=		-I../../../include -I../../../ber_der/inc
39NSSINC=		-I/usr/include/mps
40BERLIB=		-lkmf -lkmfberder
41BERLIB64=	$(BERLIB)
42
43NSSLIBS=	$(BERLIB) -L$(MPSDIR) -R$(MPSDIR) -lnss3 -lnspr4 -lsmime3 -lc
44NSSLIBS64=	$(BERLIB64) -L$(MPSDIR)/$(MACH64) -R$(MPSDIR)/$(MACH64) -lnss3 -lnspr4 -lsmime3 -lc
45
46SRCDIR=		../common
47INCDIR=		../../include
48
49CFLAGS		+=	$(CCVERBOSE)
50CPPFLAGS	+=	-D_REENTRANT $(KMFINC) $(NSSINC)  \
51		-I$(SFWDIR)/include -I$(INCDIR) -I/usr/include/libxml2
52
53PICS=	$(OBJECTS:%=pics/%)
54
55LINTFLAGS	+=	-erroff=E_STATIC_UNUSED
56LINTFLAGS64	+=	-erroff=E_STATIC_UNUSED
57
58lint:=	NSSLIBS =	$(BERLIB)
59lint:=	NSSLIBS64 =	$(BERLIB64)
60
61LDLIBS32	+=	$(NSSLIBS)
62
63LIBS	=	$(DYNLIB)
64
65ROOTLIBDIR=	$(ROOT)/usr/lib/security
66ROOTLIBDIR64=	$(ROOT)/usr/lib/security/$(MACH64)
67
68
69.KEEP_STATE:
70
71all:	$(LIBS) $(LINTLIB)
72
73lint: lintcheck
74
75FRC:
76
77include $(SRC)/lib/Makefile.targ
78