summaryrefslogtreecommitdiff
path: root/extras/usb_id
diff options
context:
space:
mode:
Diffstat (limited to 'extras/usb_id')
-rw-r--r--extras/usb_id/Makefile.am18
-rw-r--r--extras/usb_id/usb_id.c2
2 files changed, 19 insertions, 1 deletions
diff --git a/extras/usb_id/Makefile.am b/extras/usb_id/Makefile.am
new file mode 100644
index 0000000000..0de004a228
--- /dev/null
+++ b/extras/usb_id/Makefile.am
@@ -0,0 +1,18 @@
+udevhomedir = $(udev_prefix)/lib/udev
+udevhome_PROGRAMS = \
+ usb_id
+
+AM_CPPFLAGS = \
+ -DSYSCONFDIR=\""$(sysconfdir)"\" \
+ -DUDEV_PREFIX=\""$(udev_prefix)"\"
+
+usb_id_SOURCES = \
+ usb_id.c \
+ ../../udev/udev_sysfs.c \
+ ../../udev/udev_sysdeps.c \
+ ../../udev/udev_utils.c \
+ ../../udev/udev_utils_string.c
+
+distclean-local:
+ rm -f Makefile.in
+
diff --git a/extras/usb_id/usb_id.c b/extras/usb_id/usb_id.c
index fed6631b90..5b78b975d8 100644
--- a/extras/usb_id/usb_id.c
+++ b/extras/usb_id/usb_id.c
@@ -20,7 +20,7 @@
#include <errno.h>
#include <getopt.h>
-#include "../../udev.h"
+#include "../../udev/udev.h"
#define MAX_PATH_LEN 512
#define MAX_SERIAL_LEN 256