1 # This file is part of catta.
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.
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.
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
18 AM_CFLAGS=-I$(top_srcdir)/include
20 # This cool debug trap works on i386/gcc only
21 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
23 lib_LTLIBRARIES = libcatta.la
25 libcatta_la_SOURCES = \
37 timeeventq.c timeeventq.h \
39 server.c internal.h entry.c \
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 \
52 browse-service-type.c \
62 wide-area.c wide-area.h \
63 multicast-lookup.c multicast-lookup.h \
65 addr-util.h addr-util.c \
66 domain-util.h domain-util.c \
70 libcatta_la_SOURCES += \
71 iface-linux.c iface-linux.h \
75 libcatta_la_SOURCES += \
76 iface-pfroute.c iface-pfroute.h
78 libcatta_la_SOURCES += \
83 libcatta_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
84 libcatta_la_LIBADD = $(AM_LDADD) $(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
85 libcatta_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBCATTA_VERSION_INFO)
88 libcatta_la_SOURCES += \
89 compat/windows/wincompat.c \
90 compat/windows/wincompat.h
91 libcatta_la_LIBADD += -lws2_32
92 libcatta_la_LDFLAGS += -no-undefined