mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-05-30 00:56:15 +00:00
Add ./configure option to disable libusb (removes PN531USB and PN533USB support).
Enhance "./configure --help" options descriptions.
This commit is contained in:
@@ -5,7 +5,7 @@ bin_PROGRAMS = nfc-anticol nfc-list nfc-mftool nfc-mfultool nfc-relay nfc-emulat
|
||||
# set the include path found by configure
|
||||
INCLUDES= $(all_includes)
|
||||
|
||||
nfc_devices_headers = dev_arygon.h dev_pn531.h dev_pn533.h
|
||||
nfc_devices_headers = dev_arygon.h
|
||||
nfc_examples_headers = mifaretag.h mifareultag.h
|
||||
nfcinclude_HEADERS = libnfc.h bitutils.h defines.h types.h rs232.h devices.h messages.h
|
||||
nfcinclude_HEADERS += $(nfc_devices_headers)
|
||||
@@ -13,9 +13,9 @@ nfcinclude_HEADERS += $(nfc_examples_headers)
|
||||
nfcincludedir = $(includedir)/libnfc
|
||||
|
||||
lib_LTLIBRARIES = libnfc.la
|
||||
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@
|
||||
libnfc_la_SOURCES = bitutils.c libnfc.c rs232.c dev_arygon.c
|
||||
libnfc_la_CFLAGS =
|
||||
libnfc_la_LIBADD =
|
||||
|
||||
if PCSC_LITE_ENABLED
|
||||
nfcinclude_HEADERS += dev_acr122.h
|
||||
@@ -24,6 +24,13 @@ if PCSC_LITE_ENABLED
|
||||
libnfc_la_LIBADD += @LIBPCSCLITE_LIBS@
|
||||
endif
|
||||
|
||||
if LIBUSB_ENABLED
|
||||
nfcinclude_HEADERS += dev_pn531.h dev_pn533.h
|
||||
libnfc_la_CFLAGS += @LIBUSB_CFLAGS@ -DHAVE_LIBUSB
|
||||
libnfc_la_SOURCES += dev_pn531.c dev_pn533.c
|
||||
libnfc_la_LIBADD += @LIBUSB_LIBS@
|
||||
endif
|
||||
|
||||
nfc_anticol_SOURCES = anticol.c
|
||||
nfc_anticol_LDADD = libnfc.la
|
||||
|
||||
|
||||
Reference in New Issue
Block a user