1# This file is part of avahi. 2# 3# avahi is free software; you can redistribute it and/or modify it 4# under the terms of the GNU Lesser General Public License as 5# published by the Free Software Foundation; either version 2 of the 6# License, or (at your option) any later version. 7# 8# avahi is distributed in the hope that it will be useful, but WITHOUT 9# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 10# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 11# License for more details. 12# 13# You should have received a copy of the GNU Lesser General Public 14# License along with avahi; if not, write to the Free Software 15# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 16# USA. 17 18AM_CFLAGS=-I$(top_srcdir) 19 20# This cool debug trap works on i386/gcc only 21AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' 22 23pkglibdatadir=$(libdir)/avahi 24 25if HAVE_DBUS 26 27bin_PROGRAMS = avahi-browse avahi-resolve avahi-publish avahi-set-host-name 28 29avahi_browse_SOURCES = avahi-browse.c sigint.c sigint.h 30avahi_browse_CFLAGS = $(AM_CFLAGS) 31avahi_browse_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la 32 33if HAVE_GDBM 34avahi_browse_SOURCES += stdb.h stdb.c 35avahi_browse_CFLAGS += -DDATABASE_FILE=\"$(pkglibdatadir)/service-types.db\" 36avahi_browse_LDADD += -lgdbm 37endif 38 39if HAVE_DBM 40avahi_browse_SOURCES += stdb.h stdb.c 41avahi_browse_CFLAGS += -DDATABASE_FILE=\"$(pkglibdatadir)/service-types.db\" 42endif 43 44avahi_resolve_SOURCES = avahi-resolve.c sigint.c sigint.h 45avahi_resolve_CFLAGS = $(AM_CFLAGS) 46avahi_resolve_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la 47 48avahi_publish_SOURCES = avahi-publish.c sigint.c sigint.h 49avahi_publish_CFLAGS = $(AM_CFLAGS) 50avahi_publish_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la 51 52avahi_set_host_name_SOURCES = avahi-set-host-name.c sigint.c sigint.h 53avahi_set_host_name_CFLAGS = $(AM_CFLAGS) 54avahi_set_host_name_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la 55 56install-exec-local: 57 $(MKDIR_P) $(DESTDIR)/$(bindir) && \ 58 cd $(DESTDIR)/$(bindir) && \ 59 rm -f avahi-resolve-host-name avahi-resolve-address avahi-browse-domains avahi-publish-address avahi-publish-service && \ 60 $(LN_S) avahi-resolve avahi-resolve-host-name && \ 61 $(LN_S) avahi-resolve avahi-resolve-address && \ 62 $(LN_S) avahi-browse avahi-browse-domains && \ 63 $(LN_S) avahi-publish avahi-publish-address && \ 64 $(LN_S) avahi-publish avahi-publish-service 65 66endif 67 68Android.mk: Makefile.am 69 androgenizer -:PROJECT avahi -:EXECUTABLE avahi-browse -:TAGS eng debug \ 70 -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \ 71 -:SOURCES $(avahi_browse_SOURCES) \ 72 -:CFLAGS $(DEFS) $(CFLAGS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 73 $(avahi_browse_CFLAGS) \ 74 -:CPPFLAGS $(CPPFLAGS) $(AM_CPPFLAGS) \ 75 -:LDFLAGS $(avahi_browse_LDADD) -ldbus-1 \ 76 > $@ 77