# Set the following to `true' to make udev emit a D-BUS signal when a
# new node is created.
-USE_DBUS = true
+DBUS = false
ROOT = udev
CFLAGS += -I$(PWD)/libsysfs
-ifeq ($(USE_DBUS), true)
- CFLAGS += -DUSE_DBUS
- CFLAGS += $(shell pkg-config --cflags dbus-1)
- LIB_OBJS += $(shell pkg-config --libs-only-l dbus-1)
-endif
-
-
all: $(ROOT)
@for target in $(EXTRAS) ; do \
echo $$target ; \
OBJS += klibc_fixups.o
endif
+ifeq ($(DBUS), true)
+ CFLAGS += -DUSE_DBUS
+ CFLAGS += $(shell pkg-config --cflags dbus-1)
+ LIB_OBJS += $(shell pkg-config --libs-only-l dbus-1)
+ OBJS += udev_dbus.o
+endif
+
# header files automatically generated
GEN_HEADERS = udev_version.h
@echo "Built $(RELEASE_NAME).tar.gz"
-ifeq ($(USE_DBUS), true)
+ifeq ($(DBUS), true)
install-dbus-policy:
$(INSTALL) -d $(DESTDIR)$(dbusdir)
$(INSTALL_DATA) udev_sysbus_policy.conf $(DESTDIR)$(dbusdir)