chiark / gitweb /
sd-dns: coding style cleanup
[elogind.git] / Makefile.am
index fcde54e379f126c9ba0d3eebff08984d3776ae31..b4bb6e1e31a4304ea3e3c3936bbbded4693d7e9b 100644 (file)
@@ -665,6 +665,35 @@ test_rtnl_LDADD = \
 tests += \
        test-rtnl
 
+# ------------------------------------------------------------------------------
+noinst_LTLIBRARIES += \
+       libsystemd-dns.la
+
+libsystemd_dns_la_SOURCES = \
+       src/systemd/sd-dns.h \
+       src/libsystemd-bus/sd-dns.c \
+       src/libsystemd-bus/dns-util.h
+
+libsystemd_dns_la_LIBADD = \
+       libsystemd-shared.la
+
+libsystemd_dns_la_CFLAGS = \
+       -pthread
+
+test_dns_SOURCES = \
+       src/libsystemd-bus/test-dns.c \
+       src/systemd/sd-dns.h
+
+test_dns_LDADD = \
+       libsystemd-dns.la
+
+test_dns_LDFLAGS = \
+       -lresolv \
+       -pthread
+
+tests += \
+        test-dns
+
 # ------------------------------------------------------------------------------
 noinst_LTLIBRARIES += \
        libsystemd-shared.la
@@ -4078,6 +4107,7 @@ systemd_networkd_LDADD = \
        libsystemd-id128-internal.la \
        libsystemd-rtnl.la \
        libsystemd-dhcp.la \
+       libsystemd-label.la \
        libsystemd-shared.la
 
 nodist_systemunit_DATA += \
@@ -4104,6 +4134,7 @@ test_network_LDADD = \
        libsystemd-daemon-internal.la \
        libsystemd-rtnl.la \
        libsystemd-dhcp.la \
+       libsystemd-label.la \
        libsystemd-shared.la
 
 tests += \
@@ -5052,3 +5083,7 @@ tests += \
 
 cppcheck:
        cppcheck --enable=all -q $(top_srcdir)
+
+# Used to extract compile flags for YCM.
+print-%:
+       @echo $($*)