summaryrefslogtreecommitdiff
path: root/libusb/Makefile.am
diff options
context:
space:
mode:
authorDmitry Fleytman <dfleytma@redhat.com>2016-01-20 17:05:55 +0200
committerChris Dickens <christopher.a.dickens@gmail.com>2016-01-26 23:38:23 -0800
commit24c528934236fd167adc162695a5bdbd60bf7842 (patch)
treed15ef7c64c74bb959a65299f85da1a020249ca7d /libusb/Makefile.am
parent8823c17024c59984c2dcf5870e27ab3a023428b9 (diff)
downloadlibusb-24c528934236fd167adc162695a5bdbd60bf7842.tar.gz
build: Integrate usbdk backend
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com> Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/Makefile.am')
-rw-r--r--libusb/Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/libusb/Makefile.am b/libusb/Makefile.am
index 4990ada..971c5b2 100644
--- a/libusb/Makefile.am
+++ b/libusb/Makefile.am
@@ -17,6 +17,7 @@ COMMON_WINDOWS_SRC = os/windows_nt_common.h \
os/windows_common.h \
libusb-1.0.rc libusb-1.0.def
WINDOWS_USB_SRC = os/windows_winusb.h os/windows_winusb.c $(COMMON_WINDOWS_SRC)
+WINDOWS_USBDK_SRC = os/windows_usbdk.h os/windows_usbdk.c $(COMMON_WINDOWS_SRC)
WINCE_USB_SRC = os/wince_usb.h os/wince_usb.c
HAIKU_USB_SRC = os/haiku_usb.h os/haiku_usb_backend.cpp \
os/haiku_usb_raw.h os/haiku_usb_raw.cpp os/haiku_pollfs.cpp
@@ -25,8 +26,8 @@ EXTRA_DIST = $(POSIX_POLL_SRC) $(POSIX_THREADS_SRC) \
$(WINDOWS_POLL_SRC) $(WINDOWS_THREADS_SRC) \
$(LINUX_USBFS_SRC) $(DARWIN_USB_SRC) \
$(OPENBSD_USB_SRC) $(NETBSD_USB_SRC) \
- $(WINDOWS_USB_SRC) $(WINCE_USB_SRC) \
- $(HAIKU_USB_SRC) \
+ $(WINDOWS_USB_SRC) $(WINDOWS_USBDK_SRC) \
+ $(WINCE_USB_SRC) $(HAIKU_USB_SRC) \
os/linux_udev.c os/linux_netlink.c
if OS_LINUX
@@ -59,7 +60,12 @@ libusb_1_0_la_LIBADD = libusb_haiku.la
endif
if OS_WINDOWS
+
+if USE_USBDK
+OS_SRC = $(WINDOWS_USBDK_SRC)
+else
OS_SRC = $(WINDOWS_USB_SRC)
+endif
.rc.lo:
$(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(RCFLAGS) -i $< -o $@