Makefile.am 2.32 KB
Newer Older
1 2
AM_CPPFLAGS = \
	-I$(top_srcdir) \
3
	$(DBUS_STATIC_BUILD_CPPFLAGS) \
4 5 6 7
	$(DBUS_X_CFLAGS) \
	-DDBUS_COMPILATION \
	-DDBUS_MACHINE_UUID_FILE=\""$(localstatedir)/lib/dbus/machine-id"\" \
	$(NULL)
8

9 10 11
# if assertions are enabled, improve backtraces
AM_LDFLAGS = @R_DYNAMIC_LDFLAG@

12 13 14 15
bin_PROGRAMS = \
	dbus-launch \
	dbus-monitor \
	dbus-send \
16
	dbus-test-tool \
17
	dbus-update-activation-environment \
18 19
	$(NULL)

20
if DBUS_UNIX
21 22
bin_PROGRAMS += \
	dbus-cleanup-sockets \
Simon McVittie's avatar
Simon McVittie committed
23
	dbus-run-session \
24 25
	dbus-uuidgen \
	$(NULL)
26 27
endif

28
dbus_send_SOURCES=				\
29 30
	dbus-print-message.c			\
	dbus-print-message.h			\
31 32 33 34
	dbus-send.c \
	tool-common.c \
	tool-common.h \
	$(NULL)
35

36 37 38 39 40 41 42
dbus_monitor_SOURCES = \
	dbus-monitor.c \
	dbus-print-message.c \
	dbus-print-message.h \
	tool-common.c \
	tool-common.h \
	$(NULL)
43

44 45 46 47 48
if DBUS_WIN
dbus_launch_SOURCES=				\
	dbus-launch-win.c			\
	dbus-launch.h
else
49
dbus_launch_SOURCES=				\
50
	dbus-launch.c				\
51
	dbus-launch-x11.c			\
52 53 54 55 56 57 58 59 60 61 62
	dbus-launch.h \
	tool-common.c \
	tool-common.h \
	$(NULL)
dbus_launch_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	$(NULL)
dbus_launch_LDADD = \
	$(top_builddir)/dbus/libdbus-1.la \
	$(DBUS_X_LIBS) \
	$(NULL)
Simon McVittie's avatar
Simon McVittie committed
63 64 65

dbus_run_session_SOURCES =			\
	dbus-run-session.c
66 67 68 69

dbus_run_session_LDADD = \
	$(top_builddir)/dbus/libdbus-1.la \
	$(NULL)
70
endif
71

72 73 74
dbus_cleanup_sockets_SOURCES=			\
	dbus-cleanup-sockets.c

75 76 77
dbus_uuidgen_SOURCES=				\
	dbus-uuidgen.c

Simon McVittie's avatar
Simon McVittie committed
78 79 80
dbus_send_LDADD = \
	$(top_builddir)/dbus/libdbus-1.la \
	$(NULL)
81

Simon McVittie's avatar
Simon McVittie committed
82 83 84 85
dbus_monitor_LDADD = \
	$(top_builddir)/dbus/libdbus-1.la \
	$(NETWORK_libs) \
	$(NULL)
86

Simon McVittie's avatar
Simon McVittie committed
87 88 89
dbus_uuidgen_LDADD = \
	$(top_builddir)/dbus/libdbus-1.la \
	$(NULL)
90

91 92 93 94 95
examplesdir = ${docdir}/examples
dist_examples_SCRIPTS = \
	GetAllMatchRules.py \
	$(NULL)

96 97 98 99 100 101 102 103 104 105
dbus_test_tool_SOURCES = \
	dbus-echo.c \
	dbus-spam.c \
	tool-common.c \
	tool-common.h \
	test-tool.c \
	test-tool.h \
	$(NULL)
dbus_test_tool_LDADD = $(top_builddir)/dbus/libdbus-1.la

106 107 108 109 110 111 112
dbus_update_activation_environment_SOURCES = \
	dbus-update-activation-environment.c \
	tool-common.c \
	tool-common.h \
	$(NULL)
dbus_update_activation_environment_LDADD = $(top_builddir)/dbus/libdbus-1.la

Will Thompson's avatar
Will Thompson committed
113
EXTRA_DIST = run-with-tmp-session-bus.sh strtoll.c strtoull.c
114
CLEANFILES = 				\
John Palmieri's avatar
John Palmieri committed
115
	run-with-tmp-session-bus.conf
116

117 118 119 120 121 122
# create the /var/lib/dbus directory for dbus-uuidgen
install-data-local:
	$(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/dbus

installcheck-local:
	test -d $(DESTDIR)$(localstatedir)/lib/dbus