Home | History | Annotate | Download | only in libusb
      1 lib_LTLIBRARIES = libusb-1.0.la
      2 
      3 LINUX_USBFS_SRC = os/linux_usbfs.c
      4 DARWIN_USB_SRC = os/darwin_usb.c
      5 OPENBSD_USB_SRC = os/openbsd_usb.c
      6 WINDOWS_USB_SRC = os/poll_windows.c os/windows_usb.c libusb-1.0.rc \
      7 	libusb-1.0.def
      8 
      9 EXTRA_DIST = $(LINUX_USBFS_SRC) $(DARWIN_USB_SRC) $(OPENBSD_USB_SRC) \
     10 	$(WINDOWS_USB_SRC) os/threads_posix.c os/threads_windows.c
     11 
     12 if OS_LINUX
     13 OS_SRC = $(LINUX_USBFS_SRC)
     14 endif
     15 
     16 if OS_DARWIN
     17 OS_SRC = $(DARWIN_USB_SRC)
     18 AM_CFLAGS_EXT = -no-cpp-precomp
     19 endif
     20 
     21 if OS_OPENBSD
     22 OS_SRC = $(OPENBSD_USB_SRC)
     23 endif
     24 
     25 if OS_WINDOWS
     26 OS_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 
     31 libusb-1.0.rc: version.h
     32 endif
     33 
     34 if THREADS_POSIX
     35 THREADS_SRC = os/threads_posix.h os/threads_posix.c
     36 else
     37 THREADS_SRC = os/threads_windows.h os/threads_windows.c
     38 endif
     39 
     40 libusb_1_0_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS) $(THREAD_CFLAGS) \
     41 	-DLIBUSB_DESCRIBE=\"`git --git-dir "$(top_srcdir)/.git" describe --tags 2>/dev/null`\"
     42 libusb_1_0_la_LDFLAGS = $(LTLDFLAGS)
     43 libusb_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 
     48 hdrdir = $(includedir)/libusb-1.0
     49 hdr_HEADERS = libusb.h
     50