libusb 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.travis.yml +1 -0
  5. data/History.md +8 -0
  6. data/README.md +5 -15
  7. data/Rakefile +8 -1
  8. data/ext/extconf.rb +49 -12
  9. data/ext/{libusb-1.0.19 → libusb-1.0.20}/AUTHORS +12 -1
  10. data/ext/{libusb-1.0.19 → libusb-1.0.20}/COPYING +0 -0
  11. data/ext/{libusb-1.0.19 → libusb-1.0.20}/ChangeLog +18 -2
  12. data/ext/{libusb-1.0.19 → libusb-1.0.20}/INSTALL +0 -0
  13. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Makefile.am +0 -0
  14. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Makefile.in +31 -18
  15. data/ext/{libusb-1.0.19 → libusb-1.0.20}/NEWS +0 -0
  16. data/ext/{libusb-1.0.19 → libusb-1.0.20}/PORTING +0 -0
  17. data/ext/{libusb-1.0.19 → libusb-1.0.20}/README +5 -3
  18. data/ext/{libusb-1.0.19 → libusb-1.0.20}/TODO +0 -0
  19. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Xcode/common.xcconfig +0 -0
  20. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Xcode/config.h +0 -0
  21. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Xcode/debug.xcconfig +0 -0
  22. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Xcode/libusb.xcconfig +0 -0
  23. data/ext/libusb-1.0.20/Xcode/libusb.xcodeproj/project.pbxproj +865 -0
  24. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Xcode/libusb_debug.xcconfig +0 -0
  25. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Xcode/libusb_release.xcconfig +0 -0
  26. data/ext/{libusb-1.0.19 → libusb-1.0.20}/Xcode/release.xcconfig +0 -0
  27. data/ext/{libusb-1.0.19 → libusb-1.0.20}/aclocal.m4 +35 -32
  28. data/ext/{libusb-1.0.19 → libusb-1.0.20}/android/README +0 -0
  29. data/ext/{libusb-1.0.19 → libusb-1.0.20}/android/config.h +0 -0
  30. data/ext/{libusb-1.0.19 → libusb-1.0.20}/android/jni/Android.mk +0 -0
  31. data/ext/{libusb-1.0.19 → libusb-1.0.20}/android/jni/Application.mk +0 -0
  32. data/ext/{libusb-1.0.19 → libusb-1.0.20}/android/jni/examples.mk +0 -0
  33. data/ext/{libusb-1.0.19 → libusb-1.0.20}/android/jni/libusb.mk +0 -0
  34. data/ext/{libusb-1.0.19 → libusb-1.0.20}/android/jni/tests.mk +0 -0
  35. data/ext/{libusb-1.0.19 → libusb-1.0.20}/compile +1 -1
  36. data/ext/{libusb-1.0.19 → libusb-1.0.20}/config.guess +13 -160
  37. data/ext/{libusb-1.0.19 → libusb-1.0.20}/config.h.in +6 -0
  38. data/ext/{libusb-1.0.19 → libusb-1.0.20}/config.sub +26 -12
  39. data/ext/{libusb-1.0.19 → libusb-1.0.20}/configure +244 -20
  40. data/ext/{libusb-1.0.19 → libusb-1.0.20}/configure.ac +27 -4
  41. data/ext/{libusb-1.0.19 → libusb-1.0.20}/depcomp +1 -1
  42. data/ext/{libusb-1.0.19 → libusb-1.0.20}/doc/Makefile.am +0 -0
  43. data/ext/{libusb-1.0.19 → libusb-1.0.20}/doc/Makefile.in +19 -6
  44. data/ext/libusb-1.0.20/doc/doxygen.cfg.in +2334 -0
  45. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/Makefile.am +0 -0
  46. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/Makefile.in +19 -6
  47. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/dpfp.c +0 -0
  48. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/dpfp_threaded.c +15 -10
  49. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/ezusb.c +0 -0
  50. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/ezusb.h +0 -0
  51. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/fxload.c +28 -7
  52. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/getopt/getopt.c +0 -0
  53. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/getopt/getopt.h +0 -0
  54. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/getopt/getopt1.c +0 -0
  55. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/hotplugtest.c +21 -3
  56. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/listdevs.c +0 -0
  57. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/sam3u_benchmark.c +0 -0
  58. data/ext/{libusb-1.0.19 → libusb-1.0.20}/examples/xusb.c +2 -1
  59. data/ext/{libusb-1.0.19 → libusb-1.0.20}/install-sh +170 -196
  60. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb-1.0.pc.in +0 -0
  61. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/Makefile.am +15 -0
  62. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/Makefile.in +192 -53
  63. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/core.c +218 -100
  64. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/descriptor.c +3 -1
  65. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/hotplug.c +26 -9
  66. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/hotplug.h +8 -0
  67. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/io.c +432 -290
  68. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/libusb-1.0.def +2 -0
  69. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/libusb-1.0.rc +0 -0
  70. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/libusb.h +11 -10
  71. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/libusbi.h +106 -29
  72. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/darwin_usb.c +27 -67
  73. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/darwin_usb.h +3 -7
  74. data/ext/libusb-1.0.20/libusb/os/haiku/Makefile.am +5 -0
  75. data/ext/libusb-1.0.20/libusb/os/haiku/Makefile.in +810 -0
  76. data/ext/libusb-1.0.20/libusb/os/haiku/aclocal.m4 +1193 -0
  77. data/ext/libusb-1.0.20/libusb/os/haiku/compile +347 -0
  78. data/ext/libusb-1.0.20/libusb/os/haiku/config.guess +1421 -0
  79. data/ext/libusb-1.0.20/libusb/os/haiku/config.sub +1807 -0
  80. data/ext/libusb-1.0.20/libusb/os/haiku/configure +17579 -0
  81. data/ext/libusb-1.0.20/libusb/os/haiku/configure.ac +8 -0
  82. data/ext/libusb-1.0.20/libusb/os/haiku/depcomp +791 -0
  83. data/ext/libusb-1.0.20/libusb/os/haiku/haiku_pollfs.cpp +378 -0
  84. data/ext/libusb-1.0.20/libusb/os/haiku/haiku_usb.h +112 -0
  85. data/ext/libusb-1.0.20/libusb/os/haiku/haiku_usb_backend.cpp +550 -0
  86. data/ext/libusb-1.0.20/libusb/os/haiku/haiku_usb_raw.cpp +255 -0
  87. data/ext/libusb-1.0.20/libusb/os/haiku/haiku_usb_raw.h +180 -0
  88. data/ext/libusb-1.0.20/libusb/os/haiku/install-sh +501 -0
  89. data/ext/{libusb-1.0.19 → libusb-1.0.20/libusb/os/haiku}/ltmain.sh +0 -0
  90. data/ext/{libusb-1.0.19 → libusb-1.0.20/libusb/os/haiku}/m4/libtool.m4 +0 -0
  91. data/ext/{libusb-1.0.19 → libusb-1.0.20/libusb/os/haiku}/m4/ltoptions.m4 +0 -0
  92. data/ext/{libusb-1.0.19 → libusb-1.0.20/libusb/os/haiku}/m4/ltsugar.m4 +0 -0
  93. data/ext/{libusb-1.0.19 → libusb-1.0.20/libusb/os/haiku}/m4/ltversion.m4 +0 -0
  94. data/ext/{libusb-1.0.19 → libusb-1.0.20/libusb/os/haiku}/m4/lt~obsolete.m4 +0 -0
  95. data/ext/{libusb-1.0.19 → libusb-1.0.20/libusb/os/haiku}/missing +1 -1
  96. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/linux_netlink.c +4 -4
  97. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/linux_udev.c +1 -2
  98. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/linux_usbfs.c +46 -49
  99. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/linux_usbfs.h +1 -1
  100. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/netbsd_usb.c +9 -73
  101. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/openbsd_usb.c +9 -73
  102. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/poll_posix.c +2 -0
  103. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/poll_posix.h +0 -0
  104. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/poll_windows.c +3 -1
  105. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/poll_windows.h +0 -0
  106. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/threads_posix.c +3 -3
  107. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/threads_posix.h +0 -0
  108. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/threads_windows.c +3 -1
  109. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/threads_windows.h +0 -0
  110. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/wince_usb.c +87 -250
  111. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/wince_usb.h +0 -0
  112. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/windows_common.h +1 -1
  113. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/windows_usb.c +267 -181
  114. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/os/windows_usb.h +22 -7
  115. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/strerror.c +5 -2
  116. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/sync.c +2 -1
  117. data/ext/{libusb-1.0.19 → libusb-1.0.20}/libusb/version.h +1 -1
  118. data/ext/libusb-1.0.20/libusb/version_nano.h +1 -0
  119. data/ext/libusb-1.0.20/ltmain.sh +9655 -0
  120. data/ext/libusb-1.0.20/m4/libtool.m4 +7992 -0
  121. data/ext/libusb-1.0.20/m4/ltoptions.m4 +384 -0
  122. data/ext/libusb-1.0.20/m4/ltsugar.m4 +123 -0
  123. data/ext/libusb-1.0.20/m4/ltversion.m4 +23 -0
  124. data/ext/libusb-1.0.20/m4/lt~obsolete.m4 +98 -0
  125. data/ext/libusb-1.0.20/missing +215 -0
  126. data/ext/{libusb-1.0.19 → libusb-1.0.20}/tests/Makefile.am +0 -0
  127. data/ext/{libusb-1.0.19 → libusb-1.0.20}/tests/Makefile.in +19 -6
  128. data/ext/{libusb-1.0.19 → libusb-1.0.20}/tests/libusb_testlib.h +0 -0
  129. data/ext/{libusb-1.0.19 → libusb-1.0.20}/tests/stress.c +0 -0
  130. data/ext/{libusb-1.0.19 → libusb-1.0.20}/tests/testlib.c +0 -0
  131. data/lib/libusb.rb +1 -0
  132. data/lib/libusb/call.rb +1 -0
  133. data/lib/libusb/context.rb +5 -2
  134. data/lib/libusb/stdio.rb +25 -0
  135. data/lib/libusb/version_gem.rb +1 -1
  136. data/libusb.gemspec +2 -1
  137. metadata +152 -115
  138. metadata.gz.sig +0 -0
  139. data/ext/libusb-1.0.19/Xcode/libusb.xcodeproj/project.pbxproj +0 -1
  140. data/ext/libusb-1.0.19/doc/doxygen.cfg.in +0 -1288
  141. data/ext/libusb-1.0.19/libusb/version_nano.h +0 -1
