1 configdir=$(sysconfdir)/dbus-1
2 dbus_daemon_execdir = $(DBUS_DAEMONDIR)
12 DBUS_LAUNCHER_LIBS = \
21 -DDBUS_SYSTEM_CONFIG_FILE=\""$(configdir)/system.conf"\" \
26 # if assertions are enabled, improve backtraces
27 AM_LDFLAGS = @R_DYNAMIC_LDFLAG@
34 org.freedesktop.dbus-session.plist.in
40 if DBUS_ENABLE_LAUNCHD
41 agentdir=$(LAUNCHD_AGENT_DIR)
42 agent_DATA=org.freedesktop.dbus-session.plist
45 XML_SOURCES=config-loader-expat.c
47 if DBUS_BUS_ENABLE_KQUEUE
48 DIR_WATCH_SOURCE=dir-watch-kqueue.c
50 if DBUS_BUS_ENABLE_INOTIFY
51 DIR_WATCH_SOURCE=dir-watch-inotify.c
53 if DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX
54 DIR_WATCH_SOURCE=dir-watch-dnotify.c
56 DIR_WATCH_SOURCE=dir-watch-default.c
64 activation-exit-codes.h \
69 config-parser-common.c \
70 config-parser-common.h \
99 dbus_daemon_SOURCES= \
104 $(top_builddir)/dbus/libdbus-internal.la \
108 LAUNCH_HELPER_SOURCES= \
110 config-parser-common.c \
111 config-parser-common.h \
112 config-parser-trivial.c \
113 config-parser-trivial.h \
118 activation-exit-codes.h \
119 activation-helper.h \
122 ## This is the installed launch helper with the setuid checks
123 dbus_daemon_launch_helper_SOURCES= \
124 activation-helper-bin.c \
125 $(LAUNCH_HELPER_SOURCES)
127 dbus_daemon_launch_helper_LDADD= \
128 $(top_builddir)/dbus/libdbus-internal.la \
129 $(DBUS_LAUNCHER_LIBS)
131 ## we build another binary so we can do the launch testing without root privs.
132 ## DO NOT INSTALL THIS FILE
133 dbus_daemon_launch_helper_test_SOURCES= \
134 activation-helper-bin.c \
135 $(LAUNCH_HELPER_SOURCES)
137 dbus_daemon_launch_helper_test_LDADD= \
138 $(top_builddir)/dbus/libdbus-internal.la \
139 $(DBUS_LAUNCHER_LIBS)
141 dbus_daemon_launch_helper_test_CPPFLAGS = \
143 -DACTIVATION_LAUNCHER_TEST
145 ## we build yet another binary so we can do the OOM tests
146 ## DO NOT INSTALL THIS FILE
147 bus_test_launch_helper_SOURCES= \
148 test-launch-helper.c \
149 $(LAUNCH_HELPER_SOURCES)
151 bus_test_launch_helper_LDADD= \
152 $(top_builddir)/dbus/libdbus-internal.la \
153 $(DBUS_LAUNCHER_LIBS)
155 bus_test_launch_helper_CPPFLAGS = \
157 -DACTIVATION_LAUNCHER_TEST \
158 -DACTIVATION_LAUNCHER_DO_OOM
161 dbus_daemon_exec_PROGRAMS = dbus-daemon
163 libexec_PROGRAMS = dbus-daemon-launch-helper
166 ## Note that TESTS has special meaning (stuff to use in make check).
167 ## We don't actually want to run any of these tests until test/ has been
168 ## compiled, so we don't put them in TESTS here; we run them in test/
172 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
173 ## even when not doing "make check"
175 # run as a test by test/Makefile.am
176 noinst_PROGRAMS += bus-test bus-test-system
179 # run as a test by test/Makefile.am
180 noinst_PROGRAMS += bus-test-launch-helper
181 # this is used by the tests but is not,itself, a test
182 noinst_PROGRAMS += dbus-daemon-launch-helper-test
185 endif DBUS_BUILD_TESTS
187 bus_test_system_SOURCES= \
189 config-parser-common.c \
190 config-parser-common.h \
191 config-parser-trivial.c \
192 config-parser-trivial.h \
197 bus_test_system_LDADD=$(top_builddir)/dbus/libdbus-internal.la $(DBUS_BUS_LIBS)
203 bus_test_LDADD=$(top_builddir)/dbus/libdbus-internal.la $(DBUS_BUS_LIBS)
205 ## mop up the gcov files
207 /bin/rm *.bb *.bbg *.da *.gcov || true
210 $(mkinstalldirs) $(DESTDIR)$(localstatedir)/run/dbus
211 $(mkinstalldirs) $(DESTDIR)$(configdir)/system.d
212 $(mkinstalldirs) $(DESTDIR)$(configdir)/session.d
213 $(mkinstalldirs) $(DESTDIR)$(datadir)/dbus-1/services
214 $(mkinstalldirs) $(DESTDIR)$(datadir)/dbus-1/system-services
216 # Install dbus.socket as default implementation of a D-Bus stack.
217 # Deliberately not using $(LN_S) here: ln -fs is not universally portable,
218 # but neither is systemd, so it's OK to assume here that ln complies with SUS.
219 $(mkinstalldirs) $(DESTDIR)$(systemdsystemunitdir)/dbus.target.wants
220 ln -fs ../dbus.socket $(DESTDIR)$(systemdsystemunitdir)/dbus.target.wants/dbus.socket
221 # Unconditionally enable D-Bus on systemd installations
222 $(mkinstalldirs) $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants
223 ln -fs ../dbus.socket $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants/dbus.socket
224 $(mkinstalldirs) $(DESTDIR)$(systemdsystemunitdir)/multi-user.target.wants
225 ln -fs ../dbus.service $(DESTDIR)$(systemdsystemunitdir)/multi-user.target.wants/dbus.service
230 if test `id -u` -eq 0; then \
231 chown root:$(DBUS_USER) $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper$(EXEEXT); \
232 chmod 4750 $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper$(EXEEXT); \
234 echo "Not installing $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper binary setuid!"; \
235 echo "You'll need to manually set permissions to root:$(DBUS_USER) and permissions 4750"; \
239 #### Init scripts fun
240 SCRIPT_IN_FILES=messagebus.in \
241 messagebus-config.in \
245 if DBUS_INIT_SCRIPTS_RED_HAT
247 initddir=$(sysconfdir)/rc.d/init.d
256 if DBUS_INIT_SCRIPTS_SLACKWARE
258 initddir=$(sysconfdir)/rc.d/
267 if DBUS_INIT_SCRIPTS_CYGWIN
280 systemdsystemunit_DATA = \
287 EXTRA_DIST=$(CONFIG_IN_FILES) $(SCRIPT_IN_FILES)