- Support for 4 slots per reader - abstraction of user interface - interactive pin verification - BCD encoding of PIN - Support for new readers (OpenCT) - automatically skip to a reader with a card - added defines - changed interface of ccid_initialize git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@23 96b47cad-a561-4643-ad3b-153ac7d7599c
49 lines
1.0 KiB
Makefile
49 lines
1.0 KiB
Makefile
MAKEFLAGS += -rR --no-print-directory
|
|
|
|
# Directories
|
|
prefix =
|
|
exec_prefix = $(prefix)
|
|
bindir = $(exec_prefix)/bin
|
|
|
|
|
|
# Compiler
|
|
CC = gcc
|
|
CFLAGS = -Wall -g
|
|
#LIBPCSCLITE_CFLAGS = `pkg-config --cflags --libs libpcsclite`
|
|
#OPENSSL_CFLAGS = `pkg-config --cflags --libs libssl`
|
|
OPENSC_CFLAGS = `pkg-config --cflags --libs libopensc`
|
|
PTHREAD_CFLAGS = -pthread
|
|
|
|
INSTALL = install
|
|
INSTALL_PROGRAM = $(INSTALL)
|
|
|
|
|
|
TARGETS = ccid
|
|
|
|
# top-level rule
|
|
all: $(TARGETS)
|
|
|
|
|
|
ccid: ccid.h ccid.c usbstring.c usbstring.h usb.c
|
|
$(CC) $(LIBPCSCLITE_CFLAGS) $(OPENSC_CFLAGS) $(OPENSSL_CFLAGS) $(PTHREAD_CFLAGS) $(CFLAGS) usbstring.c ccid.c usb.c -o $@
|
|
|
|
|
|
install: $(TARGETS) installdirs
|
|
$(INSTALL_PROGRAM) ccid $(DESTDIR)$(bindir)
|
|
|
|
.PHONY: installdirs
|
|
installdirs:
|
|
$(INSTALL) -d $(DESTDIR)$(bindir)
|
|
|
|
.PHONY: install-strip
|
|
install-strip:
|
|
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
|
|
|
|
.PHONY: uninstall
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(bindir)/ccid
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f ccid
|