libusb 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +2 -0
- data.tar.gz.sig +0 -0
- data/.travis.yml +3 -3
- data/History.md +8 -0
- data/README.md +1 -0
- data/Rakefile +14 -14
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/AUTHORS +6 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/COPYING +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/ChangeLog +9 -2
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/INSTALL +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Makefile.am +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Makefile.in +188 -156
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/NEWS +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/PORTING +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/README +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/TODO +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/common.xcconfig +10 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/config.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/debug.xcconfig +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/libusb.xcconfig +1 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/libusb.xcodeproj/project.pbxproj +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/libusb_debug.xcconfig +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/libusb_release.xcconfig +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/Xcode/release.xcconfig +1 -0
- data/ext/libusb-1.0.19/aclocal.m4 +1190 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/android/README +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/android/config.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/android/jni/Android.mk +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/android/jni/Application.mk +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/android/jni/examples.mk +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/android/jni/libusb.mk +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/android/jni/tests.mk +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/compile +7 -3
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/config.guess +116 -78
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/config.h.in +0 -3
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/config.sub +66 -46
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/configure +265 -208
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/configure.ac +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/depcomp +269 -186
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/doc/Makefile.am +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/doc/Makefile.in +72 -35
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/doc/doxygen.cfg.in +1 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/Makefile.am +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/Makefile.in +134 -70
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/dpfp.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/dpfp_threaded.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/ezusb.c +9 -5
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/ezusb.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/fxload.c +1 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/getopt/getopt.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/getopt/getopt.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/getopt/getopt1.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/hotplugtest.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/listdevs.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/sam3u_benchmark.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/examples/xusb.c +22 -2
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/install-sh +7 -7
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb-1.0.pc.in +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/Makefile.am +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/Makefile.in +133 -93
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/core.c +86 -15
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/descriptor.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/hotplug.c +6 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/hotplug.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/io.c +54 -17
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/libusb-1.0.def +8 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/libusb-1.0.rc +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/libusb.h +42 -2
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/libusbi.h +10 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/darwin_usb.c +156 -53
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/darwin_usb.h +1 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/linux_netlink.c +26 -2
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/linux_udev.c +2 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/linux_usbfs.c +93 -6
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/linux_usbfs.h +12 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/netbsd_usb.c +6 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/openbsd_usb.c +6 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/poll_posix.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/poll_posix.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/poll_windows.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/poll_windows.h +12 -6
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/threads_posix.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/threads_posix.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/threads_windows.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/threads_windows.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/wince_usb.c +8 -1
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/wince_usb.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/windows_common.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/windows_usb.c +175 -42
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/os/windows_usb.h +35 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/strerror.c +17 -2
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/sync.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/libusb/version.h +1 -1
- data/ext/libusb-1.0.19/libusb/version_nano.h +1 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/ltmain.sh +3 -3
- data/ext/{libusb-1.0.18/aclocal.m4 → libusb-1.0.19/m4/libtool.m4} +36 -1734
- data/ext/libusb-1.0.19/m4/ltoptions.m4 +384 -0
- data/ext/libusb-1.0.19/m4/ltsugar.m4 +123 -0
- data/ext/libusb-1.0.19/m4/ltversion.m4 +23 -0
- data/ext/libusb-1.0.19/m4/lt~obsolete.m4 +98 -0
- data/ext/libusb-1.0.19/missing +215 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/tests/Makefile.am +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/tests/Makefile.in +128 -70
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/tests/libusb_testlib.h +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/tests/stress.c +0 -0
- data/ext/{libusb-1.0.18 → libusb-1.0.19}/tests/testlib.c +0 -0
- data/lib/libusb.rb +3 -1
- data/lib/libusb/bos.rb +306 -0
- data/lib/libusb/call.rb +84 -0
- data/lib/libusb/constants.rb +4 -0
- data/lib/libusb/dev_handle.rb +77 -0
- data/lib/libusb/endpoint.rb +20 -0
- data/lib/libusb/ss_companion.rb +69 -0
- data/lib/libusb/transfer.rb +34 -0
- data/lib/libusb/version_gem.rb +1 -1
- data/libusb.gemspec +1 -0
- data/test/test_libusb_bos.rb +118 -0
- data/test/test_libusb_bulk_stream_transfer.rb +50 -0
- data/test/test_libusb_descriptors.rb +29 -0
- data/test/test_libusb_hotplug.rb +1 -1
- data/test/test_libusb_threads.rb +1 -1
- metadata +146 -124
- metadata.gz.sig +0 -0
- data/ext/libusb-1.0.18/libusb/version_nano.h +0 -1
- data/ext/libusb-1.0.18/missing +0 -331
File without changes
|
File without changes
|
@@ -442,9 +442,11 @@ static int parse_iic(FILE *image, void *context,
|
|
442
442
|
if (initial_pos < 0)
|
443
443
|
return -1;
|
444
444
|
|
445
|
-
fseek(image, 0L, SEEK_END)
|
445
|
+
if (fseek(image, 0L, SEEK_END) != 0)
|
446
|
+
return -1;
|
446
447
|
file_size = ftell(image);
|
447
|
-
fseek(image, initial_pos, SEEK_SET)
|
448
|
+
if (fseek(image, initial_pos, SEEK_SET) != 0)
|
449
|
+
return -1;
|
448
450
|
for (;;) {
|
449
451
|
/* Ignore the trailing reset IIC data (5 bytes) */
|
450
452
|
if (ftell(image) >= (file_size - 5))
|
@@ -633,7 +635,8 @@ static int fx3_load_ram(libusb_device_handle *device, const char *path)
|
|
633
635
|
if (dLength == 0)
|
634
636
|
break; // done
|
635
637
|
|
636
|
-
|
638
|
+
// coverity[tainted_data]
|
639
|
+
dImageBuf = (uint32_t*)calloc(dLength, sizeof(uint32_t));
|
637
640
|
if (dImageBuf == NULL) {
|
638
641
|
logerror("could not allocate buffer for image chunk\n");
|
639
642
|
ret = -4;
|
@@ -813,9 +816,10 @@ int ezusb_load_ram(libusb_device_handle *device, const char *path, int fx_type,
|
|
813
816
|
}
|
814
817
|
}
|
815
818
|
|
816
|
-
if (verbose)
|
819
|
+
if (verbose && (ctx.count != 0)) {
|
817
820
|
logerror("... WROTE: %d bytes, %d segments, avg %d\n",
|
818
|
-
|
821
|
+
(int)ctx.total, (int)ctx.count, (int)(ctx.total/ctx.count));
|
822
|
+
}
|
819
823
|
|
820
824
|
/* if required, reset the CPU so it runs what we just uploaded */
|
821
825
|
if (cpucs_addr && !ezusb_cpucs(device, cpucs_addr, true))
|
File without changes
|
@@ -147,7 +147,7 @@ int main(int argc, char*argv[])
|
|
147
147
|
return print_usage(-1);
|
148
148
|
}
|
149
149
|
if ((device_id != NULL) && (device_path != NULL)) {
|
150
|
-
logerror("only one of -d or -
|
150
|
+
logerror("only one of -d or -p can be specified\n");
|
151
151
|
return print_usage(-1);
|
152
152
|
}
|
153
153
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -33,6 +33,11 @@
|
|
33
33
|
#define msleep(msecs) usleep(1000*msecs)
|
34
34
|
#endif
|
35
35
|
|
36
|
+
#if defined(_MSC_VER)
|
37
|
+
#define snprintf _snprintf
|
38
|
+
#define putenv _putenv
|
39
|
+
#endif
|
40
|
+
|
36
41
|
#if !defined(bool)
|
37
42
|
#define bool int
|
38
43
|
#endif
|
@@ -512,6 +517,7 @@ static int test_mass_storage(libusb_device_handle *handle, uint8_t endpoint_in,
|
|
512
517
|
get_sense(handle, endpoint_in, endpoint_out);
|
513
518
|
}
|
514
519
|
|
520
|
+
// coverity[tainted_data]
|
515
521
|
data = (unsigned char*) calloc(1, block_size);
|
516
522
|
if (data == NULL) {
|
517
523
|
perr(" unable to allocate data buffer\n");
|
@@ -972,7 +978,7 @@ int main(int argc, char** argv)
|
|
972
978
|
size_t i, arglen;
|
973
979
|
unsigned tmp_vid, tmp_pid;
|
974
980
|
uint16_t endian_test = 0xBE00;
|
975
|
-
char*
|
981
|
+
char *error_lang = NULL, *old_dbg_str = NULL, str[256];
|
976
982
|
|
977
983
|
// Default to generic, expecting VID:PID
|
978
984
|
VID = 0;
|
@@ -1088,13 +1094,22 @@ int main(int argc, char** argv)
|
|
1088
1094
|
return 0;
|
1089
1095
|
}
|
1090
1096
|
|
1097
|
+
// xusb is commonly used as a debug tool, so it's convenient to have debug output during libusb_init(),
|
1098
|
+
// but since we can't call on libusb_set_debug() before libusb_init(), we use the env variable method
|
1099
|
+
old_dbg_str = getenv("LIBUSB_DEBUG");
|
1100
|
+
if (debug_mode) {
|
1101
|
+
putenv("LIBUSB_DEBUG=4"); // LIBUSB_LOG_LEVEL_DEBUG
|
1102
|
+
}
|
1103
|
+
|
1091
1104
|
version = libusb_get_version();
|
1092
1105
|
printf("Using libusb v%d.%d.%d.%d\n\n", version->major, version->minor, version->micro, version->nano);
|
1093
1106
|
r = libusb_init(NULL);
|
1094
1107
|
if (r < 0)
|
1095
1108
|
return r;
|
1096
1109
|
|
1097
|
-
|
1110
|
+
// If not set externally, and no debug option was given, use info log level
|
1111
|
+
if ((old_dbg_str == NULL) && (!debug_mode))
|
1112
|
+
libusb_set_debug(NULL, LIBUSB_LOG_LEVEL_INFO);
|
1098
1113
|
if (error_lang != NULL) {
|
1099
1114
|
r = libusb_setlocale(error_lang);
|
1100
1115
|
if (r < 0)
|
@@ -1105,5 +1120,10 @@ int main(int argc, char** argv)
|
|
1105
1120
|
|
1106
1121
|
libusb_exit(NULL);
|
1107
1122
|
|
1123
|
+
if (debug_mode) {
|
1124
|
+
snprintf(str, sizeof(str), "LIBUSB_DEBUG=%s", (old_dbg_str == NULL)?"":old_dbg_str);
|
1125
|
+
str[sizeof(str) - 1] = 0; // Windows may not NUL terminate the string
|
1126
|
+
}
|
1127
|
+
|
1108
1128
|
return 0;
|
1109
1129
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
# install - install a program, script, or datafile
|
3
3
|
|
4
|
-
scriptversion=2011-
|
4
|
+
scriptversion=2011-11-20.07; # UTC
|
5
5
|
|
6
6
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
7
7
|
# later released in X11R6 (xc/config/util/install.sh) with the
|
@@ -35,7 +35,7 @@ scriptversion=2011-01-19.21; # UTC
|
|
35
35
|
# FSF changes to this file are in the public domain.
|
36
36
|
#
|
37
37
|
# Calling this script install-sh is preferred over install.sh, to prevent
|
38
|
-
#
|
38
|
+
# 'make' implicit rules from creating a file called install from it
|
39
39
|
# when there is no Makefile.
|
40
40
|
#
|
41
41
|
# This script is compatible with the BSD install script, but was written
|
@@ -156,7 +156,7 @@ while test $# -ne 0; do
|
|
156
156
|
-s) stripcmd=$stripprog;;
|
157
157
|
|
158
158
|
-t) dst_arg=$2
|
159
|
-
# Protect names problematic for
|
159
|
+
# Protect names problematic for 'test' and other utilities.
|
160
160
|
case $dst_arg in
|
161
161
|
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
162
162
|
esac
|
@@ -190,7 +190,7 @@ if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
|
|
190
190
|
fi
|
191
191
|
shift # arg
|
192
192
|
dst_arg=$arg
|
193
|
-
# Protect names problematic for
|
193
|
+
# Protect names problematic for 'test' and other utilities.
|
194
194
|
case $dst_arg in
|
195
195
|
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
196
196
|
esac
|
@@ -202,7 +202,7 @@ if test $# -eq 0; then
|
|
202
202
|
echo "$0: no input file specified." >&2
|
203
203
|
exit 1
|
204
204
|
fi
|
205
|
-
# It's OK to call
|
205
|
+
# It's OK to call 'install-sh -d' without argument.
|
206
206
|
# This can happen when creating conditional directories.
|
207
207
|
exit 0
|
208
208
|
fi
|
@@ -240,7 +240,7 @@ fi
|
|
240
240
|
|
241
241
|
for src
|
242
242
|
do
|
243
|
-
# Protect names problematic for
|
243
|
+
# Protect names problematic for 'test' and other utilities.
|
244
244
|
case $src in
|
245
245
|
-* | [=\(\)!]) src=./$src;;
|
246
246
|
esac
|
@@ -354,7 +354,7 @@ do
|
|
354
354
|
if test -z "$dir_arg" || {
|
355
355
|
# Check for POSIX incompatibilities with -m.
|
356
356
|
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
|
357
|
-
# other-
|
357
|
+
# other-writable bit of parent directory when it shouldn't.
|
358
358
|
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
|
359
359
|
ls_ld_tmpdir=`ls -ld "$tmpdir"`
|
360
360
|
case $ls_ld_tmpdir in
|
File without changes
|
File without changes
|
@@ -1,9 +1,8 @@
|
|
1
|
-
# Makefile.in generated by automake 1.
|
1
|
+
# Makefile.in generated by automake 1.14.1 from Makefile.am.
|
2
2
|
# @configure_input@
|
3
3
|
|
4
|
-
# Copyright (C) 1994
|
5
|
-
|
6
|
-
# Foundation, Inc.
|
4
|
+
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
|
5
|
+
|
7
6
|
# This Makefile.in is free software; the Free Software Foundation
|
8
7
|
# gives unlimited permission to copy and/or distribute it,
|
9
8
|
# with or without modifications, as long as this notice is preserved.
|
@@ -17,23 +16,51 @@
|
|
17
16
|
|
18
17
|
|
19
18
|
VPATH = @srcdir@
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
|
20
|
+
am__make_running_with_option = \
|
21
|
+
case $${target_option-} in \
|
22
|
+
?) ;; \
|
23
|
+
*) echo "am__make_running_with_option: internal error: invalid" \
|
24
|
+
"target option '$${target_option-}' specified" >&2; \
|
25
|
+
exit 1;; \
|
26
|
+
esac; \
|
27
|
+
has_opt=no; \
|
28
|
+
sane_makeflags=$$MAKEFLAGS; \
|
29
|
+
if $(am__is_gnu_make); then \
|
30
|
+
sane_makeflags=$$MFLAGS; \
|
31
|
+
else \
|
23
32
|
case $$MAKEFLAGS in \
|
24
33
|
*\\[\ \ ]*) \
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
for am__flg in $$MAKEFLAGS; do \
|
29
|
-
case $$am__flg in \
|
30
|
-
*=*|--*) ;; \
|
31
|
-
*n*) am__dry=yes; break;; \
|
32
|
-
esac; \
|
33
|
-
done;; \
|
34
|
+
bs=\\; \
|
35
|
+
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
36
|
+
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
34
37
|
esac; \
|
35
|
-
|
36
|
-
|
38
|
+
fi; \
|
39
|
+
skip_next=no; \
|
40
|
+
strip_trailopt () \
|
41
|
+
{ \
|
42
|
+
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
43
|
+
}; \
|
44
|
+
for flg in $$sane_makeflags; do \
|
45
|
+
test $$skip_next = yes && { skip_next=no; continue; }; \
|
46
|
+
case $$flg in \
|
47
|
+
*=*|--*) continue;; \
|
48
|
+
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
49
|
+
-*I?*) strip_trailopt 'I';; \
|
50
|
+
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
51
|
+
-*O?*) strip_trailopt 'O';; \
|
52
|
+
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
53
|
+
-*l?*) strip_trailopt 'l';; \
|
54
|
+
-[dEDm]) skip_next=yes;; \
|
55
|
+
-[JT]) skip_next=yes;; \
|
56
|
+
esac; \
|
57
|
+
case $$flg in \
|
58
|
+
*$$target_option*) has_opt=yes; break;; \
|
59
|
+
esac; \
|
60
|
+
done; \
|
61
|
+
test $$has_opt = yes
|
62
|
+
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
63
|
+
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
37
64
|
pkgdatadir = $(datadir)/@PACKAGE@
|
38
65
|
pkgincludedir = $(includedir)/@PACKAGE@
|
39
66
|
pkglibdir = $(libdir)/@PACKAGE@
|
@@ -53,11 +80,13 @@ POST_UNINSTALL = :
|
|
53
80
|
build_triplet = @build@
|
54
81
|
host_triplet = @host@
|
55
82
|
subdir = libusb
|
56
|
-
DIST_COMMON = $(
|
57
|
-
$(
|
83
|
+
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
84
|
+
$(top_srcdir)/depcomp $(hdr_HEADERS)
|
58
85
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
59
|
-
am__aclocal_m4_deps = $(top_srcdir)/
|
60
|
-
$(top_srcdir)/
|
86
|
+
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
|
87
|
+
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
88
|
+
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
89
|
+
$(top_srcdir)/libusb/version.h $(top_srcdir)/configure.ac
|
61
90
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
62
91
|
$(ACLOCAL_M4)
|
63
92
|
mkinstalldirs = $(install_sh) -d
|
@@ -134,9 +163,22 @@ libusb_1_0_la_OBJECTS = $(am_libusb_1_0_la_OBJECTS)
|
|
134
163
|
AM_V_lt = $(am__v_lt_@AM_V@)
|
135
164
|
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
136
165
|
am__v_lt_0 = --silent
|
166
|
+
am__v_lt_1 =
|
137
167
|
libusb_1_0_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
138
168
|
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(libusb_1_0_la_CFLAGS) \
|
139
169
|
$(CFLAGS) $(libusb_1_0_la_LDFLAGS) $(LDFLAGS) -o $@
|
170
|
+
AM_V_P = $(am__v_P_@AM_V@)
|
171
|
+
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
172
|
+
am__v_P_0 = false
|
173
|
+
am__v_P_1 = :
|
174
|
+
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
175
|
+
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
176
|
+
am__v_GEN_0 = @echo " GEN " $@;
|
177
|
+
am__v_GEN_1 =
|
178
|
+
AM_V_at = $(am__v_at_@AM_V@)
|
179
|
+
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
180
|
+
am__v_at_0 = @
|
181
|
+
am__v_at_1 =
|
140
182
|
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
141
183
|
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
142
184
|
am__depfiles_maybe = depfiles
|
@@ -149,20 +191,16 @@ LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
|
149
191
|
$(AM_CFLAGS) $(CFLAGS)
|
150
192
|
AM_V_CC = $(am__v_CC_@AM_V@)
|
151
193
|
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
|
152
|
-
am__v_CC_0 = @echo " CC
|
153
|
-
|
154
|
-
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
155
|
-
am__v_at_0 = @
|
194
|
+
am__v_CC_0 = @echo " CC " $@;
|
195
|
+
am__v_CC_1 =
|
156
196
|
CCLD = $(CC)
|
157
197
|
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
158
198
|
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
159
199
|
$(AM_LDFLAGS) $(LDFLAGS) -o $@
|
160
200
|
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
|
161
201
|
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
162
|
-
am__v_CCLD_0 = @echo " CCLD
|
163
|
-
|
164
|
-
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
165
|
-
am__v_GEN_0 = @echo " GEN " $@;
|
202
|
+
am__v_CCLD_0 = @echo " CCLD " $@;
|
203
|
+
am__v_CCLD_1 =
|
166
204
|
SOURCES = $(libusb_1_0_la_SOURCES)
|
167
205
|
DIST_SOURCES = $(am__libusb_1_0_la_SOURCES_DIST)
|
168
206
|
am__can_run_installinfo = \
|
@@ -171,6 +209,23 @@ am__can_run_installinfo = \
|
|
171
209
|
*) (install-info --version) >/dev/null 2>&1;; \
|
172
210
|
esac
|
173
211
|
HEADERS = $(hdr_HEADERS)
|
212
|
+
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
213
|
+
# Read a list of newline-separated strings from the standard input,
|
214
|
+
# and print each of them once, without duplicates. Input order is
|
215
|
+
# *not* preserved.
|
216
|
+
am__uniquify_input = $(AWK) '\
|
217
|
+
BEGIN { nonempty = 0; } \
|
218
|
+
{ items[$$0] = 1; nonempty = 1; } \
|
219
|
+
END { if (nonempty) { for (i in items) print i; }; } \
|
220
|
+
'
|
221
|
+
# Make sure the list of sources is unique. This is necessary because,
|
222
|
+
# e.g., the same source file might be shared among _SOURCES variables
|
223
|
+
# for different programs/libraries.
|
224
|
+
am__define_uniq_tagged_files = \
|
225
|
+
list='$(am__tagged_files)'; \
|
226
|
+
unique=`for i in $$list; do \
|
227
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
228
|
+
done | $(am__uniquify_input)`
|
174
229
|
ETAGS = etags
|
175
230
|
CTAGS = ctags
|
176
231
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
@@ -369,6 +424,7 @@ $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
|
369
424
|
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
370
425
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
371
426
|
$(am__aclocal_m4_deps):
|
427
|
+
|
372
428
|
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
373
429
|
@$(NORMAL_INSTALL)
|
374
430
|
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
|
@@ -395,12 +451,14 @@ uninstall-libLTLIBRARIES:
|
|
395
451
|
|
396
452
|
clean-libLTLIBRARIES:
|
397
453
|
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
|
398
|
-
@list='$(lib_LTLIBRARIES)';
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
454
|
+
@list='$(lib_LTLIBRARIES)'; \
|
455
|
+
locs=`for p in $$list; do echo $$p; done | \
|
456
|
+
sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
|
457
|
+
sort -u`; \
|
458
|
+
test -z "$$locs" || { \
|
459
|
+
echo rm -f $${locs}; \
|
460
|
+
rm -f $${locs}; \
|
461
|
+
}
|
404
462
|
os/$(am__dirstamp):
|
405
463
|
@$(MKDIR_P) os
|
406
464
|
@: > os/$(am__dirstamp)
|
@@ -429,33 +487,14 @@ os/libusb_1_0_la-poll_windows.lo: os/$(am__dirstamp) \
|
|
429
487
|
os/$(DEPDIR)/$(am__dirstamp)
|
430
488
|
os/libusb_1_0_la-windows_usb.lo: os/$(am__dirstamp) \
|
431
489
|
os/$(DEPDIR)/$(am__dirstamp)
|
490
|
+
|
432
491
|
libusb-1.0.la: $(libusb_1_0_la_OBJECTS) $(libusb_1_0_la_DEPENDENCIES) $(EXTRA_libusb_1_0_la_DEPENDENCIES)
|
433
492
|
$(AM_V_CCLD)$(libusb_1_0_la_LINK) -rpath $(libdir) $(libusb_1_0_la_OBJECTS) $(libusb_1_0_la_LIBADD) $(LIBS)
|
434
493
|
|
435
494
|
mostlyclean-compile:
|
436
495
|
-rm -f *.$(OBJEXT)
|
437
|
-
-rm -f os
|
438
|
-
-rm -f os
|
439
|
-
-rm -f os/libusb_1_0_la-linux_netlink.$(OBJEXT)
|
440
|
-
-rm -f os/libusb_1_0_la-linux_netlink.lo
|
441
|
-
-rm -f os/libusb_1_0_la-linux_udev.$(OBJEXT)
|
442
|
-
-rm -f os/libusb_1_0_la-linux_udev.lo
|
443
|
-
-rm -f os/libusb_1_0_la-linux_usbfs.$(OBJEXT)
|
444
|
-
-rm -f os/libusb_1_0_la-linux_usbfs.lo
|
445
|
-
-rm -f os/libusb_1_0_la-netbsd_usb.$(OBJEXT)
|
446
|
-
-rm -f os/libusb_1_0_la-netbsd_usb.lo
|
447
|
-
-rm -f os/libusb_1_0_la-openbsd_usb.$(OBJEXT)
|
448
|
-
-rm -f os/libusb_1_0_la-openbsd_usb.lo
|
449
|
-
-rm -f os/libusb_1_0_la-poll_posix.$(OBJEXT)
|
450
|
-
-rm -f os/libusb_1_0_la-poll_posix.lo
|
451
|
-
-rm -f os/libusb_1_0_la-poll_windows.$(OBJEXT)
|
452
|
-
-rm -f os/libusb_1_0_la-poll_windows.lo
|
453
|
-
-rm -f os/libusb_1_0_la-threads_posix.$(OBJEXT)
|
454
|
-
-rm -f os/libusb_1_0_la-threads_posix.lo
|
455
|
-
-rm -f os/libusb_1_0_la-threads_windows.$(OBJEXT)
|
456
|
-
-rm -f os/libusb_1_0_la-threads_windows.lo
|
457
|
-
-rm -f os/libusb_1_0_la-windows_usb.$(OBJEXT)
|
458
|
-
-rm -f os/libusb_1_0_la-windows_usb.lo
|
496
|
+
-rm -f os/*.$(OBJEXT)
|
497
|
+
-rm -f os/*.lo
|
459
498
|
|
460
499
|
distclean-compile:
|
461
500
|
-rm -f *.tab.c
|
@@ -649,26 +688,15 @@ uninstall-hdrHEADERS:
|
|
649
688
|
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
650
689
|
dir='$(DESTDIR)$(hdrdir)'; $(am__uninstall_files_from_dir)
|
651
690
|
|
652
|
-
ID: $(
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
659
|
-
mkid -fID $$unique
|
660
|
-
tags: TAGS
|
661
|
-
|
662
|
-
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
663
|
-
$(TAGS_FILES) $(LISP)
|
691
|
+
ID: $(am__tagged_files)
|
692
|
+
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
693
|
+
tags: tags-am
|
694
|
+
TAGS: tags
|
695
|
+
|
696
|
+
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
664
697
|
set x; \
|
665
698
|
here=`pwd`; \
|
666
|
-
|
667
|
-
unique=`for i in $$list; do \
|
668
|
-
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
669
|
-
done | \
|
670
|
-
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
671
|
-
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
699
|
+
$(am__define_uniq_tagged_files); \
|
672
700
|
shift; \
|
673
701
|
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
674
702
|
test -n "$$unique" || unique=$$empty_fix; \
|
@@ -680,15 +708,11 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
|
680
708
|
$$unique; \
|
681
709
|
fi; \
|
682
710
|
fi
|
683
|
-
ctags:
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
689
|
-
done | \
|
690
|
-
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
691
|
-
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
711
|
+
ctags: ctags-am
|
712
|
+
|
713
|
+
CTAGS: ctags
|
714
|
+
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
715
|
+
$(am__define_uniq_tagged_files); \
|
692
716
|
test -z "$(CTAGS_ARGS)$$unique" \
|
693
717
|
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
694
718
|
$$unique
|
@@ -697,6 +721,21 @@ GTAGS:
|
|
697
721
|
here=`$(am__cd) $(top_builddir) && pwd` \
|
698
722
|
&& $(am__cd) $(top_srcdir) \
|
699
723
|
&& gtags -i $(GTAGS_ARGS) "$$here"
|
724
|
+
cscopelist: cscopelist-am
|
725
|
+
|
726
|
+
cscopelist-am: $(am__tagged_files)
|
727
|
+
list='$(am__tagged_files)'; \
|
728
|
+
case "$(srcdir)" in \
|
729
|
+
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
730
|
+
*) sdir=$(subdir)/$(srcdir) ;; \
|
731
|
+
esac; \
|
732
|
+
for i in $$list; do \
|
733
|
+
if test -f "$$i"; then \
|
734
|
+
echo "$(subdir)/$$i"; \
|
735
|
+
else \
|
736
|
+
echo "$$sdir/$$i"; \
|
737
|
+
fi; \
|
738
|
+
done >> $(top_builddir)/cscope.files
|
700
739
|
|
701
740
|
distclean-tags:
|
702
741
|
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
@@ -843,19 +882,20 @@ uninstall-am: uninstall-hdrHEADERS uninstall-libLTLIBRARIES
|
|
843
882
|
|
844
883
|
.MAKE: install-am install-strip
|
845
884
|
|
846
|
-
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
847
|
-
clean-libLTLIBRARIES clean-libtool ctags
|
848
|
-
distclean-compile distclean-generic
|
849
|
-
distclean-tags distdir dvi dvi-am html
|
850
|
-
|
851
|
-
install-
|
852
|
-
install-
|
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 \
|
853
893
|
install-libLTLIBRARIES install-man install-pdf install-pdf-am \
|
854
894
|
install-ps install-ps-am install-strip installcheck \
|
855
895
|
installcheck-am installdirs maintainer-clean \
|
856
896
|
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
857
897
|
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
858
|
-
tags uninstall uninstall-am uninstall-hdrHEADERS \
|
898
|
+
tags tags-am uninstall uninstall-am uninstall-hdrHEADERS \
|
859
899
|
uninstall-libLTLIBRARIES
|
860
900
|
|
861
901
|
all: libusb-1.0.la libusb-1.0.dll
|