chiark / gitweb /
condense assignment and path_kill_slashes calls
[elogind.git] / Makefile.am
index 0ad1729c0b2f0eed7d06c0e3e4bc2a6d814de3b3..90b9b93c63c7f78a445253490a7c1578f8f79e7f 100644 (file)
@@ -1176,8 +1176,12 @@ manual_tests += \
        test-install \
        test-watchdog \
        test-log \
-       test-ipcrm \
+       test-ipcrm
+
+if HAVE_KMOD
+manual_tests += \
        test-rtnl-manual
+endif
 
 tests += \
        test-job-type \
@@ -1402,10 +1406,14 @@ test_ipcrm_LDADD = \
 test_rtnl_manual_SOURCES = \
        src/test/test-rtnl-manual.c
 
+test_rtnl_manual_CFLAGS = \
+       $(AM_CFLAGS) \
+       $(KMOD_CFLAGS)
+
 test_rtnl_manual_LDADD = \
        libsystemd-internal.la \
        libsystemd-shared.la \
-       -lkmod
+       $(KMOD_LIBS)
 
 test_ellipsize_SOURCES = \
        src/test/test-ellipsize.c
@@ -4054,6 +4062,10 @@ libnss_myhostname_la_LDFLAGS = \
        -shared \
        -shrext .so.2
 
+libnss_myhostname_la_LIBADD = \
+       libsystemd-shared.la \
+       libsystemd-internal.la
+
 lib_LTLIBRARIES += \
        libnss_myhostname.la
 endif