@@ -12,12 +12,18 @@ NETBSD_USB_SRC = os/netbsd_usb.c
12
12
  WINDOWS_USB_SRC = os/poll_windows.c os/windows_usb.c libusb-1.0.rc libusb-1.0.def
13
13
  WINCE_USB_SRC = os/wince_usb.c os/wince_usb.h
14
14
 
15
+ DIST_SUBDIRS =
16
+
15
17
  EXTRA_DIST = $(LINUX_USBFS_SRC) $(DARWIN_USB_SRC) $(OPENBSD_USB_SRC) \
16
18
  $(NETBSD_USB_SRC) $(WINDOWS_USB_SRC) $(WINCE_USB_SRC) \
17
19
  $(POSIX_POLL_SRC) \
18
20
  os/threads_posix.c os/threads_windows.c \
19
21
  os/linux_udev.c os/linux_netlink.c
20
22
 
23
+ dist-hook:
24
+ cp -r os/haiku $(distdir)/os/haiku
25
+ rm -rf $(distdir)/os/haiku/autom4te.cache
26
+
21
27
  if OS_LINUX
22
28
 
23
29
  if USE_UDEV
@@ -43,6 +49,11 @@ if OS_NETBSD
43
49
  OS_SRC = $(NETBSD_USB_SRC) $(POSIX_POLL_SRC)
