1lib_LTLIBRARIES = libusb-1.0.la 2 3LINUX_USBFS_SRC = os/linux_usbfs.c 4DARWIN_USB_SRC = os/darwin_usb.c 5OPENBSD_USB_SRC = os/openbsd_usb.c 6WINDOWS_USB_SRC = os/poll_windows.c os/windows_usb.c libusb-1.0.rc \ 7 libusb-1.0.def 8 9EXTRA_DIST = $(LINUX_USBFS_SRC) $(DARWIN_USB_SRC) $(OPENBSD_USB_SRC) \ 10 $(WINDOWS_USB_SRC) os/threads_posix.c os/threads_windows.c 11 12if OS_LINUX 13OS_SRC = $(LINUX_USBFS_SRC) 14endif 15 16if OS_DARWIN 17OS_SRC = $(DARWIN_USB_SRC) 18AM_CFLAGS_EXT = -no-cpp-precomp 19endif 20 21if OS_OPENBSD 22OS_SRC = $(OPENBSD_USB_SRC) 23endif 24 25if OS_WINDOWS 26OS_SRC = $(WINDOWS_USB_SRC) 27 28.rc.lo: 29 $(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(RCFLAGS) -i $< -o $@ 30 31libusb-1.0.rc: version.h 32endif 33 34if THREADS_POSIX 35THREADS_SRC = os/threads_posix.h os/threads_posix.c 36else 37THREADS_SRC = os/threads_windows.h os/threads_windows.c 38endif 39 40libusb_1_0_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS) $(THREAD_CFLAGS) \ 41 -DLIBUSB_DESCRIBE=\"`git --git-dir "$(top_srcdir)/.git" describe --tags 2>/dev/null`\" 42libusb_1_0_la_LDFLAGS = $(LTLDFLAGS) 43libusb_1_0_la_SOURCES = libusbi.h core.c descriptor.c io.c sync.c $(OS_SRC) \ 44 os/linux_usbfs.h os/darwin_usb.h os/windows_usb.h \ 45 $(THREADS_SRC) \ 46 os/poll_posix.h os/poll_windows.h 47 48hdrdir = $(includedir)/libusb-1.0 49hdr_HEADERS = libusb.h 50