1configdir=$(sysconfdir)/dbus-1
2
3AM_CPPFLAGS = \
4	-I$(top_srcdir) \
5	$(DBUS_STATIC_BUILD_CPPFLAGS) \
6	$(DBUS_X_CFLAGS) \
7	-DDBUS_COMPILATION \
8	-DDBUS_MACHINE_UUID_FILE=\""$(localstatedir)/lib/dbus/machine-id"\" \
9	$(NULL)
10
11# if assertions are enabled, improve backtraces
12AM_LDFLAGS = @R_DYNAMIC_LDFLAG@
13
14bin_PROGRAMS = \
15	dbus-launch \
16	dbus-monitor \
17	dbus-send \
18	$(NULL)
19
20if DBUS_UNIX
21bin_PROGRAMS += \
22	dbus-cleanup-sockets \
23	dbus-uuidgen \
24	$(NULL)
25endif
26
27dbus_send_SOURCES=				\
28	dbus-print-message.c			\
29	dbus-print-message.h			\
30	dbus-send.c
31
32dbus_monitor_SOURCES=				\
33	dbus-monitor.c				\
34	dbus-print-message.c			\
35	dbus-print-message.h
36
37if DBUS_WIN
38dbus_launch_SOURCES=				\
39	dbus-launch-win.c			\
40	dbus-launch.h
41else
42dbus_launch_SOURCES=				\
43	dbus-launch.c				\
44	dbus-launch-x11.c			\
45	dbus-launch.h
46endif
47
48dbus_cleanup_sockets_SOURCES=			\
49	dbus-cleanup-sockets.c
50
51dbus_uuidgen_SOURCES=				\
52	dbus-uuidgen.c
53
54dbus_send_LDADD = \
55	$(top_builddir)/dbus/libdbus-1.la \
56	$(NULL)
57
58dbus_monitor_LDADD = \
59	$(top_builddir)/dbus/libdbus-1.la \
60	$(NETWORK_libs) \
61	$(NULL)
62
63dbus_uuidgen_LDADD = \
64	$(top_builddir)/dbus/libdbus-1.la \
65	$(NULL)
66
67dbus_launch_LDADD = \
68	$(DBUS_X_LIBS) \
69	$(NULL)
70
71EXTRA_DIST = run-with-tmp-session-bus.sh strtoll.c strtoull.c
72CLEANFILES = 				\
73	run-with-tmp-session-bus.conf
74
75# create the /var/lib/dbus directory for dbus-uuidgen
76install-data-local:
77	$(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/dbus
78
79installcheck-local:
80	test -d $(DESTDIR)$(localstatedir)/lib/dbus
81