44
50
  endif
45
51
 
52
+ if OS_HAIKU
53
+ OS_SRC = $(POSIX_POLL_SRC)
54
+ SUBDIRS = os/haiku
55
+ endif
56
+
46
57
  if OS_WINDOWS
47
58
  OS_SRC = $(WINDOWS_USB_SRC)
48
59
 
@@ -71,5 +82,9 @@ libusb_1_0_la_SOURCES = libusbi.h core.c descriptor.c io.c strerror.c sync.c \
71
82
  hotplug.h hotplug.c $(THREADS_SRC) $(OS_SRC) \
72
83
  os/poll_posix.h os/poll_windows.h
73
84
 
85
+ if OS_HAIKU
86
+ libusb_1_0_la_LIBADD = os/haiku/libhaikuusb.la
87
+ endif
88
+
74
89
  hdrdir = $(includedir)/libusb-1.0
75
90
  hdr_HEADERS = libusb.h
@@ -1,7 +1,7 @@
1
- # Makefile.in generated by automake 1.14.1 from Makefile.am.
1
+ # Makefile.in generated by automake 1.15 from Makefile.am.
2
2
  # @configure_input@
3
3
 
4
- # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
+ # Copyright (C) 1994-2014 Free Software Foundation, Inc.
5
5
 
6
6
  # This Makefile.in is free software; the Free Software Foundation
7
7
  # gives unlimited permission to copy and/or distribute it,
@@ -16,7 +16,17 @@
16
16
 
17
17
 
18
18
  VPATH = @srcdir@
19
- am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19
+ am__is_gnu_make = { \
20
+ if test -z '$(MAKELEVEL)'; then \
21
+ false; \
22
+ elif test -n '$(MAKE_HOST)'; then \
23
+ true; \
24
+ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
25
+ true; \
26
+ else \
27
+ false; \
28
+ fi; \
29
+ }
20
30
  am__make_running_with_option = \
21
31
  case $${target_option-} in \
22
32
  ?) ;; \
@@ -80,8 +90,6 @@ POST_UNINSTALL = :
80
90
  build_triplet = @build@
81
91
  host_triplet = @host@
82
92
  subdir = libusb
83
- DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
84
- $(top_srcdir)/depcomp $(hdr_HEADERS)
85
93
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
86
94
  am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
87
95
  $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
@@ -89,6 +97,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
89
97
  $(top_srcdir)/libusb/version.h $(top_srcdir)/configure.ac
