From 008158090c1a4c785fa305b2f230c1562c2c81e4 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 7 Mar 2013 00:43:35 +0100 Subject: [PATCH] Fix bug when compiling without libusb: skip usbbus.c --- libnfc/buses/Makefile.am | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/libnfc/buses/Makefile.am b/libnfc/buses/Makefile.am index 23cf46f..58f193c 100644 --- a/libnfc/buses/Makefile.am +++ b/libnfc/buses/Makefile.am @@ -1,10 +1,21 @@ - # set the include path found by configure AM_CPPFLAGS = $(all_includes) $(LIBNFC_CFLAGS) noinst_LTLIBRARIES = libnfcbuses.la -libnfcbuses_la_SOURCES = uart.c uart.h usbbus.c usbbus.h -libnfcbuses_la_CFLAGS = -I$(top_srcdir)/libnfc +libnfcbuses_la_SOURCES = +libnfcbuses_la_CFLAGS = -I$(top_srcdir)/libnfc +libnfcbuses_la_LIBADD = + +# UART_ENABLED +libnfcbuses_la_SOURCES += uart.c uart.h +libnfcbuses_la_CFLAGS += +libnfcbuses_la_LIBADD += EXTRA_DIST = uart_posix.c uart_win32.c +if LIBUSB_ENABLED + libnfcbuses_la_SOURCES += usbbus.c usbbus.h + libnfcbuses_la_CFLAGS += @libusb_CFLAGS@ + libnfcbuses_la_LIBADD += @libusb_LIBS@ +endif +