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 # if assertions are enabled, improve backtraces
16 AM_LDFLAGS = @R_DYNAMIC_LDFLAG@
18 dbusincludedir=$(includedir)/dbus-1.0/dbus
19 dbusarchincludedir=$(libdir)/dbus-1.0/include/dbus
21 lib_LTLIBRARIES=libdbus-1.la
24 # Deal with W32 .def and version-info.rc stuff
33 dbus_res = versioninfo.o
34 dbus_res_ldflag = -Wl,$(dbus_res)
35 no_undefined = -no-undefined
38 libdbus_1_la_DEPENDENCIES = $(dbus_res)
45 ## don't export symbols that start with "_" (we use this
46 ## convention for internal symbols)
47 export_symbols = -export-symbols-regex "^[^_].*"
49 intllibs = @LTLIBINTL@
55 # Platform-dependent sources:
58 DBUS_LIB_arch_sources = \
63 wince_source = dbus-sysdeps-wince-glue.h dbus-sysdeps-wince-glue.c
68 DBUS_SHARED_arch_sources = \
75 dbus-sysdeps-thread-win.c \
76 dbus-transport-win.c \
79 DBUS_UTIL_arch_sources = \
80 dbus-sysdeps-util-win.c \
84 if DBUS_ENABLE_LAUNCHD
85 launchd_source = dbus-server-launchd.h dbus-server-launchd.c
90 DBUS_LIB_arch_sources = \
96 DBUS_SHARED_arch_sources = \
100 dbus-sysdeps-unix.c \
101 dbus-sysdeps-unix.h \
102 dbus-sysdeps-pthread.c \
103 dbus-transport-unix.c \
104 dbus-transport-unix.h \
110 DBUS_UTIL_arch_sources = \
111 dbus-sysdeps-util-unix.c \
117 DBUS_UTIL_arch_sources += dbus-socket-set-epoll.c
120 dbusinclude_HEADERS= \
130 dbus-pending-call.h \
139 nodist_dbusarchinclude_HEADERS= \
142 ### source code that goes in the installed client library
143 ### and is specific to library functionality
150 dbus-connection-internal.h \
156 dbus-marshal-header.c \
157 dbus-marshal-header.h \
158 dbus-marshal-byteswap.c \
159 dbus-marshal-byteswap.h \
160 dbus-marshal-recursive.c \
161 dbus-marshal-recursive.h \
162 dbus-marshal-validate.c \
163 dbus-marshal-validate.h \
165 dbus-message-internal.h \
166 dbus-message-private.h \
172 dbus-pending-call.c \
173 dbus-pending-call-internal.h \
177 dbus-server-debug-pipe.c \
178 dbus-server-debug-pipe.h \
179 dbus-server-protected.h \
180 dbus-server-socket.c \
181 dbus-server-socket.h \
182 $(DBUS_LIB_arch_sources) \
188 dbus-threads-internal.h \
192 dbus-transport-protected.h \
193 dbus-transport-socket.c \
194 dbus-transport-socket.h \
198 ### source code that goes in the installed client library
199 ### AND is generic utility functionality used by the
200 ### daemon or test programs (all symbols in here should
201 ### be underscore-prefixed)
202 DBUS_SHARED_SOURCES= \
213 dbus-marshal-basic.c \
214 dbus-marshal-basic.h \
222 dbus-string-private.h \
223 $(DBUS_SHARED_arch_sources) \
226 dbus-valgrind-internal.h
228 ### source code that is generic utility functionality used
229 ### by the bus daemon or test apps, but is NOT included
230 ### in the D-Bus client library (all symbols in here
231 ### should be underscore-prefixed but don't really need
232 ### to be unless they move to DBUS_SHARED_SOURCES later)
237 dbus-credentials-util.c \
240 dbus-marshal-byteswap-util.c \
241 dbus-marshal-recursive-util.c \
242 dbus-marshal-validate-util.c \
243 dbus-message-factory.c \
244 dbus-message-factory.h \
245 dbus-message-util.c \
248 $(DBUS_UTIL_arch_sources) \
251 dbus-socket-set-poll.c \
254 dbus-sysdeps-util.c \
258 libdbus_1_la_SOURCES= \
259 $(DBUS_LIB_SOURCES) \
260 $(DBUS_SHARED_SOURCES)
262 libdbus_internal_la_SOURCES= \
263 $(DBUS_LIB_SOURCES) \
264 $(DBUS_SHARED_SOURCES) \
267 BUILT_SOURCES=$(nodist_dbusarchinclude_HEADERS)
268 EXTRA_DIST=dbus-arch-deps.h.in
270 ## this library is the same as libdbus, but exports all the symbols
271 ## and is only used for static linking within the dbus package.
272 noinst_LTLIBRARIES=libdbus-internal.la
274 libdbus_1_la_CPPFLAGS = \
278 libdbus_1_la_LIBADD= $(LIBDBUS_LIBS)
279 libdbus_1_la_LDFLAGS = \
282 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
286 libdbus_internal_la_CPPFLAGS = \
288 -DDBUS_STATIC_BUILD \
290 libdbus_internal_la_LIBADD=$(LIBDBUS_LIBS) $(SYSTEMD_LIBS)
295 # We can't actually run this til we've reached test/
296 noinst_PROGRAMS += dbus-test
302 dbus_test_LDADD = libdbus-internal.la
304 ## mop up the gcov files
306 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true
309 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.c > sd-daemon.c
310 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.h > sd-daemon.h