]> git.meshlink.io Git - catta/blob - avahi-common/Makefile.am
Include qt mainloop adapter in build system. Moc finding code is cracktastic thanks to
[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 avahi_commonincludedir=$(includedir)/avahi-common
26
27 avahi_commoninclude_HEADERS = \
28         strlst.h \
29         address.h \
30         alternative.h \
31         domain.h \
32         cdecl.h \
33         defs.h \
34         malloc.h \
35         watch.h \
36         timeval.h \
37         simple-watch.h \
38         gccmacro.h \
39         error.h
40
41 noinst_HEADERS = \
42         llist.h
43
44 noinst_PROGRAMS = \
45         strlst-test \
46         domain-test \
47         alternative-test \
48         timeval-test \
49         watch-test
50
51 lib_LTLIBRARIES = \
52         libavahi-common.la 
53
54 libavahi_common_la_SOURCES = \
55         malloc.c malloc.h \
56         address.c address.h \
57         alternative.c alternative.h \
58         error.c error.h \
59         strlst.c strlst.h \
60         domain.c domain.h \
61         timeval.c timeval.h \
62         simple-watch.c simple-watch.h \
63         watch.h gccmacro.h
64
65 libavahi_common_la_CFLAGS = $(AM_CFLAGS)
66 libavahi_common_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info 1:0:1
67
68 strlst_test_SOURCES = \
69         strlst.c strlst.h \
70         malloc.c malloc.h \
71         strlst-test.c
72 strlst_test_CFLAGS = $(AM_CFLAGS)
73
74 alternative_test_SOURCES = \
75         alternative.c alternative.h \
76         malloc.c malloc.h \
77         domain.c domain.h \
78         alternative-test.c
79 alternative_test_CFLAGS = $(AM_CFLAGS)
80
81 domain_test_SOURCES = \
82         domain.c domain.h \
83         malloc.c malloc.h \
84         domain-test.c
85 domain_test_CFLAGS = $(AM_CFLAGS)
86
87 watch_test_SOURCES = \
88         timeval.c timeval.h \
89         simple-watch.c simple-watch.h \
90         watch.h \
91         malloc.c malloc.h \
92         watch-test.c
93 watch_test_CFLAGS = $(AM_CFLAGS)
94
95 timeval_test_SOURCES = \
96         timeval.c timeval.h \
97         timeval-test.c
98 timeval_test_CFLAGS = $(AM_CFLAGS)
99
100 if HAVE_DBUS
101
102 noinst_HEADERS += \
103         dbus.h \
104         dbus-watch-glue.h
105
106 noinst_LTLIBRARIES = \
107         libdbus-common.la \
108         libdbus-common-pic.la
109
110 libdbus_common_la_SOURCES = \
111         dbus-watch-glue.h dbus-watch-glue.c \
112         dbus.h dbus.c
113 libdbus_common_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
114 libdbus_common_la_LDFLAGS = $(AM_LDFLAGS) -all-static
115
116 libdbus_common_pic_la_SOURCES = $(libdbus_common_la_SOURCES)
117 libdbus_common_pic_la_CFLAGS = $(libdbus_common_la_CFLAGS) -fPIC
118 libdbus_common_pic_la_LDFLAGS = $(libdbus_common_la_LDFLAGS)
119
120 endif
121