• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/avahi-0.6.31/avahi-utils/
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	cd $(DESTDIR)/$(bindir) && \
58		rm -f avahi-resolve-host-name avahi-resolve-address avahi-browse-domains avahi-publish-address avahi-publish-service && \
59		$(LN_S) avahi-resolve avahi-resolve-host-name && \
60		$(LN_S) avahi-resolve avahi-resolve-address && \
61		$(LN_S) avahi-browse avahi-browse-domains && \
62		$(LN_S) avahi-publish avahi-publish-address && \
63		$(LN_S) avahi-publish avahi-publish-service
64
65endif
66