]> git.meshlink.io Git - catta/blob - avahi-common/Makefile.am
* Improve and reorganise DBus error handling, see avahi-common/dbus.h
[catta] / avahi-common / Makefile.am
1 # $Id: Makefile.am 90 2005-05-23 16:15:12Z lennart $
2 #
3 # This file is part of avahi.
4
5 # avahi is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation; either version 2 of the
8 # License, or (at your option) any later version.
9 #
10 # avahi is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13 # License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with avahi; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 # USA.
19
20 AM_CFLAGS=-I$(top_srcdir)
21
22 # This cool debug trap works on i386/gcc only
23 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
24
25 # Need some DBUS defines for dbus.h
26 AM_CFLAGS+=$(DBUS_CFLAGS)
27
28 avahi_commonincludedir=$(includedir)/avahi-common
29
30 avahi_commoninclude_HEADERS = \
31         strlst.h \
32         address.h \
33         alternative.h \
34         domain.h \
35         cdecl.h \
36         defs.h \
37         malloc.h \
38         watch.h \
39         timeval.h \
40         simple-watch.h \
41         gccmacro.h \
42         error.h
43
44 noinst_HEADERS = \
45         llist.h
46
47 noinst_PROGRAMS = \
48         strlst-test \
49         domain-test \
50         alternative-test \
51         timeval-test \
52         watch-test
53
54 lib_LTLIBRARIES = \
55         libavahi-common.la 
56
57 libavahi_common_la_SOURCES = \
58         malloc.c malloc.h \
59         address.c address.h \
60         alternative.c alternative.h \
61         error.c error.h \
62         strlst.c strlst.h \
63         domain.c domain.h \
64         timeval.c timeval.h \
65         simple-watch.c simple-watch.h \
66         watch.h gccmacro.h \
67         dbus.c dbus.h
68
69 libavahi_common_la_CFLAGS = $(AM_CFLAGS)
70 libavahi_common_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info 0:0:0
71
72 strlst_test_SOURCES = \
73         strlst.c strlst.h \
74         malloc.c malloc.h \
75         strlst-test.c
76 strlst_test_CFLAGS = $(AM_CFLAGS)
77
78 alternative_test_SOURCES = \
79         alternative.c alternative.h \
80         malloc.c malloc.h \
81         domain.c domain.h \
82         alternative-test.c
83 alternative_test_CFLAGS = $(AM_CFLAGS)
84
85 domain_test_SOURCES = \
86         domain.c domain.h \
87         malloc.c malloc.h \
88         domain-test.c
89 domain_test_CFLAGS = $(AM_CFLAGS)
90
91 watch_test_SOURCES = \
92         timeval.c timeval.h \
93         simple-watch.c simple-watch.h \
94         watch.h \
95         malloc.c malloc.h \
96         watch-test.c
97 watch_test_CFLAGS = $(AM_CFLAGS)
98
99 timeval_test_SOURCES = \
100         timeval.c timeval.h \
101         timeval-test.c
102 timeval_test_CFLAGS = $(AM_CFLAGS)
103
104 if HAVE_DBUS
105
106 noinst_HEADERS += \
107         dbus.h \
108         dbus-watch-glue.h
109
110 noinst_LTLIBRARIES = \
111         libdbus-watch-glue.la \
112         libdbus-watch-glue-pic.la
113
114 libdbus_watch_glue_la_SOURCES = \
115         dbus-watch-glue.h dbus-watch-glue.c
116 libdbus_watch_glue_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
117 libdbus_watch_glue_la_LDFLAGS = $(AM_LDFLAGS) -all-static
118
119 libdbus_watch_glue_pic_la_SOURCES = $(libdbus_watch_glue_la_SOURCES)
120 libdbus_watch_glue_pic_la_CFLAGS = $(libdbus_watch_glue_la_CFLAGS) -fPIC
121 libdbus_watch_glue_pic_la_LDFLAGS = $(libdbus_watch_glue_la_LDFLAGS)
122
123 endif
124