2 configdir=$(sysconfdir)/dbus-1
4 INCLUDES=-I$(top_srcdir) $(DBUS_BUS_CFLAGS) \
5 -DDAEMON_NAME=\"dbus-daemon\" -DDBUS_COMPILATION \
6 -DDBUS_SYSTEM_CONFIG_FILE=\""$(configdir)/system.conf"\" \
7 -DDBUS_SESSION_CONFIG_FILE=\""$(configdir)/session.conf"\"
19 bin_PROGRAMS=dbus-daemon
22 XML_SOURCES=config-loader-libxml.c
25 XML_SOURCES=config-loader-expat.c
59 dbus_daemon_SOURCES= \
66 $(top_builddir)/dbus/libdbus-convenience.la
68 ## note that TESTS has special meaning (stuff to use in make check)
69 ## so if adding tests not to be run in make check, don't add them to
72 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
78 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
79 ## even when not doing "make check"
80 noinst_PROGRAMS=$(TESTS) print-introspect
86 bus_test_LDADD=$(top_builddir)/dbus/libdbus-convenience.la $(DBUS_BUS_LIBS)
88 print_introspect_SOURCES = print-introspect.c
89 print_introspect_LDADD = $(top_builddir)/dbus/libdbus-convenience.la $(DBUS_BUS_LIBS)
91 run-with-tmp-session-bus.sh: dbus-daemon
93 all-local: dbus-bus-introspect.xml
95 dbus-bus-introspect.xml: $(srcdir)/run-with-tmp-session-bus.sh
96 DBUS_TOP_BUILDDIR=$(top_builddir) $(srcdir)/run-with-tmp-session-bus.sh ./print-introspect org.freedesktop.DBus /org/freedesktop/DBus > dbus-bus-introspect.xml.tmp && mv dbus-bus-introspect.xml.tmp dbus-bus-introspect.xml
98 ## mop up the gcov files
100 /bin/rm *.bb *.bbg *.da *.gcov || true
101 /bin/rm -f run-with-tmp-session-bus.conf
104 $(mkinstalldirs) $(DESTDIR)/$(localstatedir)/run/dbus
105 $(mkinstalldirs) $(DESTDIR)/$(configdir)/system.d
106 $(mkinstalldirs) $(DESTDIR)/$(datadir)/dbus-1/services
108 #### Init scripts fun
109 SCRIPT_IN_FILES=messagebus.in \
113 if DBUS_INIT_SCRIPTS_RED_HAT
115 initddir=$(sysconfdir)/rc.d/init.d
124 if DBUS_INIT_SCRIPTS_SLACKWARE
126 initddir=$(sysconfdir)/rc.d/
134 MAN_IN_FILES=dbus-daemon.1.in
135 man_MANS = dbus-daemon.1
139 EXTRA_DIST=$(CONFIG_IN_FILES) $(SCRIPT_IN_FILES) $(man_MANS) $(MAN_IN_FILES) run-with-tmp-session-bus.sh