summaryrefslogtreecommitdiff
path: root/extras/udevinfo/Makefile
diff options
context:
space:
mode:
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