]> git.meshlink.io Git - catta/blob - avahi-daemon/Makefile.am
* Implement client API for arbitrary record browsing
[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         -DAVAHI_CONFIG_DIR=\"$(pkgsysconfdir)\"
40
41 sbin_PROGRAMS = \
42         avahi-daemon
43
44 if ENABLE_TESTS
45 noinst_PROGRAMS = \
46         ini-file-parser-test
47 endif
48
49 avahi_daemon_SOURCES = \
50         main.c main.h \
51         simple-protocol.c simple-protocol.h \
52         static-services.c static-services.h \
53         ini-file-parser.c ini-file-parser.h \
54         setproctitle.c setproctitle.h
55
56 avahi_daemon_CFLAGS = $(AM_CFLAGS) $(LIBDAEMON_CFLAGS)
57 avahi_daemon_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la $(LIBDAEMON_LIBS) -lexpat
58
59 ini_file_parser_test_SOURCES = \
60         ini-file-parser.c ini-file-parser.h \
61         ini-file-parser-test.c
62
63 ini_file_parser_test_CFLAGS = $(AM_CFLAGS)
64 ini_file_parser_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la 
65
66 pkgsysconf_DATA = \
67         avahi-daemon.conf
68
69 service_DATA = \
70         ssh.service
71
72 pkgdata_DATA = \
73         avahi-service.dtd
74
75 if ENABLE_CHROOT
76
77 avahi_daemon_SOURCES += \
78         chroot.c chroot.h \
79         caps.c caps.h
80
81 avahi_daemon_LDADD += -lcap
82
83 endif
84
85 if HAVE_DBUS
86
87 avahi_daemon_SOURCES += \
88         dbus-protocol.c dbus-protocol.h \
89         dbus-util.c dbus-util.h \
90         dbus-internal.h \
91         dbus-async-address-resolver.c \
92         dbus-async-host-name-resolver.c \
93         dbus-async-service-resolver.c \
94         dbus-domain-browser.c \
95         dbus-entry-group.c \
96         dbus-service-browser.c \
97         dbus-service-type-browser.c \
98         dbus-sync-address-resolver.c \
99         dbus-sync-host-name-resolver.c \
100         dbus-sync-service-resolver.c \
101         dbus-record-browser.c
102
103 avahi_daemon_LDADD += \
104         ../avahi-common/libdbus-common.la \
105         $(DBUS_LIBS)
106
107 avahi_daemon_CFLAGS += $(DBUS_CFLAGS)
108
109 dbusservice_DATA = avahi-dbus.conf
110
111 introspection_DATA = \
112         Server.introspect \
113         EntryGroup.introspect \
114         DomainBrowser.introspect \
115         ServiceTypeBrowser.introspect \
116         ServiceBrowser.introspect \
117         ServiceResolver.introspect \
118         AddressResolver.introspect \
119         HostNameResolver.introspect \
120         RecordBrowser.introspect
121
122 endif
123 endif
124 endif
125
126 EXTRA_DIST = \
127         avahi-service.dtd \
128         avahi-daemon.conf \
129         example.service \
130         avahi-dbus.conf \
131         Server.introspect \
132         EntryGroup.introspect \
133         DomainBrowser.introspect \
134         ServiceTypeBrowser.introspect \
135         ServiceBrowser.introspect \
136         ServiceResolver.introspect \
137         AddressResolver.introspect \
138         HostNameResolver.introspect \
139         RecordBrowser.introspect \
140         ssh.service \
141         example.service \
142         introspect.dtd \
143         introspect.xsl
144
145 xmllint:
146         xmllint --noout --valid example.service
147         for F in $(introspection_DATA) ; do \
148                 xmllint --noout --valid $$F ; \
149         done