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)/avahi-core
25 avahiinclude_HEADERS = \
54 libavahi_core_la_SOURCES = \
55 timeeventq.c timeeventq.h\
57 server.c internal.h entry.c \
61 response-sched.c response-sched.h \
62 query-sched.c query-sched.h \
63 probe-sched.c probe-sched.h \
64 announce.c announce.h \
70 browse-service-type.c \
75 core.h lookup.h publish.h \
81 wide-area.c wide-area.h \
82 multicast-lookup.c multicast-lookup.h \
84 addr-util.h addr-util.c \
85 domain-util.h domain-util.c \
89 libavahi_core_la_SOURCES += \
90 iface-linux.c iface-linux.h \
94 libavahi_core_la_SOURCES += \
95 iface-pfroute.c iface-pfroute.h
97 libavahi_core_la_SOURCES += \
102 libavahi_core_la_CFLAGS = $(AM_CFLAGS)
103 libavahi_core_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
104 libavahi_core_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_CORE_VERSION_INFO)
106 prioq_test_SOURCES = \
109 prioq_test_CFLAGS = $(AM_CFLAGS)
110 prioq_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
112 avahi_test_SOURCES = \
114 avahi_test_CFLAGS = $(AM_CFLAGS)
115 avahi_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
117 update_test_SOURCES = \
119 update_test_CFLAGS = $(AM_CFLAGS)
120 update_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
122 querier_test_SOURCES = \
124 querier_test_CFLAGS = $(AM_CFLAGS)
125 querier_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
127 conformance_test_SOURCES = \
129 conformance_test_CFLAGS = $(AM_CFLAGS)
130 conformance_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
132 avahi_reflector_SOURCES = \
134 avahi_reflector_CFLAGS = $(AM_CFLAGS)
135 avahi_reflector_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
143 hashmap.c hashmap.h \
144 domain-util.c domain-util.h \
145 addr-util.c addr-util.h
146 dns_test_CFLAGS = $(AM_CFLAGS)
147 dns_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
149 dns_spin_test_SOURCES = \
151 dns_spin_test_CFLAGS = $(AM_CFLAGS)
152 dns_spin_test_LDADD = $(AM_LDADD) libavahi-core.la
154 timeeventq_test_SOURCES = \
156 timeeventq.h timeeventq.c \
159 timeeventq_test_CFLAGS = $(AM_CFLAGS)
160 timeeventq_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
162 hashmap_test_SOURCES = \
164 hashmap.h hashmap.c \
166 hashmap_test_CFLAGS = $(AM_CFLAGS)
167 hashmap_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
170 libtool --mode=execute valgrind ./avahi-test
173 libtool --mode=execute gdb ./avahi-test