]> git.meshlink.io Git - catta/blob - avahi-core/Makefile.am
* add the first bits of a mDNS reflector
[catta] / avahi-core / Makefile.am
1 # $Id$
2 #
3 # This file is part of avahi.
4
5 # avahi is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation; either version 2 of the
8 # License, or (at your option) any later version.
9 #
10 # avahi is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13 # License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with avahi; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 # USA.
19
20 AM_CFLAGS=-I$(top_srcdir) -D_GNU_SOURCE
21
22 # GLIB 2.0
23 AM_CFLAGS+=$(GLIB20_CFLAGS)
24 AM_LDADD=$(GLIB20_LIBS)
25
26 # This cool debug trap works on i386/gcc only
27 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
28
29 avahiincludedir=$(includedir)/avahi-core
30
31 avahiinclude_HEADERS = \
32         rr.h \
33         address.h \
34         strlst.h \
35         core.h \
36         alternative.h
37
38 lib_LTLIBRARIES = \
39         libavahi-core.la 
40
41 noinst_PROGRAMS = \
42         dns-test \
43         domain-test \
44         prioq-test \
45         strlst-test \
46         avahi-test \
47         alternative-test \
48         conformance-test \
49         avahi-reflector
50
51 libavahi_core_la_SOURCES = \
52         timeeventq.c timeeventq.h\
53         iface.c iface.h \
54         netlink.c netlink.h \
55         server.c server.h \
56         address.c address.h \
57         util.c util.h \
58         prioq.c prioq.h \
59         cache.c cache.h\
60         rr.c rr.h \
61         dns.c dns.h \
62         socket.c socket.h \
63         response-sched.c response-sched.h \
64         query-sched.c query-sched.h \
65         probe-sched.c probe-sched.h \
66         announce.c announce.h \
67         browse.c browse.h \
68         strlst.c strlst.h \
69         rrlist.c rrlist.h \
70         alternative.c alternative.h \
71         resolve-host-name.c \
72         resolve-address.c \
73         browse-domain.c \
74         browse-service-type.c \
75         browse-service.c \
76         resolve-service.c
77
78 prioq_test_SOURCES = \
79         prioq-test.c  \
80         prioq.c prioq.h
81 prioq_test_CFLAGS = $(AM_CFLAGS)
82 prioq_test_LDADD = $(AM_LDADD)
83
84 strlst_test_SOURCES = \
85         strlst-test.c \
86         strlst.c strlst.h
87 strlst_test_CFLAGS = $(AM_CFLAGS)
88 strlst_test_LDADD = $(AM_LDADD)
89
90 domain_test_SOURCES = \
91         domain-test.c \
92         util.c util.h
93 domain_test_CFLAGS = $(AM_CFLAGS)
94 domain_test_LDADD = $(AM_LDADD)
95
96 dns_test_SOURCES = \
97         dns-test.c \
98         util.c util.h \
99         dns.c dns.h \
100         rr.c rr.h \
101         strlst.c strlst.h
102 dns_test_CFLAGS = $(AM_CFLAGS)
103 dns_test_LDADD = $(AM_LDADD)
104
105 avahi_test_SOURCES = \
106         avahi-test.c \
107         $(libavahi_core_la_SOURCES)
108 avahi_test_CFLAGS = $(AM_CFLAGS)
109 avahi_test_LDADD = $(AM_LDADD)
110
111 alternative_test_SOURCES = \
112         alternative-test.c \
113         alternative.c alternative.h
114 alternative_test_CFLAGS = $(AM_CFLAGS)
115 alternative_test_LDADD = $(AM_LDADD)
116
117 conformance_test_SOURCES = \
118         conformance-test.c \
119         $(libavahi_core_la_SOURCES)
120 conformance_test_CFLAGS = $(AM_CFLAGS)
121 conformance_test_LDADD = $(AM_LDADD)
122
123 avahi_reflector_SOURCES = \
124         avahi-reflector.c \
125         $(libavahi_core_la_SOURCES)
126 avahi_reflector_CFLAGS = $(AM_CFLAGS)
127 avahi_reflector_LDADD = $(AM_LDADD)
128
129 valgrind: avahi-test
130         libtool --mode=execute valgrind ./avahi-test
131
132 gdb: avahi-test
133         libtool --mode=execute gdb ./avahi-test