X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-utils%2FMakefile.am;h=c38efbfce715dfdf431c33c1372e598f6584ce10;hb=d8260fdf4310e135f301d0b8296aeffa02f5f494;hp=1e10f2592e8a87fef8433e5301220aece2ce7f4e;hpb=bcdeedc94555d5dfb023b5935b003412f535248c;p=catta diff --git a/avahi-utils/Makefile.am b/avahi-utils/Makefile.am index 1e10f25..c38efbf 100644 --- a/avahi-utils/Makefile.am +++ b/avahi-utils/Makefile.am @@ -17,10 +17,14 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. +AM_CFLAGS=-I$(top_srcdir) + +# 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-browse.in \ avahi-bookmarks.in \ avahi-resolve-host-name.in \ avahi-resolve-address.in \ @@ -36,7 +40,6 @@ if HAVE_PYGTK pythonscripts = \ avahi-publish-address \ avahi-publish-service \ - avahi-browse \ avahi-bookmarks \ avahi-resolve-host-name \ avahi-resolve-address \ @@ -62,10 +65,6 @@ avahi-publish-service: avahi-publish-service.in sed -e 's,@PYTHON\@,$(PYTHON),g' $< > $@ chmod +x $@ -avahi-browse: avahi-browse.in - sed -e 's,@PYTHON\@,$(PYTHON),g' $< > $@ - chmod +x $@ - avahi-bookmarks: avahi-bookmarks.in sed -e 's,@PYTHON\@,$(PYTHON),g' $< > $@ chmod +x $@ @@ -84,3 +83,19 @@ CLEANFILES = $(pythonscripts) $(desktop_DATA) endif endif endif + +if HAVE_DBUS + +bin_PROGRAMS = avahi-browse + +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 + +if HAVE_GDBM +avahi_browse_SOURCES += stdb.h stdb.c +avahi_browse_CFLAGS += -DDATABASE_FILE=\"$(pkgdatadir)/service-types.db\" +avahi_browse_LDADD += -lgdbm +endif + +endif