mirror of
https://github.com/utmapp/libusb.git
synced 2026-12-01 07:43:16 -10:00
Prior to this change, the dpfp and sam3u_benchmark examples were only built on POSIX platforms due to a dependency on sigaction(). Furthermore the dpfp_threaded example only worked with POSIX threads. Lift this limitation by breaking the dependence on sigaction(). Also provide a minimal threading abstraction so that dpfp_threaded can be built on Windows as well. Also merge the sources for dpfp and dpfp_threaded. The only difference between the two is how libusb's event handling functions are called and this can be easily handled within a single source file. Signed-off-by: Chris Dickens <[email protected]>
13 lines
404 B
Makefile
13 lines
404 B
Makefile
AM_CPPFLAGS = -I$(top_srcdir)/libusb
|
|
LDADD = ../libusb/libusb-1.0.la
|
|
LIBS =
|
|
|
|
noinst_PROGRAMS = dpfp dpfp_threaded fxload hotplugtest listdevs sam3u_benchmark testlibusb xusb
|
|
|
|
dpfp_threaded_CPPFLAGS = $(AM_CPPFLAGS) -DDPFP_THREADED
|
|
dpfp_threaded_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
dpfp_threaded_LDADD = $(LDADD) $(THREAD_LIBS)
|
|
dpfp_threaded_SOURCES = dpfp.c
|
|
|
|
fxload_SOURCES = ezusb.c ezusb.h fxload.c
|