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 23avahiincludedir=$(includedir)/avahi-core 24 25avahiinclude_HEADERS = \ 26 core.h \ 27 log.h \ 28 rr.h \ 29 publish.h \ 30 lookup.h 31 32lib_LTLIBRARIES = \ 33 libavahi-core.la 34 35if ENABLE_TESTS 36noinst_PROGRAMS = \ 37 prioq-test \ 38 avahi-test \ 39 conformance-test \ 40 avahi-reflector \ 41 dns-test \ 42 dns-spin-test \ 43 timeeventq-test \ 44 hashmap-test \ 45 querier-test \ 46 update-test 47 48TESTS = \ 49 dns-spin-test \ 50 dns-test \ 51 hashmap-test 52endif 53 54libavahi_core_la_SOURCES = \ 55 timeeventq.c timeeventq.h\ 56 iface.c iface.h \ 57 server.c internal.h entry.c \ 58 prioq.c prioq.h \ 59 cache.c cache.h \ 60 socket.c socket.h \ 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 \ 65 browse.c browse.h \ 66 rrlist.c rrlist.h \ 67 resolve-host-name.c \ 68 resolve-address.c \ 69 browse-domain.c \ 70 browse-service-type.c \ 71 browse-service.c \ 72 resolve-service.c \ 73 dns.c dns.h \ 74 rr.c rr.h rr-util.h \ 75 core.h lookup.h publish.h \ 76 log.c log.h \ 77 browse-dns-server.c \ 78 fdutil.h fdutil.c \ 79 util.c util.h \ 80 hashmap.c hashmap.h \ 81 wide-area.c wide-area.h \ 82 multicast-lookup.c multicast-lookup.h \ 83 querier.c querier.h \ 84 addr-util.h addr-util.c \ 85 domain-util.h domain-util.c \ 86 dns-srv-rr.h \ 87 llmnr-querier.c llmnr-querier.h \ 88 llmnr-query-sched.c llmnr-query-sched.h \ 89 verify.c verify.h \ 90 llmnr-lookup.c llmnr-lookup.h \ 91 llmnr-response.c llmnr-response.h \ 92 llmnr-server.c 93 94if HAVE_NETLINK 95libavahi_core_la_SOURCES += \ 96 iface-linux.c iface-linux.h \ 97 netlink.c netlink.h 98else 99if HAVE_PF_ROUTE 100libavahi_core_la_SOURCES += \ 101 iface-pfroute.c iface-pfroute.h 102else 103libavahi_core_la_SOURCES += \ 104 iface-none.c 105endif 106endif 107 108libavahi_core_la_CFLAGS = $(AM_CFLAGS) 109libavahi_core_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la 110libavahi_core_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_CORE_VERSION_INFO) 111 112prioq_test_SOURCES = \ 113 prioq-test.c \ 114 prioq.c prioq.h 115prioq_test_CFLAGS = $(AM_CFLAGS) 116prioq_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la 117 118avahi_test_SOURCES = \ 119 avahi-test.c 120avahi_test_CFLAGS = $(AM_CFLAGS) 121avahi_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la 122 123update_test_SOURCES = \ 124 update-test.c 125update_test_CFLAGS = $(AM_CFLAGS) 126update_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la 127 128querier_test_SOURCES = \ 129 querier-test.c 130querier_test_CFLAGS = $(AM_CFLAGS) 131querier_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la 132 133conformance_test_SOURCES = \ 134 conformance-test.c 135conformance_test_CFLAGS = $(AM_CFLAGS) 136conformance_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la 137 138avahi_reflector_SOURCES = \ 139 avahi-reflector.c 140avahi_reflector_CFLAGS = $(AM_CFLAGS) 141avahi_reflector_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la 142 143dns_test_SOURCES = \ 144 dns.c dns.h \ 145 dns-test.c \ 146 log.c log.h \ 147 util.c util.h \ 148 rr.c rr.h \ 149 hashmap.c hashmap.h \ 150 domain-util.c domain-util.h \ 151 addr-util.c addr-util.h 152dns_test_CFLAGS = $(AM_CFLAGS) 153dns_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la 154 155dns_spin_test_SOURCES = \ 156 dns-spin-test.c 157dns_spin_test_CFLAGS = $(AM_CFLAGS) 158dns_spin_test_LDADD = $(AM_LDADD) libavahi-core.la 159 160timeeventq_test_SOURCES = \ 161 timeeventq-test.c \ 162 timeeventq.h timeeventq.c \ 163 prioq.h prioq.c \ 164 log.c log.h 165timeeventq_test_CFLAGS = $(AM_CFLAGS) 166timeeventq_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la 167 168hashmap_test_SOURCES = \ 169 hashmap-test.c \ 170 hashmap.h hashmap.c \ 171 util.h util.c 172hashmap_test_CFLAGS = $(AM_CFLAGS) 173hashmap_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la 174 175valgrind: avahi-test 176 libtool --mode=execute valgrind ./avahi-test 177 178gdb: avahi-test 179 libtool --mode=execute gdb ./avahi-test 180