1 lib_LTLIBRARIES = libusb-1.0.la
3 LINUX_USBFS_SRC = os/linux_usbfs.c
4 DARWIN_USB_SRC = os/darwin_usb.c
5 WINDOWS_USB_SRC = os/poll_windows.c os/windows_usb.c libusb-1.0.rc
7 EXTRA_DIST = $(LINUX_USBFS_SRC) $(DARWIN_USB_SRC) $(WINDOWS_USB_SRC) \
8 os/threads_posix.c os/threads_windows.c
11 OS_SRC = $(LINUX_USBFS_SRC)
15 OS_SRC = $(DARWIN_USB_SRC)
16 AM_CFLAGS_EXT = -no-cpp-precomp
20 OS_SRC = $(WINDOWS_USB_SRC)
23 $(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(RCFLAGS) -i $< -o $@
25 libusb-1.0.rc: version.h
29 THREADS_SRC = os/threads_posix.h os/threads_posix.c
31 THREADS_SRC = os/threads_windows.h os/threads_windows.c
34 libusb_1_0_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS) $(THREAD_CFLAGS)
35 libusb_1_0_la_LDFLAGS = $(LTLDFLAGS)
36 libusb_1_0_la_SOURCES = libusbi.h core.c descriptor.c io.c sync.c $(OS_SRC) \
37 os/linux_usbfs.h os/darwin_usb.h os/windows_usb.h \
39 os/poll_posix.h os/poll_windows.h
41 hdrdir = $(includedir)/libusb-1.0
42 hdr_HEADERS = libusb.h