1 # This file is part of avahi.
3 # avahi 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 # avahi 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 avahi; 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)
20 # This cool debug trap works on i386/gcc only
21 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
23 avahi_commonincludedir=$(includedir)/avahi-common
25 avahi_commoninclude_HEADERS = \
56 libavahi_common_la_SOURCES = \
59 alternative.c alternative.h \
64 simple-watch.c simple-watch.h \
65 thread-watch.c thread-watch.h \
71 libavahi_common_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -DAVAHI_LOCALEDIR=\"$(avahilocaledir)\"
72 libavahi_common_la_LIBADD = $(AM_LDADD) $(PTHREAD_CFLAGS) $(PTHREAD_LIBS) $(INTLLIBS)
73 libavahi_common_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_COMMON_VERSION_INFO)
75 strlst_test_SOURCES = \
79 strlst_test_CFLAGS = $(AM_CFLAGS)
81 alternative_test_SOURCES = \
82 alternative.c alternative.h \
88 alternative_test_CFLAGS = $(AM_CFLAGS)
90 domain_test_SOURCES = \
96 domain_test_CFLAGS = $(AM_CFLAGS)
98 watch_test_SOURCES = \
100 simple-watch.c simple-watch.h \
104 watch_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
105 watch_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS)
107 watch_test_thread_SOURCES = $(watch_test_SOURCES) thread-watch.c thread-watch.h
108 watch_test_thread_CFLAGS = $(watch_test_CFLAGS) -DUSE_THREAD
109 watch_test_thread_LDADD = $(watch_test_LDADD)
111 timeval_test_SOURCES = \
112 timeval.c timeval.h \
114 timeval_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
115 timeval_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS)
117 utf8_test_SOURCES = \
120 utf8_test_CFLAGS = $(AM_CFLAGS)
121 utf8_test_LDADD = $(AM_LDADD)