diff options
Diffstat (limited to 'examples/Makefile.am')
-rw-r--r-- | examples/Makefile.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am index 600ebd4..bed1837 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,5 +1,5 @@ INCLUDES = -I$(top_srcdir) -noinst_PROGRAMS = lsusb dpfp dpfp_threaded +noinst_PROGRAMS = lsusb dpfp lsusb_SOURCES = lsusb.c lsusb_LDADD = ../libusb/libusb-1.0.la -lusb-1.0 @@ -7,7 +7,10 @@ lsusb_LDADD = ../libusb/libusb-1.0.la -lusb-1.0 dpfp_SOURCES = dpfp.c dpfp_LDADD = ../libusb/libusb-1.0.la -lusb-1.0 +if THREADS_POSIX dpfp_threaded_SOURCES = dpfp_threaded.c -dpfp_threaded_CFLAGS = -pthread $(AM_CFLAGS) +dpfp_threaded_CFLAGS = $(THREAD_CFLAGS) $(AM_CFLAGS) dpfp_threaded_LDADD = ../libusb/libusb-1.0.la -lusb-1.0 +noinst_PROGRAMS += dpfp_threaded +endif |