avahi_compat_libdns_sd_HEADERS = dns_sd.h
-lib_LTLIBRARIES = libavahi-compat-libdns_sd.la
+lib_LTLIBRARIES = libavahi-compat-libdns_sd.la libdns_sd.la
if ENABLE_TESTS
noinst_PROGRAMS = txt-test
libavahi_compat_libdns_sd_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
libavahi_compat_libdns_sd_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO) $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la
+libdns_sd_la_SOURCES =
+libdns_sd_la_CFLAGS = $(AM_CFLAGS)
+libdns_sd_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO) libavahi-compat-libdns_sd.la
+
txt_test_SOURCES = \
dns_sd.h \
txt.c \