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
33 -DAVAHI_DAEMON_RUNTIME_DIR=\"$(avahi_runtime_dir)/avahi-daemon/\" \
34 -DAVAHI_SOCKET=\"$(avahi_socket)\" \
35 -DAVAHI_SERVICE_DIR=\"$(servicedir)\" \
36 -DAVAHI_CONFIG_FILE=\"$(pkgsysconfdir)/avahi-daemon.conf\" \
37 -DAVAHI_HOSTS_FILE=\"$(pkgsysconfdir)/hosts\" \
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 static-hosts.c static-hosts.h \
54 ini-file-parser.c ini-file-parser.h \
55 setproctitle.c setproctitle.h \
56 ../avahi-client/check-nss.c
58 avahi_daemon_CFLAGS = $(AM_CFLAGS) $(LIBDAEMON_CFLAGS)
59 avahi_daemon_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la $(LIBDAEMON_LIBS) -lexpat
61 ini_file_parser_test_SOURCES = \
62 ini-file-parser.c ini-file-parser.h \
63 ini-file-parser-test.c
65 ini_file_parser_test_CFLAGS = $(AM_CFLAGS)
66 ini_file_parser_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la
81 avahi_daemon_SOURCES += \
85 avahi_daemon_LDADD += -lcap
90 avahi_daemon_LDADD += -ldl
95 dbusservicedir=$(DBUS_SYS_DIR)
97 avahi_daemon_SOURCES += \
98 dbus-protocol.c dbus-protocol.h \
99 dbus-util.c dbus-util.h \
101 dbus-async-address-resolver.c \
102 dbus-async-host-name-resolver.c \
103 dbus-async-service-resolver.c \
104 dbus-domain-browser.c \
106 dbus-service-browser.c \
107 dbus-service-type-browser.c \
108 dbus-sync-address-resolver.c \
109 dbus-sync-host-name-resolver.c \
110 dbus-sync-service-resolver.c \
111 dbus-record-browser.c \
112 ../avahi-common/dbus.c ../avahi-common/dbus.h \
113 ../avahi-common/dbus-watch-glue.c ../avahi-common/dbus-watch-glue.h
115 avahi_daemon_LDADD += \
118 avahi_daemon_CFLAGS += $(DBUS_CFLAGS) -DDBUS_SYSTEM_BUS_DEFAULT_ADDRESS=\"$(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS)\"
120 dbusservice_DATA = avahi-dbus.conf
122 introspection_DATA = \
124 EntryGroup.introspect \
125 DomainBrowser.introspect \
126 ServiceTypeBrowser.introspect \
127 ServiceBrowser.introspect \
128 ServiceResolver.introspect \
129 AddressResolver.introspect \
130 HostNameResolver.introspect \
131 RecordBrowser.introspect
143 EntryGroup.introspect \
144 DomainBrowser.introspect \
145 ServiceTypeBrowser.introspect \
146 ServiceBrowser.introspect \
147 ServiceResolver.introspect \
148 AddressResolver.introspect \
149 HostNameResolver.introspect \
150 RecordBrowser.introspect \
159 xmllint --noout --valid example.service
160 for F in $(introspection_DATA) ; do \
161 xmllint --noout --valid $$F ; \
165 test -z "$(localstatedir)/run" || $(mkdir_p) "$(DESTDIR)$(localstatedir)/run"