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 DIR_WATCH_SOURCE=dir-watch-default.c
60 activation-exit-codes.h \
65 config-parser-common.c \
66 config-parser-common.h \
95 if ENABLE_KDBUS_TRANSPORT
102 dbus_daemon_SOURCES= \
107 $(top_builddir)/dbus/libdbus-internal.la \
111 LAUNCH_HELPER_SOURCES= \
113 config-parser-common.c \
114 config-parser-common.h \
115 config-parser-trivial.c \
116 config-parser-trivial.h \
121 activation-exit-codes.h \
122 activation-helper.h \
125 ## This is the installed launch helper with the setuid checks
126 dbus_daemon_launch_helper_SOURCES= \
127 activation-helper-bin.c \
128 $(LAUNCH_HELPER_SOURCES)
130 dbus_daemon_launch_helper_LDADD= \
131 $(top_builddir)/dbus/libdbus-internal.la \
132 $(DBUS_LAUNCHER_LIBS)
134 ## we build another binary so we can do the launch testing without root privs.
135 ## DO NOT INSTALL THIS FILE
136 dbus_daemon_launch_helper_test_SOURCES= \
137 activation-helper-bin.c \
138 $(LAUNCH_HELPER_SOURCES)
140 dbus_daemon_launch_helper_test_LDADD= \
141 $(top_builddir)/dbus/libdbus-internal.la \
142 $(DBUS_LAUNCHER_LIBS)
144 dbus_daemon_launch_helper_test_CPPFLAGS = \
146 -DACTIVATION_LAUNCHER_TEST
148 ## we build yet another binary so we can do the OOM tests
149 ## DO NOT INSTALL THIS FILE
150 bus_test_launch_helper_SOURCES= \
151 test-launch-helper.c \
152 $(LAUNCH_HELPER_SOURCES)
154 bus_test_launch_helper_LDADD= \
155 $(top_builddir)/dbus/libdbus-internal.la \
156 $(DBUS_LAUNCHER_LIBS)
158 bus_test_launch_helper_CPPFLAGS = \
160 -DACTIVATION_LAUNCHER_TEST \
161 -DACTIVATION_LAUNCHER_DO_OOM
164 dbus_daemon_exec_PROGRAMS = dbus-daemon
166 libexec_PROGRAMS = dbus-daemon-launch-helper
169 ## Note that TESTS has special meaning (stuff to use in make check).
170 ## We don't actually want to run any of these tests until test/ has been
171 ## compiled, so we don't put them in TESTS here; we run them in test/
174 if DBUS_ENABLE_EMBEDDED_TESTS
175 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
176 ## even when not doing "make check"
178 # run as a test by test/Makefile.am
179 noinst_PROGRAMS += bus-test bus-test-system
182 # run as a test by test/Makefile.am
183 noinst_PROGRAMS += bus-test-launch-helper
184 # this is used by the tests but is not,itself, a test
185 noinst_PROGRAMS += dbus-daemon-launch-helper-test
188 endif DBUS_ENABLE_EMBEDDED_TESTS
190 bus_test_system_SOURCES= \
192 config-parser-common.c \
193 config-parser-common.h \
194 config-parser-trivial.c \
195 config-parser-trivial.h \
200 bus_test_system_LDADD=$(top_builddir)/dbus/libdbus-internal.la $(DBUS_BUS_LIBS)
206 bus_test_LDADD=$(top_builddir)/dbus/libdbus-internal.la $(DBUS_BUS_LIBS)
208 ## mop up the gcov files
210 /bin/rm *.bb *.bbg *.da *.gcov || true
213 $(mkinstalldirs) $(DESTDIR)$(localstatedir)/run/dbus
214 $(mkinstalldirs) $(DESTDIR)$(configdir)/system.d
215 $(mkinstalldirs) $(DESTDIR)$(configdir)/session.d
216 $(mkinstalldirs) $(DESTDIR)$(datadir)/dbus-1/services
217 $(mkinstalldirs) $(DESTDIR)$(datadir)/dbus-1/system-services
219 # Install dbus.socket as default implementation of a D-Bus stack.
220 # Deliberately not using $(LN_S) here: ln -fs is not universally portable,
221 # but neither is systemd, so it's OK to assume here that ln complies with SUS.
222 $(mkinstalldirs) $(DESTDIR)$(systemdsystemunitdir)/dbus.target.wants
223 ln -fs ../dbus.socket $(DESTDIR)$(systemdsystemunitdir)/dbus.target.wants/dbus.socket
224 # Unconditionally enable D-Bus on systemd installations
225 $(mkinstalldirs) $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants
226 ln -fs ../dbus.socket $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants/dbus.socket
227 $(mkinstalldirs) $(DESTDIR)$(systemdsystemunitdir)/multi-user.target.wants
228 ln -fs ../dbus.service $(DESTDIR)$(systemdsystemunitdir)/multi-user.target.wants/dbus.service
233 if test `id -u` -eq 0; then \
234 chown root:$(DBUS_USER) $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper$(EXEEXT); \
235 chmod 4750 $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper$(EXEEXT); \
237 echo "Not installing $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper binary setuid!"; \
238 echo "You'll need to manually set permissions to root:$(DBUS_USER) and permissions 4750"; \
242 #### Init scripts fun
243 SCRIPT_IN_FILES=messagebus.in \
244 messagebus-config.in \
248 if DBUS_INIT_SCRIPTS_RED_HAT
250 initddir=$(sysconfdir)/rc.d/init.d
259 if DBUS_INIT_SCRIPTS_SLACKWARE
261 initddir=$(sysconfdir)/rc.d/
270 if DBUS_INIT_SCRIPTS_CYGWIN
283 systemdsystemunit_DATA = \
290 EXTRA_DIST=$(CONFIG_IN_FILES) $(SCRIPT_IN_FILES)