99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# CDDL HEADER START
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# The contents of this file are subject to the terms of the
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Common Development and Distribution License (the "License").
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# You may not use this file except in compliance with the License.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# or http://www.opensolaris.org/os/licensing.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# See the License for the specific language governing permissions
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# and limitations under the License.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# When distributing Covered Code, include this CDDL HEADER in each
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# If applicable, add the following below this CDDL HEADER, with the
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# fields enclosed by brackets "[]" replaced with your own identifying
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# information: Portions Copyright [yyyy] [name of copyright owner]
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# CDDL HEADER END
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
bda1f129971950880940a17bab0bf096d5744b0cMark Phalan# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Use is subject to license terms.
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys# Makefile for KMF Plugins
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys#
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysLIBRARY= kmf_openssl.a
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysVERS= .1
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysOBJECTS= openssl_spi.o
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysinclude $(SRC)/lib/Makefile.lib
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysLIBLINKS= $(DYNLIB:.so.1=.so)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysKMFINC= -I../../../include -I../../../ber_der/inc
90c85bf889e3af34323084f00e344a82f120b409wyllys
67e3a03ed4a2813074d36330f062ed6e593a4937rieBERLIB= -lkmf -lkmfberder
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysBERLIB64= $(BERLIB)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
257873cfc1dd3337766407f80397db60a56f2f5aJohn.Zolnowsky@Sun.COMOPENSSLLIBS= $(BERLIB) -lcrypto -lcryptoutil -lc
257873cfc1dd3337766407f80397db60a56f2f5aJohn.Zolnowsky@Sun.COMOPENSSLLIBS64= $(BERLIB64) -lcrypto -lcryptoutil -lc
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
d7141854234c22ab8fe0547bf51a2f3a30781870Robert MustacchiLINTSSLLIBS = $(BERLIB) -lcrypto -lcryptoutil -lc
d7141854234c22ab8fe0547bf51a2f3a30781870Robert MustacchiLINTSSLLIBS64 = $(BERLIB64) -lcrypto -lcryptoutil -lc
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
37bbd7cc85ebfd31fbf68569b8b098e5448c9ce9Richard Lowe# Because of varying openssl implementations, we need to not have lint
37bbd7cc85ebfd31fbf68569b8b098e5448c9ce9Richard Lowe# complain if we're being liberal in our suppression directives.
37bbd7cc85ebfd31fbf68569b8b098e5448c9ce9Richard LoweLINTFLAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
37bbd7cc85ebfd31fbf68569b8b098e5448c9ce9Richard LoweLINTFLAGS64 += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
37bbd7cc85ebfd31fbf68569b8b098e5448c9ce9Richard Lowe
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysSRCDIR= ../common
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysINCDIR= ../../include
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysCFLAGS += $(CCVERBOSE)
257873cfc1dd3337766407f80397db60a56f2f5aJohn.Zolnowsky@Sun.COMCPPFLAGS += -D_REENTRANT $(KMFINC) \
494f7e12a62129ef191a15f9dfde6b7abe3bf510Keith M Wesolowski -I$(INCDIR) -I$(ADJUNCT_PROTO)/usr/include/libxml2
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-label
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-value
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysPICS= $(OBJECTS:%=pics/%)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllyslint:= OPENSSLLIBS= $(LINTSSLLIBS)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllyslint:= OPENSSLLIBS64= $(LINTSSLLIBS64)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysLDLIBS32 += $(OPENSSLLIBS)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
257873cfc1dd3337766407f80397db60a56f2f5aJohn.Zolnowsky@Sun.COMROOTLIBDIR= $(ROOTFS_LIBDIR)/crypto
257873cfc1dd3337766407f80397db60a56f2f5aJohn.Zolnowsky@Sun.COMROOTLIBDIR64= $(ROOTFS_LIBDIR)/crypto/$(MACH64)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys.KEEP_STATE:
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysLIBS = $(DYNLIB)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysall: $(DYNLIB) $(LINTLIB)
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllyslint: lintcheck
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysFRC:
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllys
99ebb4ca412cb0a19d77a3899a87c055b9c30fa8wyllysinclude $(SRC)/lib/Makefile.targ