chiark / gitweb /
libudev: add selinux
[elogind.git] / extras / fstab_import / Makefile.am
index 0ee7efb..c4fbdce 100644 (file)
@@ -8,14 +8,23 @@ dist_udevrules_DATA = \
 
 AM_CPPFLAGS = \
        -DSYSCONFDIR=\""$(sysconfdir)"\" \
-       -DUDEV_PREFIX=\""$(udev_prefix)"\"
+       -DUDEV_PREFIX=\""$(udev_prefix)"\" \
+       -D_LIBUDEV_COMPILATION
 
 fstab_import_SOURCES = \
        fstab_import.c \
+       ../../udev/lib/libudev.h \
+       ../../udev/lib/libudev.c \
+       ../../udev/udev_sysfs.c \
        ../../udev/udev_sysdeps.c \
        ../../udev/udev_utils.c \
        ../../udev/udev_utils_string.c
 
+if USE_SELINUX
+fstab_import_LDADD = \
+       $(SELINUX_LIBS)
+endif
+
 distclean-local:
        rm -f Makefile.in