summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-02-24 22:18:41 +0000
committerPete Batard <pbatard@gmail.com>2010-02-24 22:18:41 +0000
commit2745941df4f0ffacca14166b23f40a19b66c7d22 (patch)
tree4bdb0db71fe7380441c481664d5b9029f294c952
parent6c7a1e0ca48e20bc56876ad469d2a84499e58cd1 (diff)
downloadlibusb-2745941df4f0ffacca14166b23f40a19b66c7d22.tar.gz
exclude dpfp_threaded if pthread is not available (MinGW)r174
-rw-r--r--examples/Makefile.am9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index d178d07..8ffc9c5 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -1,5 +1,12 @@
INCLUDES = -I$(top_srcdir)
-noinst_PROGRAMS = xusb lsusb dpfp dpfp_threaded
+
+if POSIX_THREADS
+DPFP_SRC = dpfp dpfp_threaded
+else
+DPFP_SRC = dpfp
+endif
+
+noinst_PROGRAMS = xusb lsusb $(DPFP_SRC)
lsusb_SOURCES = lsusb.c
lsusb_LDADD = ../libusb/libusb-1.0.la -lusb-1.0