]> git.meshlink.io Git - catta/blob - src/Makefile.am
ebc34c14ecb2dc1041c8d2302c6c10b9ec9df9b1
[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 if WINDOWS
21 AM_CFLAGS += -I$(top_srcdir)/compat/windows/include
22 endif
23
24 # This cool debug trap works on i386/gcc only
25 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
26
27 lib_LTLIBRARIES = libcatta.la
28
29 libcatta_la_SOURCES = \
30         malloc.c \
31         address.c \
32         alternative.c \
33         error.c \
34         strlst.c \
35         domain.c \
36         timeval.c \
37         simple-watch.c \
38         thread-watch.c \
39         rlist.c \
40         utf8.c utf8.h \
41         timeeventq.c timeeventq.h \
42         iface.c iface.h \
43         server.c internal.h entry.c \
44         prioq.c prioq.h \
45         cache.c cache.h \
46         socket.c socket.h \
47         response-sched.c response-sched.h \
48         query-sched.c query-sched.h \
49         probe-sched.c probe-sched.h \
50         announce.c announce.h \
51         browse.c browse.h \
52         rrlist.c rrlist.h \
53         resolve-host-name.c \
54         resolve-address.c \
55         browse-domain.c \
56         browse-service-type.c \
57         browse-service.c \
58         resolve-service.c \
59         dns.c dns.h \
60         rr.c rr.h rr-util.h \
61         log.c \
62         browse-dns-server.c \
63         fdutil.h fdutil.c \
64         util.c util.h \
65         hashmap.c hashmap.h \
66         wide-area.c wide-area.h \
67         multicast-lookup.c multicast-lookup.h \
68         querier.c querier.h \
69         addr-util.h addr-util.c \
70         domain-util.h domain-util.c \
71         dns-srv-rr.h
72
73 if HAVE_NETLINK
74 libcatta_la_SOURCES += \
75        iface-linux.c iface-linux.h \
76        netlink.c netlink.h
77 else
78 if HAVE_PF_ROUTE
79 libcatta_la_SOURCES += \
80         iface-pfroute.c iface-pfroute.h
81 else
82 libcatta_la_SOURCES += \
83         iface-none.c
84 endif
85 endif
86
87 libcatta_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
88 libcatta_la_LIBADD = $(AM_LDADD) $(PTHREAD_CFLAGS) $(PTHREAD_LIBS) $(INTLLIBS)
89 libcatta_la_LDFLAGS = $(AM_LDFLAGS)  -version-info $(LIBCATTA_VERSION_INFO)