xref: /titanic_44/usr/src/lib/libkmf/plugins/kmf_openssl/Makefile.com (revision 37bbd7cc85ebfd31fbf68569b8b098e5448c9ce9)
199ebb4caSwyllys#
299ebb4caSwyllys# CDDL HEADER START
399ebb4caSwyllys#
499ebb4caSwyllys# The contents of this file are subject to the terms of the
599ebb4caSwyllys# Common Development and Distribution License (the "License").
699ebb4caSwyllys# You may not use this file except in compliance with the License.
799ebb4caSwyllys#
899ebb4caSwyllys# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
999ebb4caSwyllys# or http://www.opensolaris.org/os/licensing.
1099ebb4caSwyllys# See the License for the specific language governing permissions
1199ebb4caSwyllys# and limitations under the License.
1299ebb4caSwyllys#
1399ebb4caSwyllys# When distributing Covered Code, include this CDDL HEADER in each
1499ebb4caSwyllys# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1599ebb4caSwyllys# If applicable, add the following below this CDDL HEADER, with the
1699ebb4caSwyllys# fields enclosed by brackets "[]" replaced with your own identifying
1799ebb4caSwyllys# information: Portions Copyright [yyyy] [name of copyright owner]
1899ebb4caSwyllys#
1999ebb4caSwyllys# CDDL HEADER END
2099ebb4caSwyllys#
21bda1f129SMark Phalan# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2299ebb4caSwyllys# Use is subject to license terms.
2399ebb4caSwyllys#
2499ebb4caSwyllys# Makefile for KMF Plugins
2599ebb4caSwyllys#
2699ebb4caSwyllys
2799ebb4caSwyllysLIBRARY=	kmf_openssl.a
2899ebb4caSwyllysVERS=		.1
2999ebb4caSwyllys
3099ebb4caSwyllysOBJECTS=	openssl_spi.o
3199ebb4caSwyllys
3299ebb4caSwyllysinclude	$(SRC)/lib/Makefile.lib
3399ebb4caSwyllys
3499ebb4caSwyllysLIBLINKS=	$(DYNLIB:.so.1=.so)
3599ebb4caSwyllysKMFINC=		-I../../../include -I../../../ber_der/inc
3690c85bf8Swyllys
3767e3a03eSrieBERLIB=		-lkmf -lkmfberder
3899ebb4caSwyllysBERLIB64=	$(BERLIB)
3999ebb4caSwyllys
40257873cfSJohn.Zolnowsky@Sun.COMOPENSSLLIBS=	$(BERLIB) -lcrypto -lcryptoutil -lc
41257873cfSJohn.Zolnowsky@Sun.COMOPENSSLLIBS64=	$(BERLIB64) -lcrypto -lcryptoutil -lc
4299ebb4caSwyllys
43d7141854SRobert MustacchiLINTSSLLIBS	= $(BERLIB) -lcrypto -lcryptoutil -lc
44d7141854SRobert MustacchiLINTSSLLIBS64	= $(BERLIB64) -lcrypto -lcryptoutil -lc
4599ebb4caSwyllys
46*37bbd7ccSRichard Lowe# Because of varying openssl implementations, we need to not have lint
47*37bbd7ccSRichard Lowe# complain if we're being liberal in our suppression directives.
48*37bbd7ccSRichard LoweLINTFLAGS	+=	-erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
49*37bbd7ccSRichard LoweLINTFLAGS64	+=	-erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
50*37bbd7ccSRichard Lowe
5199ebb4caSwyllysSRCDIR=		../common
5299ebb4caSwyllysINCDIR=		../../include
5399ebb4caSwyllys
5499ebb4caSwyllysCFLAGS		+=	$(CCVERBOSE)
55257873cfSJohn.Zolnowsky@Sun.COMCPPFLAGS	+=	-D_REENTRANT $(KMFINC) \
56494f7e12SKeith M Wesolowski			-I$(INCDIR) -I$(ADJUNCT_PROTO)/usr/include/libxml2
5799ebb4caSwyllys
587014882cSRichard LoweCERRWARN	+=	-_gcc=-Wno-unused-label
597014882cSRichard LoweCERRWARN	+=	-_gcc=-Wno-unused-value
607014882cSRichard LoweCERRWARN	+=	-_gcc=-Wno-uninitialized
617014882cSRichard Lowe
6299ebb4caSwyllysPICS=	$(OBJECTS:%=pics/%)
6399ebb4caSwyllys
6499ebb4caSwyllyslint:=	OPENSSLLIBS=	$(LINTSSLLIBS)
6599ebb4caSwyllyslint:=	OPENSSLLIBS64=	$(LINTSSLLIBS64)
6699ebb4caSwyllys
6799ebb4caSwyllysLDLIBS32 	+=	$(OPENSSLLIBS)
6899ebb4caSwyllys
69257873cfSJohn.Zolnowsky@Sun.COMROOTLIBDIR=	$(ROOTFS_LIBDIR)/crypto
70257873cfSJohn.Zolnowsky@Sun.COMROOTLIBDIR64=	$(ROOTFS_LIBDIR)/crypto/$(MACH64)
7199ebb4caSwyllys
7299ebb4caSwyllys.KEEP_STATE:
7399ebb4caSwyllys
7499ebb4caSwyllysLIBS	=	$(DYNLIB)
7599ebb4caSwyllysall:	$(DYNLIB) $(LINTLIB)
7699ebb4caSwyllys
7799ebb4caSwyllyslint: lintcheck
7899ebb4caSwyllys
7999ebb4caSwyllysFRC:
8099ebb4caSwyllys
8199ebb4caSwyllysinclude $(SRC)/lib/Makefile.targ
82