90
98
  am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
91
99
  $(ACLOCAL_M4)
100
+ DIST_COMMON = $(srcdir)/Makefile.am $(hdr_HEADERS) $(am__DIST_COMMON)
92
101
  mkinstalldirs = $(install_sh) -d
93
102
  CONFIG_HEADER = $(top_builddir)/config.h
94
103
  CONFIG_CLEAN_FILES =
@@ -122,7 +131,7 @@ am__uninstall_files_from_dir = { \
122
131
  }
123
132
  am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(hdrdir)"
124
133
  LTLIBRARIES = $(lib_LTLIBRARIES)
125
- libusb_1_0_la_LIBADD =
134
+ @OS_HAIKU_TRUE@libusb_1_0_la_DEPENDENCIES = os/haiku/libhaikuusb.la
126
135
  am__libusb_1_0_la_SOURCES_DIST = libusbi.h core.c descriptor.c io.c \
127
136
  strerror.c sync.c os/linux_usbfs.h os/darwin_usb.h \
128
137
  os/windows_usb.h os/windows_common.h hotplug.h hotplug.c \
@@ -143,17 +152,18 @@ am__objects_5 = os/libusb_1_0_la-netbsd_usb.lo
143
152
  am__objects_6 = os/libusb_1_0_la-openbsd_usb.lo
144
153
  am__objects_7 = os/libusb_1_0_la-poll_windows.lo \
145
154
  os/libusb_1_0_la-windows_usb.lo libusb-1.0.lo
146
- @OS_DARWIN_FALSE@@OS_LINUX_FALSE@@OS_NETBSD_FALSE@@OS_OPENBSD_FALSE@@OS_WINDOWS_TRUE@am__objects_8 = $(am__objects_7)
147
- @OS_DARWIN_FALSE@@OS_LINUX_FALSE@@OS_NETBSD_FALSE@@OS_OPENBSD_TRUE@am__objects_8 = $(am__objects_6) \
148
- @OS_DARWIN_FALSE@@OS_LINUX_FALSE@@OS_NETBSD_FALSE@@OS_OPENBSD_TRUE@ $(am__objects_3)
149
- @OS_DARWIN_FALSE@@OS_LINUX_FALSE@@OS_NETBSD_TRUE@am__objects_8 = $(am__objects_5) \
150
- @OS_DARWIN_FALSE@@OS_LINUX_FALSE@@OS_NETBSD_TRUE@ $(am__objects_3)
151
- @OS_DARWIN_FALSE@@OS_LINUX_TRUE@@USE_UDEV_FALSE@am__objects_8 = $(am__objects_4) \
152
- @OS_DARWIN_FALSE@@OS_LINUX_TRUE@@USE_UDEV_FALSE@ $(am__objects_3) \
153
- @OS_DARWIN_FALSE@@OS_LINUX_TRUE@@USE_UDEV_FALSE@ os/libusb_1_0_la-linux_netlink.lo
154
- @OS_DARWIN_FALSE@@OS_LINUX_TRUE@@USE_UDEV_TRUE@am__objects_8 = $(am__objects_4) \
155
- @OS_DARWIN_FALSE@@OS_LINUX_TRUE@@USE_UDEV_TRUE@ $(am__objects_3) \
156
- @OS_DARWIN_FALSE@@OS_LINUX_TRUE@@USE_UDEV_TRUE@ os/libusb_1_0_la-linux_udev.lo
155
+ @OS_DARWIN_FALSE@@OS_HAIKU_FALSE@@OS_LINUX_FALSE@@OS_NETBSD_FALSE@@OS_OPENBSD_FALSE@@OS_WINDOWS_TRUE@am__objects_8 = $(am__objects_7)
156
+ @OS_DARWIN_FALSE@@OS_HAIKU_FALSE@@OS_LINUX_FALSE@@OS_NETBSD_FALSE@@OS_OPENBSD_TRUE@am__objects_8 = $(am__objects_6) \
157
+ @OS_DARWIN_FALSE@@OS_HAIKU_FALSE@@OS_LINUX_FALSE@@OS_NETBSD_FALSE@@OS_OPENBSD_TRUE@ $(am__objects_3)
158
+ @OS_DARWIN_FALSE@@OS_HAIKU_FALSE@@OS_LINUX_FALSE@@OS_NETBSD_TRUE@am__objects_8 = $(am__objects_5) \
159
+ @OS_DARWIN_FALSE@@OS_HAIKU_FALSE@@OS_LINUX_FALSE@@OS_NETBSD_TRUE@ $(am__objects_3)
160
+ @OS_DARWIN_FALSE@@OS_HAIKU_FALSE@@OS_LINUX_TRUE@@USE_UDEV_FALSE@am__objects_8 = $(am__objects_4) \
161
+ @OS_DARWIN_FALSE@@OS_HAIKU_FALSE@@OS_LINUX_TRUE@@USE_UDEV_FALSE@ $(am__objects_3) \
162
+ @OS_DARWIN_FALSE@@OS_HAIKU_FALSE@@OS_LINUX_TRUE@@USE_UDEV_FALSE@ os/libusb_1_0_la-linux_netlink.lo
163
+ @OS_DARWIN_FALSE@@OS_HAIKU_FALSE@@OS_LINUX_TRUE@@USE_UDEV_TRUE@am__objects_8 = $(am__objects_4) \
164
+ @OS_DARWIN_FALSE@@OS_HAIKU_FALSE@@OS_LINUX_TRUE@@USE_UDEV_TRUE@ $(am__objects_3) \
165
+ @OS_DARWIN_FALSE@@OS_HAIKU_FALSE@@OS_LINUX_TRUE@@USE_UDEV_TRUE@ os/libusb_1_0_la-linux_udev.lo
166
+ @OS_DARWIN_FALSE@@OS_HAIKU_TRUE@am__objects_8 = $(am__objects_3)
157
167
  @OS_DARWIN_TRUE@am__objects_8 = $(am__objects_2) $(am__objects_3)
