X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-daemon%2FMakefile.am;h=491e5cefd6a5bba1309fd26c36c51806521e00e6;hb=f8c479234af6b676027df4fb6b38ce8e22949049;hp=5f561dbe209320e960ccee5696cbd1423fb58eda;hpb=ad7b145ebe82c3a53632eaa6ec75b014d91a7bea;p=catta diff --git a/avahi-daemon/Makefile.am b/avahi-daemon/Makefile.am index 5f561db..491e5ce 100644 --- a/avahi-daemon/Makefile.am +++ b/avahi-daemon/Makefile.am @@ -19,12 +19,17 @@ pkgsysconfdir=$(sysconfdir)/avahi servicedir=$(pkgsysconfdir)/services +introspectiondir=$(pkgdatadir)/introspection +dbusservicedir=$(DBUS_SYS_DIR) AM_CFLAGS= \ -I$(top_srcdir) \ - -D_GNU_SOURCE \ - -DAVAHI_SERVICE_DIRECTORY=\"$(servicedir)\" \ - -DAVAHI_CONFIG_FILE=\"$(pkgsysconfdir)/avahi.conf\" + -DAVAHI_DAEMON_RUNTIME_DIR=\"$(avahi_runtime_dir)/avahi-daemon/\" \ + -DAVAHI_SOCKET=\"$(avahi_socket)\" \ + -DAVAHI_SERVICE_DIR=\"$(servicedir)\" \ + -DAVAHI_CONFIG_FILE=\"$(pkgsysconfdir)/avahi-daemon.conf\" \ + -DAVAHI_DBUS_INTROSPECTION_DIR=\"$(introspectiondir)\" + AM_LDADD=-lexpat # GLIB 2.0 @@ -35,7 +40,6 @@ AM_LDADD+=$(GLIB20_LIBS) AM_CFLAGS+=$(LIBDAEMON_CFLAGS) AM_LDADD+=$(LIBDAEMON_LIBS) - if ENABLE_DBUS # DBUS AM_CFLAGS+=$(DBUS_CFLAGS) @@ -45,29 +49,60 @@ endif # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' -bin_PROGRAMS = \ - avahi +sbin_PROGRAMS = \ + avahi-daemon -avahi_SOURCES = \ +avahi_daemon_SOURCES = \ main.c main.h \ simple-protocol.c simple-protocol.h \ static-services.c static-services.h pkgsysconf_DATA = \ - avahi.conf + avahi-daemon.conf service_DATA = \ - example.service + ssh.service pkgdata_DATA = \ avahi-service.dtd +EXTRA_DIST = \ + avahi-service.dtd \ + avahi-daemon.conf \ + example.service \ + dbus-test.py \ + avahi-dbus.conf \ + Server.introspect \ + EntryGroup.introspect \ + DomainBrowser.introspect \ + ServiceTypeBrowser.introspect \ + ServiceBrowser.introspect \ + ssh.service \ + example.service \ + introspect.dtd \ + introspect.xsl + if ENABLE_DBUS -avahi_SOURCES += dbus-protocol.c dbus-protocol.h +avahi_daemon_SOURCES += dbus-protocol.c dbus-protocol.h + +dbusservice_DATA = avahi-dbus.conf + +introspection_DATA = \ + Server.introspect \ + EntryGroup.introspect \ + DomainBrowser.introspect \ + ServiceTypeBrowser.introspect \ + ServiceBrowser.introspect + endif -avahi_CFLAGS = $(AM_CFLAGS) -avahi_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/libavahi-common.la +avahi_daemon_CFLAGS = $(AM_CFLAGS) +avahi_daemon_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/libavahi-common.la xmllint: xmllint --noout --valid example.service + xmllint --noout --valid Server.introspect + xmllint --noout --valid EntryGroup.introspect + xmllint --noout --valid DomainBrowser.introspect + xmllint --noout --valid ServiceTypeBrowser.introspect + xmllint --noout --valid ServiceBrowser.introspect