]> git.meshlink.io Git - catta/blob - avahi-core/Makefile.am
move dns.[ch] back to avahi-core/
[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) -D_GNU_SOURCE
21
22 # GLIB 2.0
23 AM_CFLAGS+=$(GLIB20_CFLAGS)
24 AM_LDADD=$(GLIB20_LIBS)
25
26 # Import stuff from avahi-common
27 AM_CFLAGS+=-I$(top_srcdir)/avahi-common 
28 AM_LDADD+=../avahi-common/libavahi-common.la
29
30 # This cool debug trap works on i386/gcc only
31 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
32
33 avahiincludedir=$(includedir)/avahi-core 
34
35 avahiinclude_HEADERS =
36         core.h
37
38 lib_LTLIBRARIES = \
39         libavahi-core.la 
40
41 noinst_PROGRAMS = \
42         prioq-test \
43         avahi-test \
44         conformance-test \
45         avahi-reflector \
46         dns-test
47
48 libavahi_core_la_SOURCES = \
49         timeeventq.c timeeventq.h\
50         iface.c iface.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
70 prioq_test_SOURCES = \
71         prioq-test.c  \
72         prioq.c prioq.h
73 prioq_test_CFLAGS = $(AM_CFLAGS)
74 prioq_test_LDADD = $(AM_LDADD)
75
76 avahi_test_SOURCES = \
77         avahi-test.c \
78         $(libavahi_core_la_SOURCES)
79 avahi_test_CFLAGS = $(AM_CFLAGS)
80 avahi_test_LDADD = $(AM_LDADD)
81
82 conformance_test_SOURCES = \
83         conformance-test.c \
84         $(libavahi_core_la_SOURCES)
85 conformance_test_CFLAGS = $(AM_CFLAGS)
86 conformance_test_LDADD = $(AM_LDADD)
87
88 avahi_reflector_SOURCES = \
89         avahi-reflector.c \
90         $(libavahi_core_la_SOURCES)
91 avahi_reflector_CFLAGS = $(AM_CFLAGS)
92 avahi_reflector_LDADD = $(AM_LDADD)
93
94 dns_test_SOURCES = \
95         dns.c dns.h \
96         dns-test.c
97 dns_test_CFLAGS = $(AM_CFLAGS)
98 dns_test_LDADD = $(AM_LDADD)
99
100 valgrind: avahi-test
101         libtool --mode=execute valgrind ./avahi-test
102
103 gdb: avahi-test
104         libtool --mode=execute gdb ./avahi-test