libnfc can now be compiled without pcsc-lite (but it removes acr122 device support)
This commit is contained in:
parent
eccb9d3d3b
commit
bf5848e7a1
3 changed files with 14 additions and 10 deletions
|
@ -36,7 +36,7 @@ then
|
|||
fi
|
||||
AM_CONDITIONAL(PCSC_LITE_ENABLED, [test x"$enable_pcsc_lite" = xyes])
|
||||
|
||||
# --enable-debug support
|
||||
# --enable-debug support (default:no)
|
||||
AC_ARG_ENABLE([debug],AS_HELP_STRING([--enable-debug],[Debug flags]),[enable_debug=$enableval],[enable_debug="no"])
|
||||
|
||||
AC_MSG_CHECKING(for debug flag)
|
||||
|
|
|
@ -5,19 +5,19 @@ bin_PROGRAMS = nfc-anticol nfc-list nfc-mftool nfc-relay nfc-emulate
|
|||
# set the include path found by configure
|
||||
INCLUDES= $(all_includes)
|
||||
|
||||
nfcinclude_HEADERS = libnfc.h bitutils.h defines.h types.h mifaretag.h devices.h rs232.h dev_arygon.h
|
||||
nfcinclude_HEADERS = libnfc.h bitutils.h defines.h types.h mifaretag.h devices.h rs232.h dev_arygon.h dev_pn531.h dev_pn533.h
|
||||
nfcincludedir = $(includedir)/libnfc
|
||||
|
||||
lib_LTLIBRARIES = libnfc.la
|
||||
libnfc_la_SOURCES = bitutils.c libnfc.c rs232.c dev_arygon.c
|
||||
libnfc_la_CFLAGS =
|
||||
libnfc_la_LIBADD =
|
||||
libnfc_la_SOURCES = bitutils.c libnfc.c rs232.c dev_arygon.c dev_pn531.c dev_pn533.c
|
||||
libnfc_la_CFLAGS = @LIBUSB_CFLAGS@
|
||||
libnfc_la_LIBADD = @LIBUSB_LIBS@
|
||||
|
||||
if PCSC_LITE_ENABLED
|
||||
nfcinclude_HEADERS += dev_acr122.h dev_pn531.h dev_pn533.h
|
||||
libnfc_la_CFLAGS += @LIBUSB_CFLAGS@ @LIBPCSCLITE_CFLAGS@
|
||||
libnfc_la_SOURCES += dev_acr122.c dev_pn531.c dev_pn533.c
|
||||
libnfc_la_LIBADD += @LIBUSB_LIBS@ @LIBPCSCLITE_LIBS@
|
||||
nfcinclude_HEADERS += dev_acr122.h
|
||||
libnfc_la_CFLAGS += @LIBPCSCLITE_CFLAGS@ -DHAVE_PCSC_LITE
|
||||
libnfc_la_SOURCES += dev_acr122.c
|
||||
libnfc_la_LIBADD += @LIBPCSCLITE_LIBS@
|
||||
endif
|
||||
|
||||
nfc_anticol_SOURCES = anticol.c
|
||||
|
|
|
@ -23,14 +23,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#include "defines.h"
|
||||
#include "types.h"
|
||||
#include "dev_acr122.h"
|
||||
#ifdef HAVE_PCSC_LITE
|
||||
#include "dev_acr122.h"
|
||||
#endif
|
||||
#include "dev_pn531.h"
|
||||
#include "dev_pn533.h"
|
||||
#include "dev_arygon.h"
|
||||
|
||||
const static struct dev_callbacks dev_callbacks_list[] = {
|
||||
// Driver Name Connect Transceive Disconect
|
||||
#ifdef HAVE_PCSC_LITE
|
||||
{ "ACR122", dev_acr122_connect, dev_acr122_transceive, dev_acr122_disconnect },
|
||||
#endif
|
||||
{ "PN531USB", dev_pn531_connect, dev_pn531_transceive, dev_pn531_disconnect },
|
||||
{ "PN533USB", dev_pn533_connect, dev_pn533_transceive, dev_pn533_disconnect },
|
||||
{ "ARYGON", dev_arygon_connect, dev_arygon_transceive, dev_arygon_disconnect }
|
||||
|
|
Loading…
Reference in a new issue