3 # This file is part of avahi.
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.
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.
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
20 AM_CFLAGS=-I$(top_srcdir)
22 # This cool debug trap works on i386/gcc only
23 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
28 pkgsysconfdir=$(sysconfdir)/avahi
29 servicedir=$(pkgsysconfdir)/services
30 introspectiondir=$(pkgdatadir)/introspection
31 dbusservicedir=$(DBUS_SYS_DIR)
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)\"
49 avahi_daemon_SOURCES = \
51 simple-protocol.c simple-protocol.h \
52 static-services.c static-services.h \
53 ini-file-parser.c ini-file-parser.h
55 avahi_daemon_CFLAGS = $(AM_CFLAGS) $(LIBDAEMON_CFLAGS)
56 avahi_daemon_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la $(LIBDAEMON_LIBS) -lexpat
58 ini_file_parser_test_SOURCES = \
59 ini-file-parser.c ini-file-parser.h \
60 ini-file-parser-test.c
62 ini_file_parser_test_CFLAGS = $(AM_CFLAGS)
63 ini_file_parser_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la
76 avahi_daemon_SOURCES += \
80 avahi_daemon_LDADD += -lcap
86 avahi_daemon_SOURCES += \
87 dbus-protocol.c dbus-protocol.h \
88 dbus-util.c dbus-util.h \
90 dbus-async-address-resolver.c \
91 dbus-async-host-name-resolver.c \
92 dbus-async-service-resolver.c \
93 dbus-domain-browser.c \
95 dbus-service-browser.c \
96 dbus-service-type-browser.c \
97 dbus-sync-address-resolver.c \
98 dbus-sync-host-name-resolver.c \
99 dbus-sync-service-resolver.c
101 avahi_daemon_LDADD += \
102 ../avahi-common/libdbus-common.la \
105 avahi_daemon_CFLAGS += $(DBUS_CFLAGS)
107 dbusservice_DATA = avahi-dbus.conf
109 introspection_DATA = \
111 EntryGroup.introspect \
112 DomainBrowser.introspect \
113 ServiceTypeBrowser.introspect \
114 ServiceBrowser.introspect \
115 ServiceResolver.introspect \
116 AddressResolver.introspect \
117 HostNameResolver.introspect
130 EntryGroup.introspect \
131 DomainBrowser.introspect \
132 ServiceTypeBrowser.introspect \
133 ServiceBrowser.introspect \
134 ServiceResolver.introspect \
135 AddressResolver.introspect \
136 HostNameResolver.introspect \
143 xmllint --noout --valid example.service
144 for F in $(introspection_DATA) ; do \
145 xmllint --noout --valid $$F ; \