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_DBUS_INTROSPECTION_DIR=\"$(introspectiondir)\" \
38 -DAVAHI_CONFIG_DIR=\"$(pkgsysconfdir)\"
48 avahi_daemon_SOURCES = \
50 simple-protocol.c simple-protocol.h \
51 static-services.c static-services.h \
52 ini-file-parser.c ini-file-parser.h \
53 setproctitle.c setproctitle.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 dbusservicedir=$(DBUS_SYS_DIR)
88 avahi_daemon_SOURCES += \
89 dbus-protocol.c dbus-protocol.h \
90 dbus-util.c dbus-util.h \
92 dbus-async-address-resolver.c \
93 dbus-async-host-name-resolver.c \
94 dbus-async-service-resolver.c \
95 dbus-domain-browser.c \
97 dbus-service-browser.c \
98 dbus-service-type-browser.c \
99 dbus-sync-address-resolver.c \
100 dbus-sync-host-name-resolver.c \
101 dbus-sync-service-resolver.c \
102 dbus-record-browser.c \
103 ../avahi-common/dbus.c ../avahi-common/dbus.h \
104 ../avahi-common/dbus-watch-glue.c ../avahi-common/dbus-watch-glue.h \
105 ../avahi-client/check-nss.c
107 avahi_daemon_LDADD += \
111 avahi_daemon_LDADD += -ldl
114 avahi_daemon_CFLAGS += $(DBUS_CFLAGS)
116 dbusservice_DATA = avahi-dbus.conf
118 introspection_DATA = \
120 EntryGroup.introspect \
121 DomainBrowser.introspect \
122 ServiceTypeBrowser.introspect \
123 ServiceBrowser.introspect \
124 ServiceResolver.introspect \
125 AddressResolver.introspect \
126 HostNameResolver.introspect \
127 RecordBrowser.introspect
139 EntryGroup.introspect \
140 DomainBrowser.introspect \
141 ServiceTypeBrowser.introspect \
142 ServiceBrowser.introspect \
143 ServiceResolver.introspect \
144 AddressResolver.introspect \
145 HostNameResolver.introspect \
146 RecordBrowser.introspect \
153 xmllint --noout --valid example.service
154 for F in $(introspection_DATA) ; do \
155 xmllint --noout --valid $$F ; \