switched to autotools

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@103 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-05-08 20:58:58 +00:00
parent 53cf8b684c
commit 0b60b64cb5
22 changed files with 38 additions and 131 deletions

View File

@@ -0,0 +1,27 @@
VPCD_LIB = libvpcd.$(DYN_LIB_EXT)
lib_LTLIBRARIES = libvpcd.la
libvpcd_la_SOURCES = ifd.c vpcd.c
libvpcd_la_LIBADD = $(PCSC_LIBS)
libvpcd_la_CFLAGS = $(PCSC_CFLAGS)
EXTRA_DIST = reader.conf.in
install: install_libvpcd
install_libvpcd: libvpcd.la
$(mkinstalldirs) $(DESTDIR)$(prefix)$(serialdropdir)
cp .libs/$(VPCD_LIB) $(DESTDIR)$(prefix)$(serialdropdir)/$(VPCD_LIB).$(VERSION)
ln -fs $(VPCD_LIB).$(VERSION) $(DESTDIR)$(prefix)$(serialdropdir)/$(VPCD_LIB)
if [ -e $(DESTDIR)$(sysconfdir)/reader.conf ] ; \
then \
echo "Edit existing /etc/reader.conf" ; \
else \
$(mkinstalldirs) $(DESTDIR)$(sysconfdir) ; \
perl -ne "s|TARGET|$(serialdropdir)/$(VPCD_LIB)| ; print" $(srcdir)/reader.conf.in > $(DESTDIR)$(sysconfdir)/reader.conf ; \
fi
uninstall: uninstall_libvpcd
uninstall_libvpcd:
rm -f $(DESTDIR)$(prefix)$(serialdropdir)/$(VPCD_LIB).$(VERSION)