summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-01-26 18:55:37 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:18 -0700
commit869fc2f1ff73209b9aa5dc7d582eba39feaf6f86 (patch)
tree39b044ab381b07bc0a72870081813794f2e94fad /Makefile
parent87171e46cd9d179e0bb5549c4d74769a1be86e64 (diff)
[PATCH] move udevinfo into the main build and clean up the main Makefile a bit.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile34
1 files changed, 24 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 5c265492b4..20c739e404 100644
--- a/Makefile
+++ b/Makefile
@@ -33,6 +33,7 @@ USE_DBUS = false
ROOT = udev
DAEMON = udevd
SENDER = udevsend
+HELPERS = udevinfo
VERSION = 014_bk
INSTALL_DIR = /usr/local/bin
RELEASE_NAME = $(ROOT)-$(VERSION)
@@ -164,7 +165,7 @@ endif
CFLAGS += -I$(PWD)/libsysfs
-all: $(ROOT) $(UDEVD)
+all: $(ROOT) $(UDEVD) $(HELPERS)
@extras="$(EXTRAS)" ; for target in $$extras ; do \
echo $$target ; \
$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
@@ -189,8 +190,7 @@ SYSFS = $(PWD)/libsysfs/sysfs_bus.o \
$(PWD)/libsysfs/sysfs_utils.o \
$(PWD)/libsysfs/dlist.o
-OBJS = udev.o \
- udev_config.o \
+OBJS = udev_config.o \
udev-add.o \
udev-remove.o \
udevdb.o \
@@ -200,6 +200,16 @@ OBJS = udev.o \
$(SYSFS) \
$(TDB)
+HEADERS = $(GEN_HEADERS) \
+ udev.h \
+ namedev.h \
+ udev_version.h \
+ udev_dbus.h \
+ udevdb.h \
+ klibc_fixups.h \
+ logging.h \
+ list.h
+
ifeq ($(strip $(USE_KLIBC)),true)
OBJS += klibc_fixups.o
endif
@@ -234,17 +244,21 @@ $(LOCAL_CFG_DIR)/udev.conf:
$(OBJS): $(GEN_HEADERS)
-$(ROOT): $(OBJS) udev.h namedev.h udev_version.h udev_dbus.h udevdb.h klibc_fixups.h logging.h list.h
- $(LD) $(LDFLAGS) -o $(ROOT) $(CRT0) $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS)
- $(STRIPCMD) $(ROOT)
+$(ROOT): udev.o $(OBJS) $(HEADERS)
+ $(LD) $(LDFLAGS) -o $@ $(CRT0) udev.o $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS)
+ $(STRIPCMD) $@
+
+$(HELPERS): udevinfo.o $(OBJS) $(HEADERS)
+ $(LD) $(LDFLAGS) -o $@ $(CRT0) udevinfo.o $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS)
+ $(STRIPCMD) $@
$(DAEMON): udevd.h udevd.o udevd.o logging.o
- $(LD) $(LDFLAGS) -o $(DAEMON) $(CRT0) udevd.o logging.o $(LIB_OBJS) $(ARCH_LIB_OBJS)
- $(STRIPCMD) $(ROOT)
+ $(LD) $(LDFLAGS) -o $@ $(CRT0) udevd.o logging.o $(LIB_OBJS) $(ARCH_LIB_OBJS)
+ $(STRIPCMD) $@
$(SENDER): udevd.h udevsend.o udevd.o logging.o
- $(LD) $(LDFLAGS) -o $(SENDER) $(CRT0) udevsend.o logging.o $(LIB_OBJS) $(ARCH_LIB_OBJS)
- $(STRIPCMD) $(ROOT)
+ $(LD) $(LDFLAGS) -o $@ $(CRT0) udevsend.o logging.o $(LIB_OBJS) $(ARCH_LIB_OBJS)
+ $(STRIPCMD) $@
clean:
-find . \( -not -type d \) -and \( -name '*~' -o -name '*.[oas]' \) -type f -print \