]> git.meshlink.io Git - catta/blob - avahi-daemon/Makefile.am
8c433d5ac8955f486751f19834458cba462b62c4
[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 noinst_PROGRAMS = \
44         ini-file-parser-test
45
46 avahi_daemon_SOURCES = \
47         main.c main.h \
48         simple-protocol.c simple-protocol.h \
49         static-services.c static-services.h \
50         ini-file-parser.c ini-file-parser.h
51
52 avahi_daemon_CFLAGS = $(AM_CFLAGS) $(LIBDAEMON_CFLAGS)
53 avahi_daemon_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la $(LIBDAEMON_LIBS) -lexpat
54
55 ini_file_parser_test_SOURCES = \
56         ini-file-parser.c ini-file-parser.h \
57         ini-file-parser-test.c
58
59 ini_file_parser_test_CFLAGS = $(AM_CFLAGS)
60 ini_file_parser_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la 
61
62 pkgsysconf_DATA = \
63         avahi-daemon.conf
64
65 service_DATA = \
66         ssh.service
67
68 pkgdata_DATA = \
69         avahi-service.dtd
70
71
72 if HAVE_DBUS
73
74 avahi_daemon_SOURCES += \
75         dbus-protocol.c \
76         dbus-protocol.h
77
78 avahi_daemon_LDADD += \
79         ../avahi-common/libdbus-common.la \
80         $(DBUS_LIBS)
81
82 avahi_daemon_CFLAGS += $(DBUS_CFLAGS)
83
84 dbusservice_DATA = avahi-dbus.conf
85
86 introspection_DATA = \
87         Server.introspect \
88         EntryGroup.introspect \
89         DomainBrowser.introspect \
90         ServiceTypeBrowser.introspect \
91         ServiceBrowser.introspect \
92         ServiceResolver.introspect \
93         AddressResolver.introspect \
94         HostNameResolver.introspect
95
96 endif
97 endif
98 endif
99
100 EXTRA_DIST = \
101         avahi-service.dtd \
102         avahi-daemon.conf \
103         example.service \
104         dbus-test.py \
105         avahi-dbus.conf \
106         Server.introspect \
107         EntryGroup.introspect \
108         DomainBrowser.introspect \
109         ServiceTypeBrowser.introspect \
110         ServiceBrowser.introspect \
111         ServiceResolver.introspect \
112         AddressResolver.introspect \
113         HostNameResolver.introspect \
114         ssh.service \
115         example.service \
116         introspect.dtd \
117         introspect.xsl
118
119 xmllint:
120         xmllint --noout --valid example.service
121         for F in $(introspection_DATA) ; do \
122                 xmllint --noout --valid $$F ; \
123         done