diff options
author | Peter Stuge <peter@stuge.se> | 2011-06-05 23:21:08 +0200 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2011-06-15 02:45:19 +0200 |
commit | 5b20b730294fb471ef5e0629d0a9068493f7c9d9 (patch) | |
tree | 8427b89e523a23962d3e77c3e47f512b0fd00502 | |
parent | 273fe28457c8e747a16642c6a08e77bd5c6c84b8 (diff) |
libusb/Makefile.am: Correct threading files in libusb_1_0_la_SOURCES
-rw-r--r-- | libusb/Makefile.am | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libusb/Makefile.am b/libusb/Makefile.am index 78f49a1..0428830 100644 --- a/libusb/Makefile.am +++ b/libusb/Makefile.am @@ -19,19 +19,21 @@ endif if OS_WINDOWS OS_SRC = $(WINDOWS_USB_SRC) -if !THREADS_POSIX -OS_SRC += os/threads_windows.c -endif - .rc.lo: $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(RC) $(RCFLAGS) -i $< -o $@ endif +if THREADS_POSIX +THREADS_SRC = os/threads_posix.h +else +THREADS_SRC = os/threads_windows.h os/threads_windows.c +endif + libusb_1_0_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS) $(THREAD_CFLAGS) libusb_1_0_la_LDFLAGS = $(LTLDFLAGS) libusb_1_0_la_SOURCES = libusbi.h core.c descriptor.c io.c sync.c $(OS_SRC) \ os/linux_usbfs.h os/darwin_usb.h os/windows_usb.h \ - os/threads_posix.h os/threads_windows.h \ + $(THREADS_SRC) \ os/poll_posix.h os/poll_windows.h hdrdir = $(includedir)/libusb-1.0 |