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