1# This file is part of avahi. 2# 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. 7# 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. 12# 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 16# USA. 17 18AM_CFLAGS=-I$(top_srcdir) 19 20# This cool debug trap works on i386/gcc only 21AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' 22 23avahi_commonincludedir=$(includedir)/avahi-common 24 25avahi_commoninclude_HEADERS = \ 26 strlst.h \ 27 address.h \ 28 alternative.h \ 29 domain.h \ 30 cdecl.h \ 31 defs.h \ 32 malloc.h \ 33 watch.h \ 34 timeval.h \ 35 simple-watch.h \ 36 thread-watch.h \ 37 gccmacro.h \ 38 error.h \ 39 llist.h \ 40 rlist.h 41 42if ENABLE_TESTS 43noinst_PROGRAMS = \ 44 strlst-test \ 45 domain-test \ 46 alternative-test \ 47 timeval-test \ 48 watch-test \ 49 watch-test-thread \ 50 utf8-test 51endif 52 53lib_LTLIBRARIES = \ 54 libavahi-common.la 55 56libavahi_common_la_SOURCES = \ 57 malloc.c malloc.h \ 58 address.c address.h \ 59 alternative.c alternative.h \ 60 error.c error.h \ 61 strlst.c strlst.h \ 62 domain.c domain.h \ 63 timeval.c timeval.h \ 64 simple-watch.c simple-watch.h \ 65 thread-watch.c thread-watch.h \ 66 watch.h gccmacro.h \ 67 rlist.h rlist.c \ 68 utf8.c utf8.h \ 69 i18n.c i18n.h 70 71libavahi_common_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -DAVAHI_LOCALEDIR=\"$(avahilocaledir)\" 72libavahi_common_la_LIBADD = $(AM_LDADD) $(PTHREAD_CFLAGS) $(PTHREAD_LIBS) $(INTLLIBS) 73libavahi_common_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_COMMON_VERSION_INFO) 74 75strlst_test_SOURCES = \ 76 strlst.c strlst.h \ 77 malloc.c malloc.h \ 78 strlst-test.c 79strlst_test_CFLAGS = $(AM_CFLAGS) 80 81alternative_test_SOURCES = \ 82 alternative.c alternative.h \ 83 malloc.c malloc.h \ 84 domain.c domain.h \ 85 address.c address.h \ 86 alternative-test.c \ 87 utf8.c utf8.h 88alternative_test_CFLAGS = $(AM_CFLAGS) 89 90domain_test_SOURCES = \ 91 domain.c domain.h \ 92 malloc.c malloc.h \ 93 address.c address.h \ 94 domain-test.c \ 95 utf8.c utf8.h 96domain_test_CFLAGS = $(AM_CFLAGS) 97 98watch_test_SOURCES = \ 99 timeval.c timeval.h \ 100 simple-watch.c simple-watch.h \ 101 watch.h \ 102 malloc.c malloc.h \ 103 watch-test.c 104watch_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) 105watch_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) 106 107watch_test_thread_SOURCES = $(watch_test_SOURCES) thread-watch.c thread-watch.h 108watch_test_thread_CFLAGS = $(watch_test_CFLAGS) -DUSE_THREAD 109watch_test_thread_LDADD = $(watch_test_LDADD) 110 111timeval_test_SOURCES = \ 112 timeval.c timeval.h \ 113 timeval-test.c 114timeval_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) 115timeval_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) 116 117utf8_test_SOURCES = \ 118 utf8-test.c \ 119 utf8.c utf8.h 120utf8_test_CFLAGS = $(AM_CFLAGS) 121utf8_test_LDADD = $(AM_LDADD) 122 123if HAVE_DBUS 124 125noinst_HEADERS = \ 126 dbus.h \ 127 dbus-watch-glue.h 128 129endif 130