X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-utils%2FMakefile.am;h=2066e4f8e8cd4e37829dcf7dac6ad4504d055df3;hb=93293a573bda5eae15813b4c771863f740a01dd1;hp=0079795d9b981436f8dcfcd3b74cbfb928388042;hpb=7c739f063e94aba0fca5e161597b87a9189fc609;p=catta diff --git a/avahi-utils/Makefile.am b/avahi-utils/Makefile.am index 0079795..2066e4f 100644 --- a/avahi-utils/Makefile.am +++ b/avahi-utils/Makefile.am @@ -17,23 +17,41 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. -SUBDIRS=avahi +AM_CFLAGS=-I$(top_srcdir) -pythonscripts = \ - avahi-publish-address \ - avahi-publish-service \ - avahi-dump-all \ - avahi-discover +# This cool debug trap works on i386/gcc only +AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' EXTRA_DIST = \ avahi-publish-address.in \ avahi-publish-service.in \ - avahi-dump-all.in \ - avahi-discover.in + avahi-bookmarks.in \ + avahi-discover.in \ + avahi-discover.desktop.in + +SUBDIRS=avahi if HAVE_PYTHON -bin_SCRIPTS = $(pythonscripts) -endif +if HAVE_PYTHON_DBUS +if HAVE_PYGTK + +pythonscripts = \ + avahi-publish-address \ + avahi-publish-service \ + avahi-bookmarks \ + avahi-discover + +desktopdir = $(datadir)/applications +desktop_DATA = avahi-discover.desktop + +avahi-discover.desktop: avahi-discover.desktop.in + sed -e 's,@bindir\@,$(bindir),g' $< > $@ + chmod +x $@ + +avahi-discover: avahi-discover.in + sed -e 's,@PYTHON\@,$(PYTHON),g' \ + -e 's,@interfacesdir\@,$(interfacesdir),g' $< > $@ + chmod +x $@ avahi-publish-address: avahi-publish-address.in sed -e 's,@PYTHON\@,$(PYTHON),g' $< > $@ @@ -43,13 +61,33 @@ avahi-publish-service: avahi-publish-service.in sed -e 's,@PYTHON\@,$(PYTHON),g' $< > $@ chmod +x $@ -avahi-dump-all: avahi-dump-all.in +avahi-bookmarks: avahi-bookmarks.in sed -e 's,@PYTHON\@,$(PYTHON),g' $< > $@ chmod +x $@ -avahi-discover: avahi-discover.in - sed -e 's,@PYTHON\@,$(PYTHON),g' \ - -e 's,@interfacesdir\@,$(interfacesdir),g' $< > $@ - chmod +x $@ +bin_SCRIPTS = $(pythonscripts) +CLEANFILES = $(pythonscripts) $(desktop_DATA) + +endif +endif +endif + +if HAVE_DBUS + +bin_PROGRAMS = avahi-browse avahi-resolve-host-name + +avahi_browse_SOURCES = avahi-browse.c sigint.c sigint.h +avahi_browse_CFLAGS = $(AM_CFLAGS) +avahi_browse_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la -CLEANFILES = $(pythonscripts) +if HAVE_GDBM +avahi_browse_SOURCES += stdb.h stdb.c +avahi_browse_CFLAGS += -DDATABASE_FILE=\"$(pkgdatadir)/service-types.db\" +avahi_browse_LDADD += -lgdbm +endif + +avahi_resolve_host_name_SOURCES = avahi-resolve-host-name.c sigint.c sigint.h +avahi_resolve_host_name_CFLAGS = $(AM_CFLAGS) +avahi_resolve_host_name_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la + +endif