158
168
  am_libusb_1_0_la_OBJECTS = libusb_1_0_la-core.lo \
159
169
  libusb_1_0_la-descriptor.lo libusb_1_0_la-io.lo \
@@ -203,12 +213,28 @@ am__v_CCLD_0 = @echo " CCLD " $@;
203
213
  am__v_CCLD_1 =
204
214
  SOURCES = $(libusb_1_0_la_SOURCES)
205
215
  DIST_SOURCES = $(am__libusb_1_0_la_SOURCES_DIST)
216
+ RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
217
+ ctags-recursive dvi-recursive html-recursive info-recursive \
218
+ install-data-recursive install-dvi-recursive \
219
+ install-exec-recursive install-html-recursive \
220
+ install-info-recursive install-pdf-recursive \
221
+ install-ps-recursive install-recursive installcheck-recursive \
222
+ installdirs-recursive pdf-recursive ps-recursive \
223
+ tags-recursive uninstall-recursive
206
224
  am__can_run_installinfo = \
207
225
  case $$AM_UPDATE_INFO_DIR in \
208
226
  n|no|NO) false;; \
209
227
  *) (install-info --version) >/dev/null 2>&1;; \
210
228
  esac
211
229
  HEADERS = $(hdr_HEADERS)
230
+ RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
231
+ distclean-recursive maintainer-clean-recursive
232
+ am__recursive_targets = \
233
+ $(RECURSIVE_TARGETS) \
234
+ $(RECURSIVE_CLEAN_TARGETS) \
235
+ $(am__extra_recursive_targets)
236
+ AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
237
+ distdir
212
238
  am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
213
239
  # Read a list of newline-separated strings from the standard input,
214
240
  # and print each of them once, without duplicates. Input order is
