|
Packit |
9f0df5 |
CCID_BUNDLE = $(bundle)
|
|
Packit |
9f0df5 |
CCID_LIB = libccid.$(DYN_LIB_EXT)
|
|
Packit |
9f0df5 |
CCIDTWIN_LIB = libccidtwin.$(DYN_LIB_EXT)
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
CCID_VERSION=CCID_VERSION=`$(srcdir)/convert_version.pl $(PACKAGE_VERSION)`
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
lib_LTLIBRARIES =
|
|
Packit |
9f0df5 |
LIBS_TO_INSTALL =
|
|
Packit |
9f0df5 |
LIBS_TO_UNINSTALL =
|
|
Packit |
9f0df5 |
if WITH_LIBUSB
|
|
Packit |
9f0df5 |
lib_LTLIBRARIES += libccid.la
|
|
Packit |
9f0df5 |
LIBS_TO_INSTALL += install_ccid
|
|
Packit |
9f0df5 |
LIBS_TO_UNINSTALL += uninstall_ccid
|
|
Packit |
9f0df5 |
noinst_PROGRAMS = parse
|
|
Packit |
9f0df5 |
endif
|
|
Packit |
9f0df5 |
if WITH_TWIN_SERIAL
|
|
Packit |
9f0df5 |
lib_LTLIBRARIES += libccidtwin.la
|
|
Packit |
9f0df5 |
LIBS_TO_INSTALL += install_ccidtwin
|
|
Packit |
9f0df5 |
LIBS_TO_UNINSTALL += uninstall_ccidtwin
|
|
Packit |
9f0df5 |
endif
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
COMMON = ccid.c \
|
|
Packit |
9f0df5 |
ccid.h \
|
|
Packit |
9f0df5 |
ccid_ifdhandler.h \
|
|
Packit |
9f0df5 |
commands.c \
|
|
Packit |
9f0df5 |
commands.h \
|
|
Packit |
9f0df5 |
debug.h \
|
|
Packit |
9f0df5 |
defs.h \
|
|
Packit |
9f0df5 |
ifdhandler.c \
|
|
Packit |
9f0df5 |
utils.c \
|
|
Packit |
9f0df5 |
utils.h
|
|
Packit |
9f0df5 |
USB = ccid_usb.c ccid_usb.h
|
|
Packit |
9f0df5 |
SERIAL = ccid_serial.c ccid_serial.h
|
|
Packit |
9f0df5 |
T1 = towitoko/atr.c \
|
|
Packit |
9f0df5 |
towitoko/atr.h \
|
|
Packit |
9f0df5 |
towitoko/defines.h \
|
|
Packit |
9f0df5 |
towitoko/pps.c \
|
|
Packit |
9f0df5 |
towitoko/pps.h \
|
|
Packit |
9f0df5 |
openct/buffer.c \
|
|
Packit |
9f0df5 |
openct/buffer.h \
|
|
Packit |
9f0df5 |
openct/checksum.c \
|
|
Packit |
9f0df5 |
openct/checksum.h \
|
|
Packit |
9f0df5 |
openct/proto-t1.c \
|
|
Packit |
9f0df5 |
openct/proto-t1.h
|
|
Packit |
9f0df5 |
TOKEN_PARSER = tokenparser.l parser.h \
|
|
Packit |
9f0df5 |
strlcpy.c \
|
|
Packit |
9f0df5 |
misc.h \
|
|
Packit |
9f0df5 |
strlcpycat.h \
|
|
Packit |
9f0df5 |
simclist.c \
|
|
Packit |
9f0df5 |
simclist.h
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
if WITHOUT_PCSC
|
|
Packit |
9f0df5 |
PROVIDED_BY_PCSC = debug.c
|
|
Packit |
9f0df5 |
endif
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
libccid_la_SOURCES = $(COMMON) $(USB) $(TOKEN_PARSER) $(PROVIDED_BY_PCSC) $(T1)
|
|
Packit |
9f0df5 |
libccid_la_LIBADD = $(LEXLIB) $(LIBUSB_LIBS) $(PTHREAD_LIBS)
|
|
Packit |
9f0df5 |
libccid_la_CFLAGS = $(PCSC_CFLAGS) $(LIBUSB_CFLAGS) $(PTHREAD_CFLAGS) \
|
|
Packit |
9f0df5 |
$(SYMBOL_VISIBILITY) -D$(CCID_VERSION) -DSIMCLIST_NO_DUMPRESTORE
|
|
Packit |
9f0df5 |
libccid_la_LDFLAGS = -avoid-version
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
libccidtwin_la_SOURCES = $(COMMON) $(SERIAL) $(TOKEN_PARSER) \
|
|
Packit |
9f0df5 |
$(PROVIDED_BY_PCSC) $(T1)
|
|
Packit |
9f0df5 |
libccidtwin_la_CFLAGS = $(PCSC_CFLAGS) $(PTHREAD_CFLAGS) $(SYMBOL_VISIBILITY) \
|
|
Packit |
9f0df5 |
-DTWIN_SERIAL -D$(CCID_VERSION) -DSIMCLIST_NO_DUMPRESTORE
|
|
Packit |
9f0df5 |
libccidtwin_la_LIBADD = $(PTHREAD_LIBS)
|
|
Packit |
9f0df5 |
libccidtwin_la_LDFLAGS = -avoid-version
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
parse_SOURCES = parse.c debug.c ccid_usb.c $(TOKEN_PARSER)
|
|
Packit |
9f0df5 |
parse_LDADD = $(LIBUSB_LIBS)
|
|
Packit |
9f0df5 |
parse_CFLAGS = $(PCSC_CFLAGS) $(LIBUSB_CFLAGS) -DSIMCLIST_NO_DUMPRESTORE
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
EXTRA_DIST = Info.plist.src create_Info_plist.pl reader.conf.in \
|
|
Packit |
9f0df5 |
towitoko/COPYING towitoko/README openct/LICENSE openct/README \
|
|
Packit |
9f0df5 |
convert_version.pl 92_pcscd_ccid.rules
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
# We can't use install-exec-local since we want to overwrite the install
|
|
Packit |
9f0df5 |
# rule. We do not want to _add_ files to install
|
|
Packit |
9f0df5 |
install: $(LIBS_TO_INSTALL)
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
INSTALL_UDEV_RULE_FILE=@/bin/echo "***************" ; echo "copy the src/92_pcscd_ccid.rules file in udev directory (/etc/udev/rules.d/)" ; /bin/echo "***************"
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
Info.plist: Info.plist.src $(srcdir)/../readers/supported_readers.txt
|
|
Packit |
9f0df5 |
$(srcdir)/create_Info_plist.pl $(srcdir)/../readers/supported_readers.txt $(srcdir)/Info.plist.src --target=$(CCID_LIB) --version=$(VERSION) $(NOCLASS) > Info.plist
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
DISTCLEANFILES = tokenparser.c Info.plist
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
install_ccid: libccid.la Info.plist
|
|
Packit |
9f0df5 |
$(mkinstalldirs) "$(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/"
|
|
Packit |
9f0df5 |
cp Info.plist "$(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/"
|
|
Packit |
9f0df5 |
cp .libs/$(CCID_LIB) "$(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/$(CCID_LIB)"
|
|
Packit |
9f0df5 |
$(INSTALL_UDEV_RULE_FILE)
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
install_ccidtwin: libccidtwin.la
|
|
Packit |
9f0df5 |
$(mkinstalldirs) "$(DESTDIR)$(ccidtwindir)"
|
|
Packit |
9f0df5 |
cp .libs/$(CCIDTWIN_LIB) "$(DESTDIR)$(ccidtwindir)/$(CCIDTWIN_LIB)"
|
|
Packit |
9f0df5 |
$(mkinstalldirs) "$(DESTDIR)/$(serialconfdir)" ; \
|
|
Packit |
9f0df5 |
perl -ne "s|TARGET|$(ccidtwindir)/$(CCIDTWIN_LIB)| ; print" $(srcdir)/reader.conf.in > "$(DESTDIR)/$(serialconfdir)/libccidtwin"
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
# do not uninstall the serial driver by default
|
|
Packit |
9f0df5 |
# use explicitely 'make uninstall_ccidtwin'
|
|
Packit |
9f0df5 |
uninstall: $(LIBS_TO_UNINSTALL)
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
uninstall_ccid:
|
|
Packit |
9f0df5 |
rm -rf "$(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)"
|
|
Packit |
9f0df5 |
|
|
Packit |
9f0df5 |
uninstall_ccidtwin:
|
|
Packit |
9f0df5 |
rm -f "$(DESTDIR)$(ccidtwindir)/$(CCIDTWIN_LIB)"
|
|
Packit |
9f0df5 |
rm -f "$(DESTDIR)/$(serialconfdir)/libccidtwin"
|
|
Packit |
9f0df5 |
|