2 configdir=$(sysconfdir)/dbus-1
10 -DDBUS_MACHINE_UUID_FILE=\""$(localstatedir)/lib/dbus/machine-id"\" \
11 -DDBUS_SYSTEM_CONFIG_FILE=\""$(configdir)/system.conf"\" \
12 -DDBUS_SESSION_CONFIG_FILE=\""$(configdir)/session.conf"\" \
15 # On Linux with glibc 2.17, sd-daemon.c support for POSIX message queues
16 # results in an otherwise unnecessary dependency on librt. Disable it.
17 AM_CPPFLAGS += -DSD_DAEMON_DISABLE_MQ
19 # if assertions are enabled, improve backtraces
20 AM_LDFLAGS = @R_DYNAMIC_LDFLAG@
22 dbusincludedir=$(includedir)/dbus-1.0/dbus
23 dbusarchincludedir=$(libdir)/dbus-1.0/include/dbus
25 lib_LTLIBRARIES=libdbus-1.la
28 # Deal with W32 .def and version-info.rc stuff
37 dbus_res = versioninfo.o
38 dbus_res_ldflag = -Wl,$(dbus_res)
39 no_undefined = -no-undefined
42 libdbus_1_la_DEPENDENCIES = $(dbus_res)
49 ## don't export symbols that start with "_" (we use this
50 ## convention for internal symbols)
51 export_symbols = -export-symbols-regex "^[^_].*"
53 intllibs = @LTLIBINTL@
59 # Platform-dependent sources:
62 DBUS_LIB_arch_sources = \
67 wince_source = dbus-sysdeps-wince-glue.h dbus-sysdeps-wince-glue.c
72 DBUS_SHARED_arch_sources = \
79 dbus-sysdeps-thread-win.c \
80 dbus-transport-win.c \
83 DBUS_UTIL_arch_sources = \
84 dbus-sysdeps-util-win.c \
88 if DBUS_ENABLE_LAUNCHD
89 launchd_source = dbus-server-launchd.h dbus-server-launchd.c
94 DBUS_LIB_arch_sources = \
100 DBUS_SHARED_arch_sources = \
104 dbus-sysdeps-unix.c \
105 dbus-sysdeps-unix.h \
106 dbus-sysdeps-pthread.c \
107 dbus-transport-unix.c \
108 dbus-transport-unix.h \
109 dbus-transport-kdbus.c \
110 dbus-transport-kdbus.h \
116 DBUS_UTIL_arch_sources = \
117 dbus-sysdeps-util-unix.c \
123 DBUS_UTIL_arch_sources += dbus-socket-set-epoll.c
126 dbusinclude_HEADERS= \
136 dbus-pending-call.h \
146 nodist_dbusarchinclude_HEADERS= \
149 ### source code that goes in the installed client library
150 ### and is specific to library functionality
157 dbus-connection-internal.h \
163 dbus-marshal-header.c \
164 dbus-marshal-header.h \
165 dbus-marshal-byteswap.c \
166 dbus-marshal-byteswap.h \
167 dbus-marshal-recursive.c \
168 dbus-marshal-recursive.h \
169 dbus-marshal-validate.c \
170 dbus-marshal-validate.h \
172 dbus-message-internal.h \
173 dbus-message-private.h \
179 dbus-pending-call.c \
180 dbus-pending-call-internal.h \
184 dbus-server-debug-pipe.c \
185 dbus-server-debug-pipe.h \
186 dbus-server-protected.h \
187 dbus-server-socket.c \
188 dbus-server-socket.h \
189 $(DBUS_LIB_arch_sources) \
196 dbus-threads-internal.h \
200 dbus-transport-protected.h \
201 dbus-transport-socket.c \
202 dbus-transport-socket.h \
206 ### source code that goes in the installed client library
207 ### AND is generic utility functionality used by the
208 ### daemon or test programs (all symbols in here should
209 ### be underscore-prefixed)
210 DBUS_SHARED_SOURCES= \
221 dbus-marshal-basic.c \
222 dbus-marshal-basic.h \
230 dbus-string-private.h \
231 $(DBUS_SHARED_arch_sources) \
234 dbus-valgrind-internal.h
236 ### source code that is generic utility functionality used
237 ### by the bus daemon or test apps, but is NOT included
238 ### in the D-Bus client library (all symbols in here
239 ### should be underscore-prefixed but don't really need
240 ### to be unless they move to DBUS_SHARED_SOURCES later)
245 dbus-credentials-util.c \
248 dbus-marshal-byteswap-util.c \
249 dbus-marshal-recursive-util.c \
250 dbus-marshal-validate-util.c \
251 dbus-message-factory.c \
252 dbus-message-factory.h \
253 dbus-message-util.c \
256 $(DBUS_UTIL_arch_sources) \
259 dbus-socket-set-poll.c \
262 dbus-sysdeps-util.c \
266 libdbus_1_la_SOURCES= \
267 $(DBUS_LIB_SOURCES) \
268 $(DBUS_SHARED_SOURCES)
270 libdbus_internal_la_SOURCES= \
271 $(DBUS_LIB_SOURCES) \
272 $(DBUS_SHARED_SOURCES) \
275 BUILT_SOURCES=$(nodist_dbusarchinclude_HEADERS)
276 EXTRA_DIST=dbus-arch-deps.h.in
278 ## this library is the same as libdbus, but exports all the symbols
279 ## and is only used for static linking within the dbus package.
280 noinst_LTLIBRARIES=libdbus-internal.la
282 libdbus_1_la_CPPFLAGS = \
286 libdbus_1_la_LIBADD= $(LIBDBUS_LIBS)
287 libdbus_1_la_LDFLAGS = \
290 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
294 libdbus_internal_la_CPPFLAGS = \
296 -DDBUS_STATIC_BUILD \
298 libdbus_internal_la_LIBADD=$(LIBDBUS_LIBS) $(SYSTEMD_LIBS)
301 # This must be a separate convenience library, otherwise libtool notices
302 # that libdbus-1 might contain C++, links it with g++ and links in libstdc++,
303 # even on Unix where in fact it doesn't contain any C++. For Windows, where
304 # this code is used, we don't actually need libstdc++.
305 noinst_LTLIBRARIES += libdbus-init-win.la
306 libdbus_init_win_la_SOURCES = dbus-init-win.cpp
307 libdbus_1_la_LIBADD += libdbus-init-win.la
308 libdbus_internal_la_LIBADD += libdbus-init-win.la
314 # We can't actually run this til we've reached test/
315 noinst_PROGRAMS += dbus-test
321 dbus_test_LDADD = libdbus-internal.la
323 ## mop up the gcov files
325 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true
328 curl http://cgit.freedesktop.org/systemd/systemd/plain/src/libsystemd-daemon/sd-daemon.c > $(srcdir)/sd-daemon.c
329 curl http://cgit.freedesktop.org/systemd/systemd/plain/src/systemd/sd-daemon.h > $(srcdir)/sd-daemon.h