• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/avahi-0.6.31/avahi-compat-howl/
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
23SUBDIRS = . samples
24
25if HAVE_DBUS
26if ENABLE_COMPAT_HOWL
27
28avahi_compat_howldir=$(includedir)/avahi-compat-howl
29avahi_compat_howl_rendezvousdir=$(avahi_compat_howldir)/rendezvous
30avahi_compat_howl_corbydir=$(avahi_compat_howldir)/corby
31avahi_compat_howl_discoverydir=$(avahi_compat_howldir)/discovery
32avahi_compat_howl_saltdir=$(avahi_compat_howldir)/salt
33
34avahi_compat_howl_HEADERS = \
35	include/howl.h
36
37avahi_compat_howl_rendezvous_HEADERS = \
38	include/rendezvous/rendezvous.h \
39	include/rendezvous/text_record.h
40
41avahi_compat_howl_corby_HEADERS = \
42	include/corby/message.h \
43	include/corby/object.h \
44	include/corby/orb.h \
45	include/corby/corby.h \
46	include/corby/channel.h \
47	include/corby/buffer.h
48
49avahi_compat_howl_discovery_HEADERS = \
50	include/discovery/discovery.h \
51	include/discovery/text_record.h
52
53avahi_compat_howl_salt_HEADERS = \
54	include/salt/socket.h \
55	include/salt/address.h \
56	include/salt/platform.h \
57	include/salt/signal.h \
58	include/salt/interface.h \
59	include/salt/salt.h \
60	include/salt/time.h \
61	include/salt/debug.h
62
63HOWLHEADERS = \
64	$(avahi_compat_howl_HEADERS) \
65	$(avahi_compat_howl_rendezvous_HEADERS) \
66	$(avahi_compat_howl_corby_HEADERS) \
67	$(avahi_compat_howl_discovery_HEADERS) \
68	$(avahi_compat_howl_salt_HEADERS)
69
70lib_LTLIBRARIES = libhowl.la
71
72if ENABLE_TESTS
73noinst_PROGRAMS = address-test text-test browse-domain-test
74endif
75
76libhowl_la_SOURCES = \
77	$(HOWLHEADERS) \
78	warn.c warn.h \
79	unsupported.c \
80	address.c \
81	text.c \
82	compat.c
83libhowl_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
84libhowl_la_LDFLAGS = $(AM_LDFLAGS)  -version-info $(LIBAVAHI_COMPAT_HOWL_VERSION_INFO) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la
85
86address_test_SOURCES = \
87	$(HOWLHEADERS) \
88	address.c \
89	address-test.c \
90	warn.c warn.h
91address_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
92address_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la
93
94text_test_SOURCES = \
95	$(HOWLHEADERS) \
96	text.c \
97	text-test.c \
98	warn.c warn.h
99text_test_CFLAGS = $(AM_CFLAGS)  $(PTHREAD_CFLAGS) -I $(srcdir)/include
100text_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la
101
102browse_domain_test_SOURCES = \
103	$(HOWLHEADERS) \
104	browse-domain-test.c
105browse_domain_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
106browse_domain_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) libhowl.la
107
108endif
109endif
110