@@ -228,7 +254,33 @@ am__define_uniq_tagged_files = \
228
254
  done | $(am__uniquify_input)`
229
255
  ETAGS = etags
230
256
  CTAGS = ctags
257
+ am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
231
258
  DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
259
+ am__relativize = \
260
+ dir0=`pwd`; \
261
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
262
+ sed_rest='s,^[^/]*/*,,'; \
263
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
264
+ sed_butlast='s,/*[^/]*$$,,'; \
265
+ while test -n "$$dir1"; do \
266
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
267
+ if test "$$first" != "."; then \
268
+ if test "$$first" = ".."; then \
269
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
270
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
271
+ else \
272
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
273
+ if test "$$first2" = "$$first"; then \
274
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
275
+ else \
276
+ dir2="../$$dir2"; \
277
+ fi; \
278
+ dir0="$$dir0"/"$$first"; \
279
+ fi; \
280
+ fi; \
281
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
282
+ done; \
283
+ reldir="$$dir2"
232
284
  ACLOCAL = @ACLOCAL@
233
285
  AMTAR = @AMTAR@
234
286
  AM_CFLAGS = @AM_CFLAGS@
@@ -279,6 +331,7 @@ NMEDIT = @NMEDIT@
279
331
  OBJDUMP = @OBJDUMP@
280
332
  OBJEXT = @OBJEXT@
281
333
  OS_DARWIN = @OS_DARWIN@
334
+ OS_HAIKU = @OS_HAIKU@
282
335
  OS_LINUX = @OS_LINUX@
283
336
  OS_NETBSD = @OS_NETBSD@
284
337
  OS_OPENBSD = @OS_OPENBSD@
@@ -348,6 +401,7 @@ psdir = @psdir@
348
401
  sbindir = @sbindir@
349
402
  sharedstatedir = @sharedstatedir@
350
403
  srcdir = @srcdir@
404
+ subdirs = @subdirs@
351
405
  sysconfdir = @sysconfdir@
352
406
  target_alias = @target_alias@
353
407
  top_build_prefix = @top_build_prefix@
@@ -362,6 +416,7 @@ OPENBSD_USB_SRC = os/openbsd_usb.c
362
416
  NETBSD_USB_SRC = os/netbsd_usb.c
363
417
  WINDOWS_USB_SRC = os/poll_windows.c os/windows_usb.c libusb-1.0.rc libusb-1.0.def
364
418
  WINCE_USB_SRC = os/wince_usb.c os/wince_usb.h
419
+ DIST_SUBDIRS =
365
420
  EXTRA_DIST = $(LINUX_USBFS_SRC) $(DARWIN_USB_SRC) $(OPENBSD_USB_SRC) \
366
421
  $(NETBSD_USB_SRC) $(WINDOWS_USB_SRC) $(WINCE_USB_SRC) \
367
422
  $(POSIX_POLL_SRC) \
@@ -369,6 +424,7 @@ EXTRA_DIST = $(LINUX_USBFS_SRC) $(DARWIN_USB_SRC) $(OPENBSD_USB_SRC) \
369
424
  os/linux_udev.c os/linux_netlink.c
370
425
 
371
426
  @OS_DARWIN_TRUE@OS_SRC = $(DARWIN_USB_SRC) $(POSIX_POLL_SRC)
427
+ @OS_HAIKU_TRUE@OS_SRC = $(POSIX_POLL_SRC)
372
428
  @OS_LINUX_TRUE@@USE_UDEV_FALSE@OS_SRC = $(LINUX_USBFS_SRC) $(POSIX_POLL_SRC) \
373
429
  @OS_LINUX_TRUE@@USE_UDEV_FALSE@ os/linux_netlink.c
374
430
 
@@ -379,6 +435,7 @@ EXTRA_DIST = $(LINUX_USBFS_SRC) $(DARWIN_USB_SRC) $(OPENBSD_USB_SRC) \
379
435
  @OS_OPENBSD_TRUE@OS_SRC = $(OPENBSD_USB_SRC) $(POSIX_POLL_SRC)
380
436
  @OS_WINDOWS_TRUE@OS_SRC = $(WINDOWS_USB_SRC)
381
437
  @OS_DARWIN_TRUE@AM_CFLAGS_EXT = -no-cpp-precomp
438
+ @OS_HAIKU_TRUE@SUBDIRS = os/haiku
382
439
  @THREADS_POSIX_FALSE@THREADS_SRC = os/threads_windows.h os/threads_windows.c
383
440
  @THREADS_POSIX_TRUE@THREADS_SRC = os/threads_posix.h os/threads_posix.c
384
441
  libusb_1_0_la_CFLAGS = $(AM_CFLAGS)
@@ -388,9 +445,10 @@ libusb_1_0_la_SOURCES = libusbi.h core.c descriptor.c io.c strerror.c sync.c \
388
445
  hotplug.h hotplug.c $(THREADS_SRC) $(OS_SRC) \
389
446
  os/poll_posix.h os/poll_windows.h
390
447
 
448
+ @OS_HAIKU_TRUE@libusb_1_0_la_LIBADD = os/haiku/libhaikuusb.la
391
449
  hdrdir = $(includedir)/libusb-1.0
392
450
  hdr_HEADERS = libusb.h
393
- all: all-am
451
+ all: all-recursive
394
452
 
395
453
  .SUFFIXES:
396
454
  .SUFFIXES: .c .lo .o .obj .rc
@@ -406,7 +464,6 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__confi
406
464
  echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libusb/Makefile'; \
407
465
  $(am__cd) $(top_srcdir) && \
408
466
  $(AUTOMAKE) --gnu libusb/Makefile
409
- .PRECIOUS: Makefile
410
467
  Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
411
468
  @case '$?' in \
412
469
  *config.status*) \
@@ -688,14 +745,61 @@ uninstall-hdrHEADERS:
688
745
  files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
689
746
  dir='$(DESTDIR)$(hdrdir)'; $(am__uninstall_files_from_dir)
690
747
 
748
+ # This directory's subdirectories are mostly independent; you can cd
749
+ # into them and run 'make' without going through this Makefile.
750
+ # To change the values of 'make' variables: instead of editing Makefiles,
751
+ # (1) if the variable is set in 'config.status', edit 'config.status'
752
+ # (which will cause the Makefiles to be regenerated when you run 'make');
753
+ # (2) otherwise, pass the desired values on the 'make' command line.
754
+ $(am__recursive_targets):
755
+ @fail=; \
756
+ if $(am__make_keepgoing); then \
757
+ failcom='fail=yes'; \
758
+ else \
759
+ failcom='exit 1'; \
760
+ fi; \
761
+ dot_seen=no; \
762
+ target=`echo $@ | sed s/-recursive//`; \
763
+ case "$@" in \
764
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
765
+ *) list='$(SUBDIRS)' ;; \
766
+ esac; \
767
+ for subdir in $$list; do \
768
+ echo "Making $$target in $$subdir"; \
769
+ if test "$$subdir" = "."; then \
770
+ dot_seen=yes; \
771
+ local_target="$$target-am"; \
772
+ else \
773
+ local_target="$$target"; \
774
+ fi; \
775
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
776
+ || eval $$failcom; \
777
+ done; \
778
+ if test "$$dot_seen" = "no"; then \
779
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
780
+ fi; test -z "$$fail"
781
+
691
782
  ID: $(am__tagged_files)
