2 dbusdatadir=$(datadir)/dbus-1
7 $(DBUS_STATIC_BUILD_CPPFLAGS) \
11 -DDBUS_MACHINE_UUID_FILE=\""$(localstatedir)/lib/dbus/machine-id"\" \
12 -DDBUS_SYSTEM_CONFIG_FILE=\""$(dbusdatadir)/system.conf"\" \
13 -DDBUS_SESSION_CONFIG_FILE=\""$(dbusdatadir)/session.conf"\" \
20 AM_CFLAGS += $(CFLAG_VISIBILITY)
22 -DDBUS_EXPORT='__attribute__((__visibility__("default")))' \
23 -DDBUS_PRIVATE_EXPORT='__attribute__((__visibility__("default")))' \
28 # if assertions are enabled, improve backtraces
29 AM_LDFLAGS = @R_DYNAMIC_LDFLAG@
31 dbusincludedir=$(includedir)/dbus-1.0/dbus
32 dbusarchincludedir=$(libdir)/dbus-1.0/include/dbus
34 lib_LTLIBRARIES=libdbus-1.la
37 # Deal with W32 .def and version-info.rc stuff
46 dbus_res = versioninfo.o
47 dbus_res_ldflag = -Wl,$(dbus_res)
48 no_undefined = -no-undefined
51 EXTRA_libdbus_1_la_DEPENDENCIES = $(dbus_res)
59 intllibs = @LTLIBINTL@
65 # Platform-dependent sources:
68 DBUS_LIB_arch_sources = \
73 wince_source = dbus-sysdeps-wince-glue.h dbus-sysdeps-wince-glue.c
78 DBUS_SHARED_arch_sources = \
85 dbus-sysdeps-thread-win.c \
86 dbus-transport-win.c \
89 DBUS_UTIL_arch_sources = \
90 dbus-sysdeps-util-win.c \
94 if DBUS_ENABLE_LAUNCHD
95 launchd_source = dbus-server-launchd.h dbus-server-launchd.c
100 DBUS_LIB_arch_sources = \
106 DBUS_SHARED_arch_sources = \
110 dbus-sysdeps-unix.c \
111 dbus-sysdeps-unix.h \
112 dbus-sysdeps-pthread.c \
113 dbus-transport-unix.c \
114 dbus-transport-unix.h \
119 DBUS_UTIL_arch_sources = \
120 dbus-sysdeps-util-unix.c \
126 DBUS_UTIL_arch_sources += dbus-socket-set-epoll.c
129 dbusinclude_HEADERS= \
139 dbus-pending-call.h \
149 nodist_dbusarchinclude_HEADERS= \
152 ### source code that goes in the installed client library
153 ### and is specific to library functionality
160 dbus-connection-internal.h \
166 dbus-marshal-header.c \
167 dbus-marshal-header.h \
168 dbus-marshal-byteswap.c \
169 dbus-marshal-byteswap.h \
170 dbus-marshal-recursive.c \
171 dbus-marshal-recursive.h \
172 dbus-marshal-validate.c \
173 dbus-marshal-validate.h \
175 dbus-message-internal.h \
176 dbus-message-private.h \
182 dbus-pending-call.c \
183 dbus-pending-call-internal.h \
187 dbus-server-debug-pipe.c \
188 dbus-server-debug-pipe.h \
189 dbus-server-protected.h \
190 dbus-server-socket.c \
191 dbus-server-socket.h \
192 $(DBUS_LIB_arch_sources) \
199 dbus-threads-internal.h \
203 dbus-transport-protected.h \
204 dbus-transport-socket.c \
205 dbus-transport-socket.h \
209 ### source code that goes in the installed client library
210 ### AND is generic utility functionality used by the
211 ### daemon or test programs (all symbols in here should
212 ### be underscore-prefixed)
213 DBUS_SHARED_SOURCES= \
224 dbus-marshal-basic.c \
225 dbus-marshal-basic.h \
233 dbus-string-private.h \
234 $(DBUS_SHARED_arch_sources) \
237 dbus-valgrind-internal.h
239 ### source code that is generic utility functionality used
240 ### by the bus daemon or test apps, but is NOT included
241 ### in the D-Bus client library (all symbols in here
242 ### should be underscore-prefixed but don't really need
243 ### to be unless they move to DBUS_SHARED_SOURCES later)
250 dbus-credentials-util.c \
253 dbus-marshal-byteswap-util.c \
254 dbus-marshal-recursive-util.c \
255 dbus-marshal-validate-util.c \
256 dbus-message-factory.c \
257 dbus-message-factory.h \
258 dbus-message-util.c \
261 $(DBUS_UTIL_arch_sources) \
264 dbus-socket-set-poll.c \
267 dbus-sysdeps-util.c \
271 libdbus_1_la_SOURCES= \
272 $(DBUS_LIB_SOURCES) \
273 $(DBUS_SHARED_SOURCES)
275 libdbus_internal_la_SOURCES= \
278 BUILT_SOURCES=$(nodist_dbusarchinclude_HEADERS)
279 EXTRA_DIST=dbus-arch-deps.h.in
281 noinst_LTLIBRARIES=libdbus-internal.la
283 libdbus_1_la_CPPFLAGS = \
288 if HAVE_LD_VERSION_SCRIPT
289 SYMBOL_EXPORT_LDFLAGS=-Wl,--version-script=Version
291 SYMBOL_EXPORT_LDFLAGS=
294 libdbus_1_la_LIBADD= $(LIBDBUS_LIBS)
295 libdbus_1_la_LDFLAGS = \
297 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
298 $(SYMBOL_EXPORT_LDFLAGS) \
302 libdbus_internal_la_LIBADD=$(LIBDBUS_LIBS) libdbus-1.la
305 # This must be a separate convenience library, otherwise libtool notices
306 # that libdbus-1 might contain C++, links it with g++ and links in libstdc++,
307 # even on Unix where in fact it doesn't contain any C++. For Windows, where
308 # this code is used, we don't actually need libstdc++.
309 noinst_LTLIBRARIES += libdbus-init-win.la
310 libdbus_init_win_la_SOURCES = dbus-init-win.cpp
311 libdbus_1_la_LIBADD += libdbus-init-win.la
316 if DBUS_ENABLE_EMBEDDED_TESTS
317 # We can't actually run this til we've reached test/
318 noinst_PROGRAMS += test-dbus
324 test_dbus_LDADD = libdbus-internal.la
326 ## mop up the gcov files
328 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true