chiark / gitweb /
[PATCH] selinux: cleanup udev integration
[elogind.git] / Makefile
index ece518f53eb5105bb9f3eeb36ee5053c5f1e5c4a..47516b3e371408048f22882946360937976e7c90 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -203,7 +203,7 @@ HEADERS = \
        udev_db.h       \
        udev_sysfs.h    \
        logging.h       \
-       selinux.h       \
+       udev_selinux.h  \
        list.h
 
 SYSFS_OBJS = \
@@ -245,6 +245,11 @@ 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=@$(PWD)/ccdv
        HOST_PROGS=ccdv