]> git.meshlink.io Git - catta/blob - avahi-core/Makefile.am
* remove lots of DOXYGEN_SHOULD_SKIP_THIS from the header files, use doxygen macro...
[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 if ENABLE_TESTS
38 noinst_PROGRAMS = \
39         prioq-test \
40         avahi-test \
41         conformance-test \
42         avahi-reflector \
43         dns-test \
44         timeeventq-test \
45         hashmap-test \
46         querier-test \
47         update-test
48 endif  
49
50 libavahi_core_la_SOURCES = \
51         timeeventq.c timeeventq.h\
52         iface.c iface.h \
53         server.c internal.h entry.c \
54         prioq.c prioq.h \
55         cache.c cache.h \
56         socket.c socket.h \
57         response-sched.c response-sched.h \
58         query-sched.c query-sched.h \
59         probe-sched.c probe-sched.h \
60         announce.c announce.h \
61         browse.c browse.h \
62         rrlist.c rrlist.h \
63         resolve-host-name.c \
64         resolve-address.c \
65         browse-domain.c \
66         browse-service-type.c \
67         browse-service.c \
68         resolve-service.c \
69         dns.c dns.h \
70         rr.c rr.h rr-util.h \
71         core.h lookup.h publish.h \
72         log.c log.h \
73         browse-dns-server.c \
74         fdutil.h fdutil.c \
75         util.c util.h \
76         hashmap.c hashmap.h \
77         wide-area.c wide-area.h \
78         multicast-lookup.c multicast-lookup.h \
79         querier.c querier.h \
80         addr-util.h addr-util.c \
81         domain-util.h domain-util.c
82
83 if HAVE_NETLINK
84 libavahi_core_la_SOURCES += \
85        iface-linux.c iface-linux.h \
86        netlink.c netlink.h
87 else
88 if HAVE_PF_ROUTE 
89 libavahi_core_la_SOURCES += \
90         iface-pfroute.c iface-pfroute.h
91 endif
92 endif
93
94 libavahi_core_la_CFLAGS = $(AM_CFLAGS)
95 libavahi_core_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
96 libavahi_core_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_CORE_VERSION_INFO)
97
98 prioq_test_SOURCES = \
99         prioq-test.c  \
100         prioq.c prioq.h
101 prioq_test_CFLAGS = $(AM_CFLAGS)
102 prioq_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
103
104 avahi_test_SOURCES = \
105         avahi-test.c
106 avahi_test_CFLAGS = $(AM_CFLAGS)
107 avahi_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
108
109 update_test_SOURCES = \
110         update-test.c
111 update_test_CFLAGS = $(AM_CFLAGS)
112 update_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
113
114 querier_test_SOURCES = \
115         querier-test.c
116 querier_test_CFLAGS = $(AM_CFLAGS)
117 querier_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
118
119 conformance_test_SOURCES = \
120         conformance-test.c
121 conformance_test_CFLAGS = $(AM_CFLAGS)
122 conformance_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
123
124 avahi_reflector_SOURCES = \
125         avahi-reflector.c
126 avahi_reflector_CFLAGS = $(AM_CFLAGS)
127 avahi_reflector_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
128
129 dns_test_SOURCES = \
130         dns.c dns.h \
131         dns-test.c \
132         log.c log.h \
133         util.c util.h \
134         rr.c rr.h \
135         hashmap.c hashmap.h \
136         domain-util.c domain-util.h
137 dns_test_CFLAGS = $(AM_CFLAGS)
138 dns_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
139
140 timeeventq_test_SOURCES = \
141         timeeventq-test.c \
142         timeeventq.h timeeventq.c \
143         prioq.h prioq.c \
144         log.c log.h
145 timeeventq_test_CFLAGS = $(AM_CFLAGS)
146 timeeventq_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
147
148 hashmap_test_SOURCES = \
149         hashmap-test.c \
150         hashmap.h hashmap.c \
151         util.h util.c
152 hashmap_test_CFLAGS = $(AM_CFLAGS)
153 hashmap_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
154
155 valgrind: avahi-test
156         libtool --mode=execute valgrind ./avahi-test
157
158 gdb: avahi-test
159         libtool --mode=execute gdb ./avahi-test