1 all: libusb-1.0.la libusb-1.0.dll
3 AUTOMAKE_OPTIONS = subdir-objects
5 lib_LTLIBRARIES = libusb-1.0.la
7 POSIX_POLL_SRC = os/poll_posix.h os/poll_posix.c
8 POSIX_THREADS_SRC = os/threads_posix.h os/threads_posix.c
9 WINDOWS_POLL_SRC = os/poll_windows.h os/poll_windows.c
10 WINDOWS_THREADS_SRC = os/threads_windows.h os/threads_windows.c
11 LINUX_USBFS_SRC = os/linux_usbfs.h os/linux_usbfs.c
12 DARWIN_USB_SRC = os/darwin_usb.h os/darwin_usb.c
13 OPENBSD_USB_SRC = os/openbsd_usb.c
14 NETBSD_USB_SRC = os/netbsd_usb.c
15 COMMON_WINDOWS_SRC = os/windows_nt_common.h \
16 os/windows_nt_common.c \
18 libusb-1.0.rc libusb-1.0.def
19 WINDOWS_USB_SRC = os/windows_winusb.h os/windows_winusb.c $(COMMON_WINDOWS_SRC)
20 WINCE_USB_SRC = os/wince_usb.h os/wince_usb.c
21 HAIKU_USB_SRC = os/haiku_usb.h os/haiku_usb_backend.cpp \
22 os/haiku_usb_raw.h os/haiku_usb_raw.cpp os/haiku_pollfs.cpp
24 EXTRA_DIST = $(POSIX_POLL_SRC) $(POSIX_THREADS_SRC) \
25 $(WINDOWS_POLL_SRC) $(WINDOWS_THREADS_SRC) \
26 $(LINUX_USBFS_SRC) $(DARWIN_USB_SRC) \
27 $(OPENBSD_USB_SRC) $(NETBSD_USB_SRC) \
28 $(WINDOWS_USB_SRC) $(WINCE_USB_SRC) \
30 os/linux_udev.c os/linux_netlink.c
35 OS_SRC = $(LINUX_USBFS_SRC) os/linux_udev.c
37 OS_SRC = $(LINUX_USBFS_SRC) os/linux_netlink.c
43 OS_SRC = $(DARWIN_USB_SRC)
44 AM_CFLAGS_EXT = -no-cpp-precomp
48 OS_SRC = $(OPENBSD_USB_SRC)
52 OS_SRC = $(NETBSD_USB_SRC)
56 noinst_LTLIBRARIES = libusb_haiku.la
57 libusb_haiku_la_SOURCES = $(HAIKU_USB_SRC)
58 libusb_1_0_la_LIBADD = libusb_haiku.la
62 OS_SRC = $(WINDOWS_USB_SRC)
65 $(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(RCFLAGS) -i $< -o $@
67 libusb-1.0.rc: version.h version_nano.h
70 libusb-1.0.dll: libusb-1.0.def libusb-1.0.la
72 # Rebuild the import lib from the .def so that MS and MinGW DLLs can be interchanged
73 $(AM_V_GEN)$(DLLTOOL) $(DLLTOOLFLAGS) --kill-at --input-def $(srcdir)/libusb-1.0.def --dllname $@ --output-lib .libs/$@.a
77 POLL_SRC = $(WINDOWS_POLL_SRC)
79 POLL_SRC = $(POSIX_POLL_SRC)
83 THREADS_SRC = $(POSIX_THREADS_SRC)
85 THREADS_SRC = $(WINDOWS_THREADS_SRC)
88 libusb_1_0_la_CFLAGS = $(AM_CFLAGS)
89 libusb_1_0_la_LDFLAGS = $(LTLDFLAGS)
90 libusb_1_0_la_SOURCES = libusbi.h libusb.h version.h version_nano.h \
91 core.c descriptor.c hotplug.h hotplug.c io.c strerror.c sync.c \
92 $(POLL_SRC) $(THREADS_SRC) $(OS_SRC)
94 hdrdir = $(includedir)/libusb-1.0
95 hdr_HEADERS = libusb.h