]> git.meshlink.io Git - catta/blob - avahi-core/Makefile.am
Split off linux specific parts of iface.[ch] into iface-linux.[ch]. This should
[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)
21
22 # This cool debug trap works on i386/gcc only
23 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
24
25 avahiincludedir=$(includedir)/avahi-core
26
27 avahiinclude_HEADERS = \
28         core.h \
29         log.h \
30         rr.h \
31         publish.h \
32         lookup.h
33
34 lib_LTLIBRARIES = \
35         libavahi-core.la 
36
37 noinst_PROGRAMS = \
38         prioq-test \
39         avahi-test \
40         conformance-test \
41         avahi-reflector \
42         dns-test \
43         timeeventq-test \
44         hashmap-test \
45         querier-test
46
47 libavahi_core_la_SOURCES = \
48         timeeventq.c timeeventq.h\
49         iface.c iface.h \
50         iface-linux.c iface-linux.h \
51         netlink.c netlink.h \
52         server.c server.h \
53         prioq.c prioq.h \
54         cache.c cache.h\
55         socket.c socket.h \
56         response-sched.c response-sched.h \
57         query-sched.c query-sched.h \
58         probe-sched.c probe-sched.h \
59         announce.c announce.h \
60         browse.c browse.h \
61         rrlist.c rrlist.h \
62         resolve-host-name.c \
63         resolve-address.c \
64         browse-domain.c \
65         browse-service-type.c \
66         browse-service.c \
67         resolve-service.c \
68         dns.c dns.h \
69         rr.c rr.h \
70         core.h lookup.h publish.h \
71         log.c log.h \
72         browse-dns-server.c \
73         fdutil.h fdutil.c \
74         util.c util.h \
75         hashmap.c hashmap.h \
76         wide-area.c wide-area.h \
77         multicast-lookup.c multicast-lookup.h \
78         querier.c querier.h
79
80 libavahi_core_la_CFLAGS = $(AM_CFLAGS)
81 libavahi_core_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
82 libavahi_core_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_CORE_VERSION_INFO)
83
84 prioq_test_SOURCES = \
85         prioq-test.c  \
86         prioq.c prioq.h
87 prioq_test_CFLAGS = $(AM_CFLAGS)
88 prioq_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
89
90 avahi_test_SOURCES = \
91         avahi-test.c
92 avahi_test_CFLAGS = $(AM_CFLAGS)
93 avahi_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
94
95
96 querier_test_SOURCES = \
97         querier-test.c
98 querier_test_CFLAGS = $(AM_CFLAGS)
99 querier_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
100
101 conformance_test_SOURCES = \
102         conformance-test.c
103 conformance_test_CFLAGS = $(AM_CFLAGS)
104 conformance_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
105
106 avahi_reflector_SOURCES = \
107         avahi-reflector.c
108 avahi_reflector_CFLAGS = $(AM_CFLAGS)
109 avahi_reflector_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
110
111 dns_test_SOURCES = \
112         dns.c dns.h \
113         dns-test.c \
114         log.c log.h \
115         util.c util.h \
116         rr.c rr.h \
117         hashmap.c hashmap.h
118 dns_test_CFLAGS = $(AM_CFLAGS)
119 dns_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
120
121 timeeventq_test_SOURCES = \
122         timeeventq-test.c \
123         timeeventq.h timeeventq.c \
124         prioq.h prioq.c \
125         log.c log.h
126 timeeventq_test_CFLAGS = $(AM_CFLAGS)
127 timeeventq_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
128
129 hashmap_test_SOURCES = \
130         hashmap-test.c \
131         hashmap.h hashmap.c \
132         util.h util.c
133 hashmap_test_CFLAGS = $(AM_CFLAGS)
134 hashmap_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
135
136 valgrind: avahi-test
137         libtool --mode=execute valgrind ./avahi-test
138
139 gdb: avahi-test
140         libtool --mode=execute gdb ./avahi-test