]> git.meshlink.io Git - catta/blob - avahi-core/Makefile.am
* added support in autoconf for multiple architecture
[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 if HAVE_NETLINK
48 NETLINK = \
49        iface-linux.c iface-linux.h \
50        netlink.c netlink.h
51 endif
52
53 libavahi_core_la_SOURCES = \
54         timeeventq.c timeeventq.h\
55         iface.c iface.h \
56         $(NETLINK) \
57         server.c server.h \
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 \
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
85
86 libavahi_core_la_CFLAGS = $(AM_CFLAGS)
87 libavahi_core_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
88 libavahi_core_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_CORE_VERSION_INFO)
89
90 prioq_test_SOURCES = \
91         prioq-test.c  \
92         prioq.c prioq.h
93 prioq_test_CFLAGS = $(AM_CFLAGS)
94 prioq_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
95
96 avahi_test_SOURCES = \
97         avahi-test.c
98 avahi_test_CFLAGS = $(AM_CFLAGS)
99 avahi_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
100
101
102 querier_test_SOURCES = \
103         querier-test.c
104 querier_test_CFLAGS = $(AM_CFLAGS)
105 querier_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
106
107 conformance_test_SOURCES = \
108         conformance-test.c
109 conformance_test_CFLAGS = $(AM_CFLAGS)
110 conformance_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
111
112 avahi_reflector_SOURCES = \
113         avahi-reflector.c
114 avahi_reflector_CFLAGS = $(AM_CFLAGS)
115 avahi_reflector_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
116
117 dns_test_SOURCES = \
118         dns.c dns.h \
119         dns-test.c \
120         log.c log.h \
121         util.c util.h \
122         rr.c rr.h \
123         hashmap.c hashmap.h
124 dns_test_CFLAGS = $(AM_CFLAGS)
125 dns_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
126
127 timeeventq_test_SOURCES = \
128         timeeventq-test.c \
129         timeeventq.h timeeventq.c \
130         prioq.h prioq.c \
131         log.c log.h
132 timeeventq_test_CFLAGS = $(AM_CFLAGS)
133 timeeventq_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
134
135 hashmap_test_SOURCES = \
136         hashmap-test.c \
137         hashmap.h hashmap.c \
138         util.h util.c
139 hashmap_test_CFLAGS = $(AM_CFLAGS)
140 hashmap_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
141
142 valgrind: avahi-test
143         libtool --mode=execute valgrind ./avahi-test
144
145 gdb: avahi-test
146         libtool --mode=execute gdb ./avahi-test