X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-daemon%2FMakefile.am;h=62c2cd3aad0e94408efc5c9b2bfdb46d34a4b731;hb=1b872b15e92cc71d4ba17c1d6b0b2fe3ccf50fff;hp=029a6d7e0c245020540664dbb4b1c8175c2111bf;hpb=969d343114a3ad07e9f1617ec1df465ca501d222;p=catta diff --git a/avahi-daemon/Makefile.am b/avahi-daemon/Makefile.am index 029a6d7..62c2cd3 100644 --- a/avahi-daemon/Makefile.am +++ b/avahi-daemon/Makefile.am @@ -17,27 +17,90 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. -AM_CFLAGS=-I$(top_srcdir) -D_GNU_SOURCE +pkgsysconfdir=$(sysconfdir)/avahi +servicedir=$(pkgsysconfdir)/services +introspectiondir=$(pkgdatadir)/introspection +dbusservicedir=$(DBUS_SYS_DIR) + +AM_CFLAGS= \ + -I$(top_srcdir) \ + -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 AM_CFLAGS+=$(GLIB20_CFLAGS) -AM_LDADD=$(GLIB20_LIBS) +AM_LDADD+=$(GLIB20_LIBS) +# libdaemon +AM_CFLAGS+=$(LIBDAEMON_CFLAGS) +AM_LDADD+=$(LIBDAEMON_LIBS) + +if ENABLE_DBUS # DBUS AM_CFLAGS+=$(DBUS_CFLAGS) AM_LDADD+=$(DBUS_LIBS) +endif # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' +sbin_PROGRAMS = \ + avahi-daemon + +avahi_daemon_SOURCES = \ + main.c main.h \ + simple-protocol.c simple-protocol.h \ + static-services.c static-services.h + +pkgsysconf_DATA = \ + avahi-daemon.conf + +service_DATA = \ + 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 + if ENABLE_DBUS -bin_PROGRAMS = \ - avahi +avahi_daemon_SOURCES += dbus-protocol.c dbus-protocol.h -avahi_SOURCES = \ - main.c \ - simple-protocol.c +dbusservice_DATA = avahi-dbus.conf + +introspection_DATA = \ + Server.introspect \ + EntryGroup.introspect \ + DomainBrowser.introspect \ + ServiceTypeBrowser.introspect \ + ServiceBrowser.introspect -avahi_CFLAGS = $(AM_CFLAGS) -avahi_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/libavahi-common.la endif + +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