2002-01-16 22:49:03 +00:00
|
|
|
# Process this file with automake to create Makefile.in
|
|
|
|
|
2005-09-08 17:15:07 +00:00
|
|
|
bundledir = $(BUNDLEDIR)/pkcs11
|
2003-08-18 12:06:35 +00:00
|
|
|
includedir = @includedir@/opensc
|
2002-04-05 10:25:14 +00:00
|
|
|
|
2002-04-02 09:38:06 +00:00
|
|
|
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
|
2003-04-21 15:01:55 +00:00
|
|
|
EXTRA_DIST = Makefile.mak opensc_pkcs11_install.js
|
|
|
|
|
2002-01-16 22:49:03 +00:00
|
|
|
SUBDIRS = . rsaref
|
|
|
|
|
2005-09-08 17:15:07 +00:00
|
|
|
INCLUDES = $(CPPFLAGS) -I${top_srcdir}/src/pkcs15init $(OPENSSL_CFLAGS)
|
2002-01-16 22:49:03 +00:00
|
|
|
|
|
|
|
SRC = pkcs11-global.c pkcs11-session.c pkcs11-object.c misc.c slot.c \
|
2003-07-28 12:11:03 +00:00
|
|
|
mechanism.c openssl.c secretkey.c framework-pkcs15.c \
|
|
|
|
framework-pkcs15init.c debug.c
|
2002-01-16 22:49:03 +00:00
|
|
|
INC = sc-pkcs11.h
|
|
|
|
|
2005-07-10 17:03:15 +00:00
|
|
|
lib_LTLIBRARIES = opensc-pkcs11.la pkcs11-spy.la
|
|
|
|
noinst_LTLIBRARIES = libpkcs11.la
|
2002-01-16 22:49:03 +00:00
|
|
|
|
|
|
|
opensc_pkcs11_la_SOURCES = $(SRC) $(INC)
|
|
|
|
opensc_pkcs11_la_LDFLAGS = -module -avoid-version
|
2005-09-08 17:15:07 +00:00
|
|
|
opensc_pkcs11_la_LIBADD = @LIBOPENSC@ $(OPENSSL_LIBS) \
|
2005-07-17 20:18:31 +00:00
|
|
|
../pkcs15init/libpkcs15init.la
|
2002-01-24 16:27:09 +00:00
|
|
|
|
2003-07-28 12:11:03 +00:00
|
|
|
libpkcs11_la_SOURCES = libpkcs11.c
|
2003-08-18 14:28:47 +00:00
|
|
|
libpkcs11_la_LDFLAGS = -version-info @OPENSC_LT_CURRENT@:@OPENSC_LT_REVISION@:@OPENSC_LT_AGE@
|
2005-09-01 14:01:58 +00:00
|
|
|
libpkcs11_la_LIBADD =
|
2003-09-03 18:08:54 +00:00
|
|
|
|
2003-09-28 19:22:30 +00:00
|
|
|
pkcs11_spy_la_SOURCES = pkcs11-spy.c pkcs11-display.c pkcs11-display.h
|
|
|
|
pkcs11_spy_la_LDFLAGS = -module -avoid-version
|
2005-09-08 17:21:58 +00:00
|
|
|
pkcs11_spy_la_LIBADD = @LIBSCCONF@ $(OPENSSL_LIBS) libpkcs11.la $(LTLIBLTDL)
|
2002-12-17 11:48:54 +00:00
|
|
|
|
2003-08-18 12:06:35 +00:00
|
|
|
include_HEADERS = pkcs11.h
|
2002-12-17 11:48:54 +00:00
|
|
|
|
2002-01-24 16:27:09 +00:00
|
|
|
jar-dir:
|
|
|
|
if test ! -d jar-dir ; then mkdir jar-dir ; fi
|
|
|
|
|
|
|
|
pkcs11-jar: jar-dir
|
|
|
|
cp .libs/*.so jar-dir
|
|
|
|
cp opensc_pkcs11_install.js jar-dir
|
|
|
|
signtool -Z"opensc-pkcs11.jar" -i"opensc_pkcs11_install.js" \
|
|
|
|
-k"testcert" jar-dir
|
2002-02-06 12:32:22 +00:00
|
|
|
|
|
|
|
install-exec-local: install-libLTLIBRARIES
|
2003-08-14 11:37:46 +00:00
|
|
|
if HAVE_BUNDLES
|
|
|
|
-${top_srcdir}/macos/libtool-bundle $(DESTDIR)$(libdir)/opensc-pkcs11.so \
|
2003-08-18 13:45:37 +00:00
|
|
|
$(DESTDIR)$(bundledir)/
|
2003-09-28 19:22:30 +00:00
|
|
|
-${top_srcdir}/macos/libtool-bundle $(DESTDIR)$(libdir)/pkcs11-spy.so \
|
2003-09-03 18:08:54 +00:00
|
|
|
$(DESTDIR)$(bundledir)/
|
2003-08-14 11:37:46 +00:00
|
|
|
endif
|
2003-12-12 09:32:34 +00:00
|
|
|
|
|
|
|
uninstall-local: uninstall-libLTLIBRARIES
|
|
|
|
if HAVE_BUNDLES
|
|
|
|
rm -rf $(DESTDIR)$(bundledir)/opensc-pkcs11.bundle/
|
|
|
|
rm -rf $(DESTDIR)$(bundledir)/pkcs11-spy.bundle/
|
|
|
|
endif
|