]> git.meshlink.io Git - catta/blob - avahi-common/Makefile.am
* Add pkg-config files for avahi-glib/avahi-client
[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_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info 0:0:0
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
73 alternative_test_SOURCES = \
74         alternative.c alternative.h \
75         malloc.c malloc.h \
76         domain.c domain.h \
77         alternative-test.c
78 alternative_test_CFLAGS = $(AM_CFLAGS)
79
80 domain_test_SOURCES = \
81         domain.c domain.h \
82         malloc.c malloc.h \
83         domain-test.c
84 domain_test_CFLAGS = $(AM_CFLAGS)
85
86 watch_test_SOURCES = \
87         timeval.c timeval.h \
88         simple-watch.c simple-watch.h \
89         watch.h \
90         malloc.c malloc.h \
91         watch-test.c
92 watch_test_CFLAGS = $(AM_CFLAGS)
93
94 timeval_test_SOURCES = \
95         timeval.c timeval.h \
96         timeval-test.c
97 timeval_test_CFLAGS = $(AM_CFLAGS)
98
99 if ENABLE_DBUS
100
101 noinst_HEADERS += \
102         dbus.h \
103         dbus-watch-glue.h
104
105 noinst_LTLIBRARIES = \
106         libdbus-watch-glue.la
107
108 libdbus_watch_glue_la_SOURCES = \
109         dbus-watch-glue.h dbus-watch-glue.c
110 libdbus_watch_glue_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
111 libdbus_watch_glue_la_LDFLAGS = $(AM_LDFLAGS) -static -export-dynamic
112
113 endif
114