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 18 AM_CFLAGS=-I$(top_srcdir) 19 20 # This cool debug trap works on i386/gcc only 21 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' 22 23 avahi_commonincludedir=$(includedir)/avahi-common 24 25 avahi_commoninclude_HEADERS = \ 26 strlst.h \ 27 address.h \ 28 alternative.h \ 29 domain.h \ 30 cdecl.h \ 31 defs.h \ 32 avahi-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 42 if ENABLE_TESTS 43 noinst_PROGRAMS = \ 44 strlst-test \ 45 domain-test \ 46 alternative-test \ 47 timeval-test \ 48 watch-test \ 49 watch-test-thread \ 50 utf8-test 51 endif 52 53 lib_LTLIBRARIES = \ 54 libavahi-common.la 55 56 libavahi_common_la_SOURCES = \ 57 avahi-malloc.c avahi-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 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) 74 75 strlst_test_SOURCES = \ 76 strlst.c strlst.h \ 77 avahi-malloc.c avahi-malloc.h \ 78 strlst-test.c 79 strlst_test_CFLAGS = $(AM_CFLAGS) 80 81 alternative_test_SOURCES = \ 82 alternative.c alternative.h \ 83 avahi-malloc.c avahi-malloc.h \ 84 domain.c domain.h \ 85 address.c address.h \ 86 alternative-test.c \ 87 utf8.c utf8.h 88 alternative_test_CFLAGS = $(AM_CFLAGS) 89 90 domain_test_SOURCES = \ 91 domain.c domain.h \ 92 avahi-malloc.c avahi-malloc.h \ 93 address.c address.h \ 94 domain-test.c \ 95 utf8.c utf8.h 96 domain_test_CFLAGS = $(AM_CFLAGS) 97 98 watch_test_SOURCES = \ 99 timeval.c timeval.h \ 100 simple-watch.c simple-watch.h \ 101 watch.h \ 102 avahi-malloc.c avahi-malloc.h \ 103 watch-test.c 104 watch_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) 105 watch_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) 106 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) 110 111 timeval_test_SOURCES = \ 112 timeval.c timeval.h \ 113 timeval-test.c 114 timeval_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) 115 timeval_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) 116 117 utf8_test_SOURCES = \ 118 utf8-test.c \ 119 utf8.c utf8.h 120 utf8_test_CFLAGS = $(AM_CFLAGS) 121 utf8_test_LDADD = $(AM_LDADD) 122 123 if HAVE_DBUS 124 125 noinst_HEADERS = \ 126 dbus.h \ 127 dbus-watch-glue.h 128 129 endif 130 131 Android.mk: Makefile.am 132 androgenizer -:PROJECT avahi -:STATIC avahi-common -:TAGS eng debug \ 133 -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \ 134 -:SOURCES $(libavahi_common_la_SOURCES) \ 135 -:CFLAGS $(DEFS) $(CFLAGS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 136 $(AM_CFLAGS) $(libavahi_common_la_CFLAGS) \ 137 -:CPPFLAGS $(CPPFLAGS) $(AM_CPPFLAGS) $(libgcrypt_la_CPPFLAGS) \ 138 -:LDFLAGS $(libavahi_common_la_LIBADD) $(libavahi_common_la_LDADD) \ 139 > $@ 140