692
783
  $(am__define_uniq_tagged_files); mkid -fID $$unique
693
- tags: tags-am
784
+ tags: tags-recursive
694
785
  TAGS: tags
695
786
 
696
787
  tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
697
788
  set x; \
698
789
  here=`pwd`; \
790
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
791
+ include_option=--etags-include; \
792
+ empty_fix=.; \
793
+ else \
794
+ include_option=--include; \
795
+ empty_fix=; \
796
+ fi; \
797
+ list='$(SUBDIRS)'; for subdir in $$list; do \
798
+ if test "$$subdir" = .; then :; else \
799
+ test ! -f $$subdir/TAGS || \
800
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
801
+ fi; \
802
+ done; \
699
803
  $(am__define_uniq_tagged_files); \
700
804
  shift; \
701
805
  if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
@@ -708,7 +812,7 @@ tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
708
812
  $$unique; \
709
813
  fi; \
710
814
  fi
711
- ctags: ctags-am
815
+ ctags: ctags-recursive
712
816
 
713
817
  CTAGS: ctags
714
818
  ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
@@ -721,7 +825,7 @@ GTAGS:
721
825
  here=`$(am__cd) $(top_builddir) && pwd` \
722
826
  && $(am__cd) $(top_srcdir) \
723
827
  && gtags -i $(GTAGS_ARGS) "$$here"
724
- cscopelist: cscopelist-am
828
+ cscopelist: cscopelist-recursive
725
829
 
726
830
  cscopelist-am: $(am__tagged_files)
727
831
  list='$(am__tagged_files)'; \
@@ -770,22 +874,51 @@ distdir: $(DISTFILES)
770
874
  || exit 1; \
771
875
  fi; \
772
876
  done
877
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
878
+ if test "$$subdir" = .; then :; else \
879
+ $(am__make_dryrun) \
880
+ || test -d "$(distdir)/$$subdir" \
881
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
882
+ || exit 1; \
883
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
884
+ $(am__relativize); \
885
+ new_distdir=$$reldir; \
886
+ dir1=$$subdir; dir2="$(top_distdir)"; \
887
+ $(am__relativize); \
888
+ new_top_distdir=$$reldir; \
889
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
890
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
891
+ ($(am__cd) $$subdir && \
892
+ $(MAKE) $(AM_MAKEFLAGS) \
893
+ top_distdir="$$new_top_distdir" \
894
+ distdir="$$new_distdir" \
895
+ am__remove_distdir=: \
896
+ am__skip_length_check=: \
897
+ am__skip_mode_fix=: \
898
+ distdir) \
899
+ || exit 1; \
900
+ fi; \
901
+ done
902
+ $(MAKE) $(AM_MAKEFLAGS) \
903
+ top_distdir="$(top_distdir)" distdir="$(distdir)" \
904
+ dist-hook
773
905
  check-am: all-am
774
- check: check-am
906
+ check: check-recursive
775
907
  all-am: Makefile $(LTLIBRARIES) $(HEADERS)
776
- installdirs:
908
+ installdirs: installdirs-recursive
909
+ installdirs-am:
777
910
  for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(hdrdir)"; do \
778
911
  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
779
912
  done
780
- install: install-am
781
- install-exec: install-exec-am
782
- install-data: install-data-am
783
- uninstall: uninstall-am
913
+ install: install-recursive
914
+ install-exec: install-exec-recursive
915
+ install-data: install-data-recursive
916
+ uninstall: uninstall-recursive
784
917
 
785
918
  install-am: all-am
786
919
  @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
787
920
 
788
- installcheck: installcheck-am
921
+ installcheck: installcheck-recursive
789
922
  install-strip:
790
923
  if test -z '$(STRIP)'; then \
791
924
  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
@@ -809,97 +942,103 @@ distclean-generic:
809
942
  maintainer-clean-generic:
810
943
  @echo "This command is intended for maintainers to use"
811
944
  @echo "it deletes files that may require special tools to rebuild."
812
- clean: clean-am
945
+ clean: clean-recursive
813
946
 
