1 # This file is part of avahi.
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.
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.
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
18 AM_CFLAGS=-I$(top_srcdir)
20 # This cool debug trap works on i386/gcc only
21 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
23 avahiincludedir=$(includedir)/src
25 avahiinclude_HEADERS = \
47 lib_LTLIBRARIES = libavahi.la
75 libavahi_la_SOURCES = \
78 alternative.c alternative.h \
83 simple-watch.c simple-watch.h \
84 thread-watch.c thread-watch.h \
89 timeeventq.c timeeventq.h\
91 server.c internal.h entry.c \
95 response-sched.c response-sched.h \
96 query-sched.c query-sched.h \
97 probe-sched.c probe-sched.h \
98 announce.c announce.h \
101 resolve-host-name.c \
104 browse-service-type.c \
108 rr.c rr.h rr-util.h \
109 core.h lookup.h publish.h \
111 browse-dns-server.c \
114 hashmap.c hashmap.h \
115 wide-area.c wide-area.h \
116 multicast-lookup.c multicast-lookup.h \
117 querier.c querier.h \
118 addr-util.h addr-util.c \
119 domain-util.h domain-util.c \
123 libavahi_la_SOURCES += \
124 iface-linux.c iface-linux.h \
128 libavahi_la_SOURCES += \
129 iface-pfroute.c iface-pfroute.h
131 libavahi_la_SOURCES += \
136 libavahi_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -DAVAHI_LOCALEDIR=\"$(avahilocaledir)\"
137 libavahi_la_LIBADD = $(AM_LDADD) $(PTHREAD_CFLAGS) $(PTHREAD_LIBS) $(INTLLIBS)
138 libavahi_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_VERSION_INFO)
140 strlst_test_SOURCES = strlst-test.c
141 strlst_test_CFLAGS = $(AM_CFLAGS)
142 strlst_test_LDADD = $(AM_LDADD) libavahi.la
144 alternative_test_SOURCES = alternative-test.c
145 alternative_test_CFLAGS = $(AM_CFLAGS)
146 alternative_test_LDADD = $(AM_LDADD) libavahi.la
148 domain_test_SOURCES = domain-test.c
149 domain_test_CFLAGS = $(AM_CFLAGS)
150 domain_test_LDADD = $(AM_LDADD) libavahi.la
152 watch_test_SOURCES = watch-test.c
153 watch_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
154 watch_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) libavahi.la
156 watch_test_thread_SOURCES = $(watch_test_SOURCES)
157 watch_test_thread_CFLAGS = $(watch_test_CFLAGS) -DUSE_THREAD
158 watch_test_thread_LDADD = $(watch_test_LDADD) libavahi.la
160 timeval_test_SOURCES = timeval-test.c
161 timeval_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
162 timeval_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) libavahi.la
164 utf8_test_SOURCES = utf8-test.c
165 utf8_test_CFLAGS = $(AM_CFLAGS)
166 utf8_test_LDADD = $(AM_LDADD) libavahi.la
168 prioq_test_SOURCES = prioq-test.c
169 prioq_test_CFLAGS = $(AM_CFLAGS)
170 prioq_test_LDADD = $(AM_LDADD) libavahi.la
172 avahi_test_SOURCES = avahi-test.c
173 avahi_test_CFLAGS = $(AM_CFLAGS)
174 avahi_test_LDADD = $(AM_LDADD) libavahi.la
176 update_test_SOURCES = update-test.c
177 update_test_CFLAGS = $(AM_CFLAGS)
178 update_test_LDADD = $(AM_LDADD) libavahi.la
180 querier_test_SOURCES = querier-test.c
181 querier_test_CFLAGS = $(AM_CFLAGS)
182 querier_test_LDADD = $(AM_LDADD) libavahi.la
184 conformance_test_SOURCES = conformance-test.c
185 conformance_test_CFLAGS = $(AM_CFLAGS)
186 conformance_test_LDADD = $(AM_LDADD) libavahi.la
188 avahi_reflector_SOURCES = avahi-reflector.c
189 avahi_reflector_CFLAGS = $(AM_CFLAGS)
190 avahi_reflector_LDADD = $(AM_LDADD) libavahi.la
192 dns_test_SOURCES = dns-test.c
193 dns_test_CFLAGS = $(AM_CFLAGS)
194 dns_test_LDADD = $(AM_LDADD) libavahi.la
196 dns_spin_test_SOURCES = dns-spin-test.c
197 dns_spin_test_CFLAGS = $(AM_CFLAGS)
198 dns_spin_test_LDADD = $(AM_LDADD) libavahi.la
200 timeeventq_test_SOURCES = timeeventq-test.c
201 timeeventq_test_CFLAGS = $(AM_CFLAGS)
202 timeeventq_test_LDADD = $(AM_LDADD) libavahi.la
204 hashmap_test_SOURCES = hashmap-test.c
205 hashmap_test_CFLAGS = $(AM_CFLAGS)
206 hashmap_test_LDADD = $(AM_LDADD) libavahi.la
209 libtool --mode=execute valgrind ./avahi-test
212 libtool --mode=execute gdb ./avahi-test