+CLEANFILES = $(systemdsystemunit_DATA)
+
+if ENABLE_CHROOT
+
+avahi_daemon_SOURCES += \
+ chroot.c chroot.h \
+ caps.c caps.h
+
+avahi_daemon_LDADD += -lcap
+
+endif
+
+if HAVE_DLOPEN
+avahi_daemon_LDADD += -ldl
+endif
+
+if HAVE_DBUS
+
+dbusservicedir=$(DBUS_SYS_DIR)
+
+avahi_daemon_SOURCES += \
+ dbus-protocol.c dbus-protocol.h \
+ dbus-util.c dbus-util.h \
+ dbus-internal.h \
+ dbus-async-address-resolver.c \
+ dbus-async-host-name-resolver.c \
+ dbus-async-service-resolver.c \
+ dbus-domain-browser.c \
+ dbus-entry-group.c \
+ dbus-service-browser.c \
+ dbus-service-type-browser.c \
+ dbus-sync-address-resolver.c \
+ dbus-sync-host-name-resolver.c \
+ dbus-sync-service-resolver.c \
+ dbus-record-browser.c \
+ ../avahi-common/dbus.c ../avahi-common/dbus.h \
+ ../avahi-common/dbus-watch-glue.c ../avahi-common/dbus-watch-glue.h
+
+avahi_daemon_LDADD += \
+ $(DBUS_LIBS)
+
+avahi_daemon_CFLAGS += $(DBUS_CFLAGS) -DDBUS_SYSTEM_BUS_DEFAULT_ADDRESS=\"$(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS)\"
+
+dist_dbusservice_DATA = avahi-dbus.conf
+
+dist_introspection_DATA = \
+ org.freedesktop.Avahi.Server.xml \
+ org.freedesktop.Avahi.EntryGroup.xml \
+ org.freedesktop.Avahi.DomainBrowser.xml \
+ org.freedesktop.Avahi.ServiceTypeBrowser.xml \
+ org.freedesktop.Avahi.ServiceBrowser.xml \
+ org.freedesktop.Avahi.ServiceResolver.xml \
+ org.freedesktop.Avahi.AddressResolver.xml \
+ org.freedesktop.Avahi.HostNameResolver.xml \
+ org.freedesktop.Avahi.RecordBrowser.xml
+
+endif
+endif
+endif
+
+EXTRA_DIST = \
+ avahi-daemon.conf \
+ example.service \
+ hosts \
+ example.service \
+ introspect.dtd \
+ introspect.xsl \
+ avahi-daemon.service.in \
+ avahi-daemon.socket.in