]> git.meshlink.io Git - catta/blob - avahi-daemon/Makefile.am
* split dbus-protocol.c in multiple sources files
[catta] / avahi-daemon / Makefile.am
1 # $Id$
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 if HAVE_LIBDAEMON
26 if HAVE_EXPAT
27
28 pkgsysconfdir=$(sysconfdir)/avahi
29 servicedir=$(pkgsysconfdir)/services
30 introspectiondir=$(pkgdatadir)/introspection
31 dbusservicedir=$(DBUS_SYS_DIR)
32
33 AM_CFLAGS+= \
34         -DAVAHI_DAEMON_RUNTIME_DIR=\"$(avahi_runtime_dir)/avahi-daemon/\" \
35         -DAVAHI_SOCKET=\"$(avahi_socket)\" \
36         -DAVAHI_SERVICE_DIR=\"$(servicedir)\" \
37         -DAVAHI_CONFIG_FILE=\"$(pkgsysconfdir)/avahi-daemon.conf\" \
38         -DAVAHI_DBUS_INTROSPECTION_DIR=\"$(introspectiondir)\" 
39
40 sbin_PROGRAMS = \
41         avahi-daemon
42
43 if ENABLE_TESTS
44 noinst_PROGRAMS = \
45         ini-file-parser-test
46 endif
47
48 avahi_daemon_SOURCES = \
49         main.c main.h \
50         simple-protocol.c simple-protocol.h \
51         static-services.c static-services.h \
52         ini-file-parser.c ini-file-parser.h
53
54 avahi_daemon_CFLAGS = $(AM_CFLAGS) $(LIBDAEMON_CFLAGS)
55 avahi_daemon_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la $(LIBDAEMON_LIBS) -lexpat
56
57 ini_file_parser_test_SOURCES = \
58         ini-file-parser.c ini-file-parser.h \
59         ini-file-parser-test.c
60
61 ini_file_parser_test_CFLAGS = $(AM_CFLAGS)
62 ini_file_parser_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la 
63
64 pkgsysconf_DATA = \
65         avahi-daemon.conf
66
67 service_DATA = \
68         ssh.service
69
70 pkgdata_DATA = \
71         avahi-service.dtd
72
73
74 if HAVE_DBUS
75
76 avahi_daemon_SOURCES += \
77         dbus-protocol.c dbus-protocol.h \
78         dbus-util.c dbus-util.h \
79         dbus-internal.h \
80         dbus-async-address-resolver.c \
81         dbus-async-host-name-resolver.c \
82         dbus-async-service-resolver.c \
83         dbus-domain-browser.c \
84         dbus-entry-group.c \
85         dbus-service-browser.c \
86         dbus-service-type-browser.c \
87         dbus-sync-address-resolver.c \
88         dbus-sync-host-name-resolver.c \
89         dbus-sync-service-resolver.c
90
91 avahi_daemon_LDADD += \
92         ../avahi-common/libdbus-common.la \
93         $(DBUS_LIBS)
94
95 avahi_daemon_CFLAGS += $(DBUS_CFLAGS)
96
97 dbusservice_DATA = avahi-dbus.conf
98
99 introspection_DATA = \
100         Server.introspect \
101         EntryGroup.introspect \
102         DomainBrowser.introspect \
103         ServiceTypeBrowser.introspect \
104         ServiceBrowser.introspect \
105         ServiceResolver.introspect \
106         AddressResolver.introspect \
107         HostNameResolver.introspect
108
109 endif
110 endif
111 endif
112
113 EXTRA_DIST = \
114         avahi-service.dtd \
115         avahi-daemon.conf \
116         example.service \
117         dbus-test.py \
118         avahi-dbus.conf \
119         Server.introspect \
120         EntryGroup.introspect \
121         DomainBrowser.introspect \
122         ServiceTypeBrowser.introspect \
123         ServiceBrowser.introspect \
124         ServiceResolver.introspect \
125         AddressResolver.introspect \
126         HostNameResolver.introspect \
127         ssh.service \
128         example.service \
129         introspect.dtd \
130         introspect.xsl
131
132 xmllint:
133         xmllint --noout --valid example.service
134         for F in $(introspection_DATA) ; do \
135                 xmllint --noout --valid $$F ; \
136         done