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