X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile;h=47516b3e371408048f22882946360937976e7c90;hb=fbda4a34d846946bf8ed63deadfd6e65b2299792;hp=1fe5c23f58f5f504b8d9239b95573b9adb80e966;hpb=3efc93cc40464e83cc202b40e6290e8759130ca2;p=elogind.git diff --git a/Makefile b/Makefile index 1fe5c23f5..47516b3e3 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ SENDER = udevsend INFO = udevinfo TESTER = udevtest STARTER = udevstart -VERSION = 046 +VERSION = 051 INSTALL_DIR = /usr/local/bin RELEASE_NAME = $(ROOT)-$(VERSION) LOCAL_CFG_DIR = etc/udev @@ -183,7 +183,7 @@ all: $(ROOT) $(SENDER) $(DAEMON) $(INFO) $(TESTER) $(GEN_CONFIGS) LD="$(LD)" \ SYSFS="$(SYSFS)" \ KERNEL_DIR="$(KERNEL_DIR)" \ - QUIET="@$(PWD)/ccdv" \ + QUIET="$(QUIET)" \ -C $$target $@ ; \ done ; \ @@ -193,7 +193,7 @@ $(CRT0): @if [ ! -r klibc/linux ]; then \ ln -f -s $(KERNEL_DIR) klibc/linux; \ fi - $(MAKE) -C klibc SUBDIRS=klibc + $(MAKE) -C klibc SUBDIRS=klibc TESTS= HEADERS = \ udev.h \ @@ -203,7 +203,7 @@ HEADERS = \ udev_db.h \ udev_sysfs.h \ logging.h \ - selinux.h \ + udev_selinux.h \ list.h SYSFS_OBJS = \ @@ -228,8 +228,10 @@ UDEV_OBJS = \ namedev_parse.o OBJS = \ - libsysfs/sysfs.a \ - udev.a + udev.a \ + libsysfs/sysfs.a + +SYSFS = $(PWD)/libsysfs/sysfs.a ifeq ($(strip $(USE_KLIBC)),true) HEADERS += \ @@ -243,8 +245,13 @@ ifeq ($(strip $(USE_KLIBC)),true) OBJS += klibc_fixups/klibc_fixups.a endif +ifeq ($(strip $(USE_SELINUX)),true) + UDEV_OBJS += udev_selinux.o + LIB_OBJS += -lselinux +endif + ifeq ($(strip $(V)),false) - QUIET=@./ccdv + QUIET=@$(PWD)/ccdv HOST_PROGS=ccdv else QUIET= @@ -282,7 +289,6 @@ udev_version.h: @echo \#define UDEV_CONFIG_DIR \"$(configdir)\" >> $@ @echo \#define UDEV_CONFIG_FILE \"$(configdir)/udev.conf\" >> $@ @echo \#define UDEV_RULES_FILE \"$(configdir)/rules.d\" >> $@ - @echo \#define UDEV_PERMISSION_FILE \"$(configdir)/permissions.d\" >> $@ @echo \#define UDEV_LOG_DEFAULT \"yes\" >> $@ @echo \#define UDEV_BIN \"$(DESTDIR)$(sbindir)/udev\" >> $@ @echo \#define UDEVD_BIN \"$(DESTDIR)$(sbindir)/udevd\" >> $@ @@ -337,7 +343,7 @@ clean: | xargs rm -f -rm -f core $(ROOT) $(GEN_HEADERS) $(GEN_CONFIGS) $(GEN_MANPAGES) $(INFO) $(DAEMON) $(SENDER) $(TESTER) -rm -f ccdv - $(MAKE) -C klibc clean + $(MAKE) -C klibc SUBDIRS=klibc clean @extras="$(EXTRAS)" ; for target in $$extras ; do \ echo $$target ; \ $(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \ @@ -345,7 +351,7 @@ clean: done ; \ spotless: clean - $(MAKE) -C klibc spotless + $(MAKE) -C klibc SUBDIRS=klibc spotless -rm -f klibc/linux DISTFILES = $(shell find . \( -not -name '.' \) -print | grep -v -e CVS -e "\.tar\.gz" -e "\/\." -e releases -e BitKeeper -e SCCS -e test/sys | sort ) @@ -379,7 +385,6 @@ small_release: $(DISTFILES) spotless install-config: $(INSTALL) -d $(DESTDIR)$(configdir)/rules.d - $(INSTALL) -d $(DESTDIR)$(configdir)/permissions.d @if [ ! -r $(DESTDIR)$(configdir)/udev.conf ]; then \ echo $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.conf $(DESTDIR)$(configdir); \ $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.conf $(DESTDIR)$(configdir); \ @@ -388,10 +393,6 @@ install-config: echo $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.rules $(DESTDIR)$(configdir)/rules.d/50-udev.rules; \ $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.rules $(DESTDIR)$(configdir)/rules.d/50-udev.rules; \ fi - @if [ ! -r $(DESTDIR)$(configdir)/permissions.d/50-udev.permissions ]; then \ - echo $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.permissions $(DESTDIR)$(configdir)/permissions.d/50-udev.permissions; \ - $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.permissions $(DESTDIR)$(configdir)/permissions.d/50-udev.permissions; \ - fi install-dev.d: $(INSTALL) -d $(DESTDIR)$(dev_ddir)/default @@ -442,10 +443,8 @@ endif uninstall: uninstall-man uninstall-dev.d - rm $(hotplugdir)/10-udev.hotplug - rm $(configdir)/rules.d/50-udev.rules - - rm $(configdir)/permissions.d/50-udev.permissions - rm $(configdir)/udev.conf - rmdir $(configdir)/rules.d - - rmdir $(configdir)/permissions.d - rmdir $(configdir) - rm $(sbindir)/$(ROOT) - rm $(sbindir)/$(DAEMON)