Linux: Don't set the USBFS_URB_SHORT_NOT_OK flag on the last urb
[libusbx.git] / libusb / Makefile.am
blobd248e47cb6818c73856384610ee83c45b1d29790
1 all: libusb-1.0.la libusb-1.0.dll
3 lib_LTLIBRARIES = libusb-1.0.la
5 LINUX_USBFS_SRC = os/linux_usbfs.c
6 DARWIN_USB_SRC = os/darwin_usb.c
7 OPENBSD_USB_SRC = os/openbsd_usb.c
8 WINDOWS_USB_SRC = os/poll_windows.c os/windows_usb.c libusb-1.0.rc
10 EXTRA_DIST = $(LINUX_USBFS_SRC) $(DARWIN_USB_SRC) $(OPENBSD_USB_SRC) \
11         $(WINDOWS_USB_SRC) os/threads_posix.c os/threads_windows.c
13 if OS_LINUX
14 OS_SRC = $(LINUX_USBFS_SRC)
15 endif
17 if OS_DARWIN
18 OS_SRC = $(DARWIN_USB_SRC)
19 AM_CFLAGS_EXT = -no-cpp-precomp
20 endif
22 if OS_OPENBSD
23 OS_SRC = $(OPENBSD_USB_SRC)
24 endif
26 if OS_WINDOWS
27 OS_SRC = $(WINDOWS_USB_SRC)
29 .rc.lo:
30         $(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(RCFLAGS) -i $< -o $@
32 libusb-1.0.rc: version.h version_nano.h
33 endif
35 libusb-1.0.dll: libusb-1.0.def
36 if CREATE_IMPORT_LIB
37 # Rebuild the import lib from the .def so that MS and MinGW DLLs can be interchanged
38         $(AM_V_GEN)$(DLLTOOL) $(DLLTOOLFLAGS) --kill-at --input-def $(srcdir)/libusb-1.0.def --dllname $@ --output-lib .libs/$@.a
39 endif
42 if THREADS_POSIX
43 THREADS_SRC = os/threads_posix.h os/threads_posix.c
44 else
45 THREADS_SRC = os/threads_windows.h os/threads_windows.c
46 endif
48 libusb_1_0_la_CFLAGS = $(AM_CFLAGS)
49 libusb_1_0_la_LDFLAGS = $(LTLDFLAGS)
50 libusb_1_0_la_SOURCES = libusbi.h core.c descriptor.c io.c sync.c $(OS_SRC) \
51         os/linux_usbfs.h os/darwin_usb.h os/windows_usb.h \
52         $(THREADS_SRC) \
53         os/poll_posix.h os/poll_windows.h \
54         os/windows_common.h
56 hdrdir = $(includedir)/libusb-1.0
57 hdr_HEADERS = libusb.h