diff options
author | Daniel Drake <dan@reactivated.net> | 2010-07-29 12:42:25 +0100 |
---|---|---|
committer | Daniel Drake <dan@reactivated.net> | 2010-07-29 12:42:25 +0100 |
commit | 435760539ee5277bc31aa12fb6dbe685d055963b (patch) | |
tree | e93e9a0d8fa32a801fafad351dfa077fc4d57467 /examples | |
parent | 1867c7103b51e21432a11df8893050a4fe60ba42 (diff) | |
download | libusb-435760539ee5277bc31aa12fb6dbe685d055963b.tar.gz |
bring autoconf/automake in line with official
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Makefile.am | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am index a5512cb..06af0bc 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,12 +1,5 @@ INCLUDES = -I$(top_srcdir) - -if POSIX_THREADS -DPFP_SRC = dpfp dpfp_threaded -else -DPFP_SRC = dpfp -endif - -noinst_PROGRAMS = xusb lsusb $(DPFP_SRC) +noinst_PROGRAMS = xusb lsusb lsusb_SOURCES = lsusb.c lsusb_LDADD = ../libusb/libusb-1.0.la -lusb-1.0 @@ -14,10 +7,17 @@ lsusb_LDADD = ../libusb/libusb-1.0.la -lusb-1.0 xusb_SOURCES = xusb.c xusb_LDADD = ../libusb/libusb-1.0.la -lusb-1.0 +if HAVE_SIGACTION dpfp_SOURCES = dpfp.c dpfp_LDADD = ../libusb/libusb-1.0.la -lusb-1.0 +noinst_PROGRAMS += dpfp +endif +if THREADS_POSIX +if HAVE_SIGACTION dpfp_threaded_SOURCES = dpfp_threaded.c dpfp_threaded_CFLAGS = $(THREAD_CFLAGS) $(AM_CFLAGS) dpfp_threaded_LDADD = ../libusb/libusb-1.0.la -lusb-1.0 - +noinst_PROGRAMS += dpfp_threaded +endif +endif |