2 dbusdatadir=$(datadir)/dbus-1
5 $(CODE_COVERAGE_CPPFLAGS) \
8 $(DBUS_STATIC_BUILD_CPPFLAGS) \
12 -DDBUS_MACHINE_UUID_FILE=\""$(localstatedir)/lib/dbus/machine-id"\" \
13 -DDBUS_SYSTEM_CONFIG_FILE=\""$(dbusdatadir)/system.conf"\" \
14 -DDBUS_SESSION_CONFIG_FILE=\""$(dbusdatadir)/session.conf"\" \
15 -DDBUS_RUNSTATEDIR=\""$(runstatedir)"\" \
19 $(CODE_COVERAGE_CFLAGS) \
24 AM_CFLAGS += $(CFLAG_VISIBILITY)
26 -DDBUS_EXPORT='__attribute__((__visibility__("default")))' \
27 -DDBUS_PRIVATE_EXPORT='__attribute__((__visibility__("default")))' \
32 # if assertions are enabled, improve backtraces
33 AM_LDFLAGS = @R_DYNAMIC_LDFLAG@
35 dbusincludedir=$(includedir)/dbus-1.0/dbus
36 dbusarchincludedir=$(libdir)/dbus-1.0/include/dbus
38 lib_LTLIBRARIES=libdbus-1.la
40 # Initialize to empty so that we can append later
41 nodist_libdbus_1_la_SOURCES =
44 # Deal with W32 .def and version-info.rc stuff
51 $(LIBTOOL) $(AM_V_lt) --tag=RC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(RC) $< -o $@
57 # Platform-dependent sources:
60 DBUS_LIB_arch_sources = \
65 nodist_libdbus_1_la_SOURCES += \
70 wince_source = dbus-sysdeps-wince-glue.h dbus-sysdeps-wince-glue.c
75 DBUS_SHARED_arch_sources = \
82 dbus-sysdeps-thread-win.c \
83 dbus-transport-win.c \
86 DBUS_UTIL_arch_sources = \
87 dbus-sysdeps-util-win.c \
91 if DBUS_ENABLE_LAUNCHD
92 launchd_source = dbus-server-launchd.h dbus-server-launchd.c
97 DBUS_LIB_arch_sources = \
103 DBUS_SHARED_arch_sources = \
107 dbus-sysdeps-unix.c \
108 dbus-sysdeps-unix.h \
109 dbus-sysdeps-pthread.c \
110 dbus-transport-unix.c \
111 dbus-transport-unix.h \
116 DBUS_SHARED_arch_sources += \
117 dbus-marshal-gvariant.c \
118 dbus-marshal-gvariant.h \
119 dbus-protocol-gvariant.h
121 if ENABLE_KDBUS_TRANSPORT
122 DBUS_SHARED_arch_sources += \
123 dbus-transport-kdbus.c \
124 dbus-transport-kdbus.h \
131 DBUS_UTIL_arch_sources = \
132 dbus-sysdeps-util-unix.c \
138 DBUS_UTIL_arch_sources += dbus-socket-set-epoll.c
141 dbusinclude_HEADERS= \
151 dbus-pending-call.h \
161 nodist_dbusarchinclude_HEADERS= \
164 ### source code that goes in the installed client library
165 ### and is specific to library functionality
172 dbus-connection-internal.h \
178 dbus-marshal-header.c \
179 dbus-marshal-header.h \
180 dbus-marshal-byteswap.c \
181 dbus-marshal-byteswap.h \
182 dbus-marshal-recursive.c \
183 dbus-marshal-recursive.h \
184 dbus-marshal-validate.c \
185 dbus-marshal-validate.h \
187 dbus-message-internal.h \
188 dbus-message-private.h \
194 dbus-pending-call.c \
195 dbus-pending-call-internal.h \
199 dbus-server-debug-pipe.c \
200 dbus-server-debug-pipe.h \
201 dbus-server-protected.h \
202 dbus-server-socket.c \
203 dbus-server-socket.h \
204 $(DBUS_LIB_arch_sources) \
211 dbus-threads-internal.h \
215 dbus-transport-protected.h \
216 dbus-transport-socket.c \
217 dbus-transport-socket.h \
221 ### source code that goes in the installed client library
222 ### AND is generic utility functionality used by the
223 ### daemon or test programs (all symbols in here should
224 ### be underscore-prefixed)
225 DBUS_SHARED_SOURCES= \
236 dbus-marshal-basic.c \
237 dbus-marshal-basic.h \
245 dbus-string-private.h \
246 $(DBUS_SHARED_arch_sources) \
249 dbus-valgrind-internal.h \
254 ### source code that is generic utility functionality used
255 ### by the bus daemon or test apps, but is NOT included
256 ### in the D-Bus client library (all symbols in here
257 ### should be underscore-prefixed but don't really need
258 ### to be unless they move to DBUS_SHARED_SOURCES later)
263 dbus-credentials-util.c \
266 dbus-marshal-byteswap-util.c \
267 dbus-marshal-recursive-util.c \
268 dbus-marshal-validate-util.c \
269 dbus-message-factory.c \
270 dbus-message-factory.h \
271 dbus-message-util.c \
274 $(DBUS_UTIL_arch_sources) \
277 dbus-socket-set-poll.c \
280 dbus-sysdeps-util.c \
284 if DBUS_ENABLE_EMBEDDED_TESTS
285 DBUS_UTIL_SOURCES += dbus-spawn-test.c
288 libdbus_1_la_SOURCES= \
289 $(DBUS_LIB_SOURCES) \
290 $(DBUS_SHARED_SOURCES)
292 libdbus_internal_la_SOURCES= \
295 BUILT_SOURCES=$(nodist_dbusarchinclude_HEADERS)
296 EXTRA_DIST=dbus-arch-deps.h.in
298 noinst_LTLIBRARIES=libdbus-internal.la
300 libdbus_1_la_CPPFLAGS = \
305 if HAVE_LD_VERSION_SCRIPT
306 SYMBOL_EXPORT_LDFLAGS=-Wl,--version-script=Version
308 SYMBOL_EXPORT_LDFLAGS=
311 libdbus_1_la_LIBADD= $(LIBDBUS_LIBS)
312 libdbus_1_la_LDFLAGS = \
314 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
315 $(SYMBOL_EXPORT_LDFLAGS) \
320 libdbus_1_la_CPPFLAGS += $(LIBDBUSPOLICY1_FLAGS)
321 libdbus_1_la_LIBADD += $(LIBDBUSPOLICY1_LIBS)
324 libdbus_internal_la_CPPFLAGS = \
326 -DDBUS_STATIC_BUILD \
328 libdbus_internal_la_LIBADD=$(LIBDBUS_LIBS) libdbus-1.la $(SYSTEMD_LIBS)
331 libdbus_internal_la_CPPFLAGS += $(LIBDBUSPOLICY1_FLAGS)
332 libdbus_internal_la_LIBADD += $(LIBDBUSPOLICY1_LIBS)
337 $(CODE_COVERAGE_CXXFLAGS) \
340 # This must be a separate convenience library, otherwise libtool notices
341 # that libdbus-1 might contain C++, links it with g++ and links in libstdc++,
342 # even on Unix where in fact it doesn't contain any C++. For Windows, where
343 # this code is used, we don't actually need libstdc++.
344 noinst_LTLIBRARIES += libdbus-init-win.la
345 libdbus_init_win_la_SOURCES = dbus-init-win.cpp
346 libdbus_1_la_LIBADD += libdbus-init-win.la
351 if DBUS_ENABLE_EMBEDDED_TESTS
352 # We can't actually run this til we've reached test/
353 noinst_PROGRAMS += test-dbus
359 test_dbus_LDADD = libdbus-internal.la
361 # Add rules for code-coverage testing, as defined by AX_CODE_COVERAGE
362 include $(top_srcdir)/aminclude_static.am
365 $(AM_V_at)rm -fr ./.dbus-keyrings