]> git.meshlink.io Git - catta/blob - avahi-common/Makefile.am
4310797f85f42e3e2228693dc91de11b3eb2403b
[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
40 noinst_HEADERS = \
41         llist.h
42
43 noinst_PROGRAMS = \
44         strlst-test \
45         domain-test \
46         alternative-test \
47         timeval-test \
48         watch-test
49
50 lib_LTLIBRARIES = \
51         libavahi-common.la 
52
53 libavahi_common_la_SOURCES = \
54         malloc.c malloc.h \
55         address.c address.h \
56         alternative.c alternative.h \
57         error.c error.h \
58         strlst.c strlst.h \
59         domain.c domain.h \
60         timeval.c timeval.h \
61         simple-watch.c simple-watch.h \
62         watch.h gccmacro.h
63
64 libavahi_common_la_CFLAGS = $(AM_CFLAGS)
65 libavahi_common_la_LIBADD = $(AM_LDADD)
66
67 strlst_test_SOURCES = \
68         strlst.c strlst.h \
69         malloc.c malloc.h \
70         strlst-test.c
71 strlst_test_CFLAGS = $(AM_CFLAGS)
72 strlst_test_LDADD = $(AM_LDADD)
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 alternative_test_LDADD = $(AM_LDADD)
81
82 domain_test_SOURCES = \
83         domain.c domain.h \
84         malloc.c malloc.h \
85         domain-test.c
86 domain_test_CFLAGS = $(AM_CFLAGS)
87 domain_test_LDADD = $(AM_LDADD)
88
89 watch_test_SOURCES = \
90         timeval.c timeval.h \
91         simple-watch.c simple-watch.h \
92         watch.h \
93         malloc.c malloc.h \
94         watch-test.c
95 watch_test_CFLAGS = $(AM_CFLAGS)
96 watch_test_LDADD = $(AM_LDADD)
97
98 timeval_test_SOURCES = \
99         timeval.c timeval.h \
100         timeval-test.c
101 timeval_test_CFLAGS = $(AM_CFLAGS)
102 timeval_test_LDADD = $(AM_LDADD)
103
104
105
106 if ENABLE_DBUS
107 noinst_HEADERS += \
108         dbus.h \
109         dbus-watch-glue.h
110
111 noinst_LIBRARIES = \
112         libdbus-watch-glue.a
113
114 libdbus_watch_glue_a_SOURCES = \
115         dbus-watch-glue.h dbus-watch-glue.c
116
117 libdbus_watch_glue_a_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
118
119 endif
120