summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:27:07 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:27:07 +0000
commite2e1a00b1595b4930b86e3ba3ea2e9b771a79653 (patch)
treeba77e3ac3992e0dbf8f751513b9015d37122a2b1 /Makefile.am
parentInitial commit. (diff)
downloadusbutils-e2e1a00b1595b4930b86e3ba3ea2e9b771a79653.tar.xz
usbutils-e2e1a00b1595b4930b86e3ba3ea2e9b771a79653.zip
Adding upstream version 1:014.upstream/1%014upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am83
1 files changed, 83 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..448c854
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,83 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# Copyright (c) 2004 Thomas Sailer <sailer@ife.ee.ethz.ch>
+# Copyright (c) 2005-2006 David Brownell <dbrownell@users.sourceforge.net>
+# Copyright (c) 2009 Kay Sievers <kay.sievers@vrfy.org>
+# Copyright (c) 2009 Greg Kroah-Hartman <gregkh@suse.de>
+
+SUBDIRS = \
+ usbhid-dump
+
+AM_LDFLAGS = \
+ -Wl,--as-needed
+
+data_DATA =
+
+bin_PROGRAMS = \
+ lsusb
+
+sbin_SCRIPTS =
+
+bin_SCRIPTS = \
+ usb-devices \
+ lsusb.py
+
+noinst_PROGRAMS = \
+ usbreset
+
+lsusb_SOURCES = \
+ lsusb.c lsusb.h \
+ lsusb-t.c \
+ list.h \
+ desc-defs.c desc-defs.h \
+ desc-dump.c desc-dump.h \
+ names.c names.h \
+ sysfs.c sysfs.h \
+ usb-spec.h \
+ usbmisc.c usbmisc.h
+
+lsusb_CPPFLAGS = \
+ $(AM_CPPFLAGS) $(LIBUSB_CFLAGS) $(UDEV_CFLAGS)
+
+lsusb_LDADD = \
+ $(LIBUSB_LIBS) \
+ $(UDEV_LIBS)
+
+usbreset_SOURCES = \
+ usbreset.c
+
+man_MANS = \
+ lsusb.8 \
+ usbhid-dump.8 \
+ usb-devices.1
+
+EXTRA_DIST = \
+ lsusb.8.in \
+ usbhid-dump.8.in \
+ usb-devices.1.in \
+ usb-devices \
+ lsusb.py.in \
+ usbreset.c \
+ LICENSES/GPL-2.0-only.txt \
+ LICENSES/GPL-3.0-only.txt
+
+lsusb.py: $(srcdir)/lsusb.py.in
+ sed 's|VERSION|$(VERSION)|g;s|@usbids@|$(datadir)/usb.ids|g' $< >$@
+ chmod 755 $@
+
+lsusb.8: $(srcdir)/lsusb.8.in
+ sed 's|VERSION|$(VERSION)|g' $< >$@
+
+usbhid-dump.8: $(srcdir)/usbhid-dump.8.in
+ sed 's|VERSION|$(VERSION)|g' $< >$@
+
+usb-devices.1: $(srcdir)/usb-devices.1.in
+ sed 's|VERSION|$(VERSION)|g' $< >$@
+
+DISTCLEANFILES = \
+ lsusb.py \
+ lsusb.8 \
+ usb-devices.1 \
+ usbhid-dump.8
+
+distclean-local:
+ rm -rf autom4te.cache