Makefile.am 1.4 KB

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