814
947
  clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
815
948
  mostlyclean-am
816
949
 
817
- distclean: distclean-am
950
+ distclean: distclean-recursive
818
951
  -rm -rf ./$(DEPDIR) os/$(DEPDIR)
819
952
  -rm -f Makefile
820
953
  distclean-am: clean-am distclean-compile distclean-generic \
821
954
  distclean-tags
822
955
 
823
- dvi: dvi-am
956
+ dvi: dvi-recursive
824
957
 
825
958
  dvi-am:
826
959
 
827
- html: html-am
960
+ html: html-recursive
828
961
 
829
962
  html-am:
830
963
 
831
- info: info-am
964
+ info: info-recursive
832
965
 
833
966
  info-am:
834
967
 
835
968
  install-data-am: install-hdrHEADERS
836
969
 
837
- install-dvi: install-dvi-am
970
+ install-dvi: install-dvi-recursive
838
971
 
839
972
  install-dvi-am:
840
973
 
841
974
  install-exec-am: install-libLTLIBRARIES
842
975
 
843
- install-html: install-html-am
976
+ install-html: install-html-recursive
844
977
 
845
978
  install-html-am:
846
979
 
847
- install-info: install-info-am
980
+ install-info: install-info-recursive
848
981
 
849
982
  install-info-am:
850
983
 
851
984
  install-man:
852
985
 
853
- install-pdf: install-pdf-am
986
+ install-pdf: install-pdf-recursive
854
987
 
855
988
  install-pdf-am:
856
989
 
857
- install-ps: install-ps-am
990
+ install-ps: install-ps-recursive
858
991
 
859
992
  install-ps-am:
860
993
 
861
994
  installcheck-am:
862
995
 
863
- maintainer-clean: maintainer-clean-am
996
+ maintainer-clean: maintainer-clean-recursive
864
997
  -rm -rf ./$(DEPDIR) os/$(DEPDIR)
865
998
  -rm -f Makefile
866
999
  maintainer-clean-am: distclean-am maintainer-clean-generic
867
1000
 
868
- mostlyclean: mostlyclean-am
1001
+ mostlyclean: mostlyclean-recursive
869
1002
 
870
1003
  mostlyclean-am: mostlyclean-compile mostlyclean-generic \
871
1004
  mostlyclean-libtool
872
1005
 
873
- pdf: pdf-am
1006
+ pdf: pdf-recursive
874
1007
 
875
1008
  pdf-am:
876
1009
 
877
- ps: ps-am
1010
+ ps: ps-recursive
878
1011
 
879
1012
  ps-am:
880
1013
 
881
1014
  uninstall-am: uninstall-hdrHEADERS uninstall-libLTLIBRARIES
882
1015
 
883
- .MAKE: install-am install-strip
1016
+ .MAKE: $(am__recursive_targets) install-am install-strip
884
1017
 
885
- .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
886
- clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \
887
- ctags-am distclean distclean-compile distclean-generic \
888
- distclean-libtool distclean-tags distdir dvi dvi-am html \
889
- html-am info info-am install install-am install-data \
890
- install-data-am install-dvi install-dvi-am install-exec \
891
- install-exec-am install-hdrHEADERS install-html \
892
- install-html-am install-info install-info-am \
1018
+ .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
1019
+ check-am clean clean-generic clean-libLTLIBRARIES \
1020
+ clean-libtool cscopelist-am ctags ctags-am dist-hook distclean \
1021
+ distclean-compile distclean-generic distclean-libtool \
1022
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
1023
+ install install-am install-data install-data-am install-dvi \
1024
+ install-dvi-am install-exec install-exec-am install-hdrHEADERS \
1025
+ install-html install-html-am install-info install-info-am \
893
1026
  install-libLTLIBRARIES install-man install-pdf install-pdf-am \
894
1027
  install-ps install-ps-am install-strip installcheck \
895
- installcheck-am installdirs maintainer-clean \
1028
+ installcheck-am installdirs installdirs-am maintainer-clean \
896
1029
  maintainer-clean-generic mostlyclean mostlyclean-compile \
897
1030
  mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
898
1031
  tags tags-am uninstall uninstall-am uninstall-hdrHEADERS \
899
1032
  uninstall-libLTLIBRARIES
900
1033
 
1034
+ .PRECIOUS: Makefile
1035
+
901
1036
  all: libusb-1.0.la libusb-1.0.dll
902
1037
 
1038
+ dist-hook:
1039
+ cp -r os/haiku $(distdir)/os/haiku
1040
+ rm -rf $(distdir)/os/haiku/autom4te.cache
1041
+
903
1042
  @OS_WINDOWS_TRUE@.rc.lo:
904
1043
  @OS_WINDOWS_TRUE@ $(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(RCFLAGS) -i $< -o $@
905
1044