]> git.meshlink.io Git - catta/blob - src/Makefile.am
236f9517a5ae32f7ed84ee1c4a9681246818382f
[catta] / src / Makefile.am
1 # This file is part of catta.
2 #
3 # catta is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as
5 # published by the Free Software Foundation; either version 2 of the
6 # License, or (at your option) any later version.
7 #
8 # catta is distributed in the hope that it will be useful, but WITHOUT
9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
11 # License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with catta; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
16 # USA.
17
18 AM_CFLAGS=-I$(top_srcdir)/include
19
20 # This cool debug trap works on i386/gcc only
21 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
22
23 lib_LTLIBRARIES = libcatta.la
24
25 libcatta_la_SOURCES = \
26         malloc.c \
27         address.c \
28         alternative.c \
29         error.c \
30         strlst.c \
31         domain.c \
32         timeval.c \
33         simple-watch.c \
34         thread-watch.c \
35         rlist.c \
36         utf8.c utf8.h \
37         timeeventq.c timeeventq.h \
38         iface.c iface.h \
39         server.c internal.h entry.c \
40         prioq.c prioq.h \
41         cache.c cache.h \
42         socket.c socket.h \
43         response-sched.c response-sched.h \
44         query-sched.c query-sched.h \
45         probe-sched.c probe-sched.h \
46         announce.c announce.h \
47         browse.c browse.h \
48         rrlist.c rrlist.h \
49         resolve-host-name.c \
50         resolve-address.c \
51         browse-domain.c \
52         browse-service-type.c \
53         browse-service.c \
54         resolve-service.c \
55         dns.c dns.h \
56         rr.c rr.h rr-util.h \
57         log.c \
58         browse-dns-server.c \
59         fdutil.h fdutil.c \
60         util.c util.h \
61         hashmap.c hashmap.h \
62         wide-area.c wide-area.h \
63         multicast-lookup.c multicast-lookup.h \
64         querier.c querier.h \
65         addr-util.h addr-util.c \
66         domain-util.h domain-util.c \
67         dns-srv-rr.h
68
69 if HAVE_NETLINK
70 libcatta_la_SOURCES += \
71        iface-linux.c iface-linux.h \
72        netlink.c netlink.h
73 else
74 if HAVE_PF_ROUTE
75 libcatta_la_SOURCES += \
76         iface-pfroute.c iface-pfroute.h
77 else
78 libcatta_la_SOURCES += \
79         iface-none.c
80 endif
81 endif
82
83 libcatta_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
84 libcatta_la_LIBADD = $(AM_LDADD) $(PTHREAD_CFLAGS) $(PTHREAD_LIBS) $(INTLLIBS)
85 libcatta_la_LDFLAGS = $(AM_LDFLAGS)  -version-info $(LIBCATTA_VERSION_INFO)