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.c
8 LINUX_USBFS_SRC = os/linux_usbfs.c
9 DARWIN_USB_SRC = os/darwin_usb.c
10 OPENBSD_USB_SRC = os/openbsd_usb.c
11 NETBSD_USB_SRC = os/netbsd_usb.c
12 WINDOWS_USB_SRC = os/poll_windows.c os/windows_usb.c libusb-1.0.rc libusb-1.0.def
13 WINCE_USB_SRC = os/wince_usb.c os/wince_usb.h
15 EXTRA_DIST = $(LINUX_USBFS_SRC) $(DARWIN_USB_SRC) $(OPENBSD_USB_SRC) \
16 $(NETBSD_USB_SRC) $(WINDOWS_USB_SRC) $(WINCE_USB_SRC) \
18 os/threads_posix.c os/threads_windows.c \
19 os/linux_udev.c os/linux_netlink.c
24 OS_SRC = $(LINUX_USBFS_SRC) $(POSIX_POLL_SRC) \
27 OS_SRC = $(LINUX_USBFS_SRC) $(POSIX_POLL_SRC) \
34 OS_SRC = $(DARWIN_USB_SRC) $(POSIX_POLL_SRC)
35 AM_CFLAGS_EXT = -no-cpp-precomp
39 OS_SRC = $(OPENBSD_USB_SRC) $(POSIX_POLL_SRC)
43 OS_SRC = $(NETBSD_USB_SRC) $(POSIX_POLL_SRC)
47 OS_SRC = $(WINDOWS_USB_SRC)
50 $(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(RCFLAGS) -i $< -o $@
52 libusb-1.0.rc: version.h version_nano.h
55 libusb-1.0.dll: libusb-1.0.def
57 # Rebuild the import lib from the .def so that MS and MinGW DLLs can be interchanged
58 $(AM_V_GEN)$(DLLTOOL) $(DLLTOOLFLAGS) --kill-at --input-def $(srcdir)/libusb-1.0.def --dllname $@ --output-lib .libs/$@.a
62 THREADS_SRC = os/threads_posix.h os/threads_posix.c
64 THREADS_SRC = os/threads_windows.h os/threads_windows.c
67 libusb_1_0_la_CFLAGS = $(AM_CFLAGS)
68 libusb_1_0_la_LDFLAGS = $(LTLDFLAGS)
69 libusb_1_0_la_SOURCES = libusbi.h core.c descriptor.c io.c strerror.c sync.c \
70 os/linux_usbfs.h os/darwin_usb.h os/windows_usb.h os/windows_common.h \
71 hotplug.h hotplug.c $(THREADS_SRC) $(OS_SRC) \
72 os/poll_posix.h os/poll_windows.h
74 hdrdir = $(includedir)/libusb-1.0
75 hdr_HEADERS = libusb.h