summaryrefslogtreecommitdiff
path: root/extras/udevinfo/Makefile
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-01-26 18:20:12 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:18 -0700
commit87171e46cd9d179e0bb5549c4d74769a1be86e64 (patch)
treeae26cb347fffdaff5f6800fcc1fa3def1d74286a /extras/udevinfo/Makefile
parenta695feaeff0551745e1a397be2daa61b8cd0cc42 (diff)
[PATCH] udevinfo - now a real program :)
I want to make udevinfo the standard query interface, so all the user features of the main udev are copied in here. It is now capable to: o query the database for a given value o dump the whole database o extract all possible device attributes for a sysfs_device In addition to the known options of udev it supports the query for the mode of the device node, and it includes the mode in the database dump: udevinfo -d P: /class/video4linux/video0 N: video/webcam0 M: 0666 S: camera0 kamera0 O: 500 G: 500 It is also a bit more friendly with the pathnames specified for devices or nodes. We remove the absolute path or add it if neccessary: udevinfo -q mode -n video/webcam0 udevinfo -q mode -n /udev/video/webcam0 0666 udevinfo -q mode -p /sys/class/video4linux/video0 udevinfo -q mode -p /class/video4linux/video0 udevinfo -q mode -p class/video4linux/video0 0666
Diffstat (limited to 'extras/udevinfo/Makefile')
-rw-r--r--extras/udevinfo/Makefile28
1 files changed, 21 insertions, 7 deletions
diff --git a/extras/udevinfo/Makefile b/extras/udevinfo/Makefile
index f31c8c11e9..b740b25331 100644
--- a/extras/udevinfo/Makefile
+++ b/extras/udevinfo/Makefile
@@ -1,14 +1,28 @@
PROG=udevinfo
-LD=$(CC)
-OBJS=udevinfo.o
+OBJS= ../../udev_config.o \
+ ../../udev-add.o \
+ ../../udev-remove.o \
+ ../../udevdb.o \
+ ../../logging.o \
+ ../../namedev.o \
+ ../../namedev_parse.o \
+ ../../libsysfs/sysfs_bus.o \
+ ../../libsysfs/sysfs_class.o \
+ ../../libsysfs/sysfs_device.o \
+ ../../libsysfs/sysfs_dir.o \
+ ../../libsysfs/sysfs_driver.o \
+ ../../libsysfs/sysfs_utils.o \
+ ../../libsysfs/dlist.o \
+ ../../tdb/tdb.o \
+ ../../tdb/spinlock.o \
-all: $(PROG)
+all: $(PROG)
-clean:
- rm -f $(PROG) $(OBJS)
+$(PROG): $(PROG).o
+ $(LD) $(LDFLAGS) -o $(PROG) $(PROG).o $(OBJS) -lc
-$(PROG): $(OBJS)
- $(LD) $(LDFLAGS) -o $(PROG) $(CRT0) $(OBJS) $(SYSFS)
+clean:
+ rm -f $(PROG) $(OBJS) $(PROG).o
me:
cd ../..; make EXTRAS=extras/udevinfo