1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
# ***** BEGIN COPYRIGHT BLOCK *****
# Copyright (C) 2005 Red Hat, Inc.
# All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation version
# 2.1 of the License.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# ***** END COPYRIGHT BLOCK *****
# Process this file with automake to create Makefile.in
SUBDIRS =
AM_CPP_FLAGS =
EXTRA_DIST = coolkeypk11.def coolkeypk11.rc
if IS_WINDOWS
pkcs11dir = $(libdir)
else
pkcs11dir = $(libdir)/pkcs11
endif
pkcs11_LTLIBRARIES = libcoolkeypk11.la
libcoolkeypk11_la_SOURCES = \
coolkey.cpp \
dllmain.cpp \
locking.cpp \
log.cpp \
machdep.cpp \
object.cpp \
PKCS11Exception.cpp \
slot.cpp \
locking.h \
log.h \
machdep.h \
mypkcs11.h \
object.h \
params.h \
PKCS11Exception.h \
pkcs11f.h \
pkcs11.h \
pkcs11n.h \
pkcs11t.h \
slot.h \
$(NULL)
libcoolkeypk11_la_LDFLAGS = -avoid-version -export-symbols coolkeypk11.sym -no-undefined
libcoolkeypk11_la_CPPFLAGS = $(CPPFLAGS) -DNSS_HIDE_NONSTANDARD_OBJECTS=1 -I$(top_srcdir)/src/libckyapplet $(PCSC_CFLAGS) $(ZLIB_CFLAGS)
libcoolkeypk11_la_DEPENDENCIES = coolkeypk11.sym
libcoolkeypk11_la_LIBADD = @LIBCKYAPPLET@ $(ZLIB_LIBS)
#
# sigh, libtool doesn't maintain Linux and Solaris versioning info in
# their .def file. So convert a very general, easy to work an any platform
# coreconf .def file to a simplistic but acceptable libtool .sym file
#
coolkeypk11.sym: coolkeypk11.def
grep -v ';+' $< | grep -v ';-' | sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' > $@
clean-generic:
rm -f coolkeypk11.sym
# remove the static and libtool libraries if necessary
install-data-hook:
rm -f $(DESTDIR)$(pkcs11dir)/libcoolkeypk11.a
rm -f $(DESTDIR)$(pkcs11dir)/libcoolkeypk11.la
if IS_WINDOWS
rm -f $(DESTDIR)$(pkcs11dir)/libcoolkeypk11.lib
mv $(DESTDIR)$(pkcs11dir)/libcoolkeypk11.dll $(DESTDIR)$(pkcs11dir)/coolkeypk11.dll
cp $(ZLIB_LIB)/../zlib1.dll $(DESTDIR)/$(libdir)/zlib1.dll
endif
|