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 \
140 nodist_dbusarchinclude_HEADERS= \
143 ### source code that goes in the installed client library
144 ### and is specific to library functionality
151 dbus-connection-internal.h \
157 dbus-marshal-header.c \
158 dbus-marshal-header.h \
159 dbus-marshal-byteswap.c \
160 dbus-marshal-byteswap.h \
161 dbus-marshal-recursive.c \
162 dbus-marshal-recursive.h \
163 dbus-marshal-validate.c \
164 dbus-marshal-validate.h \
166 dbus-message-internal.h \
167 dbus-message-private.h \
173 dbus-pending-call.c \
174 dbus-pending-call-internal.h \
178 dbus-server-debug-pipe.c \
179 dbus-server-debug-pipe.h \
180 dbus-server-protected.h \
181 dbus-server-socket.c \
182 dbus-server-socket.h \
183 $(DBUS_LIB_arch_sources) \
190 dbus-threads-internal.h \
194 dbus-transport-protected.h \
195 dbus-transport-socket.c \
196 dbus-transport-socket.h \
200 ### source code that goes in the installed client library
201 ### AND is generic utility functionality used by the
202 ### daemon or test programs (all symbols in here should
203 ### be underscore-prefixed)
204 DBUS_SHARED_SOURCES= \
215 dbus-marshal-basic.c \
216 dbus-marshal-basic.h \
224 dbus-string-private.h \
225 $(DBUS_SHARED_arch_sources) \
228 dbus-valgrind-internal.h
230 ### source code that is generic utility functionality used
231 ### by the bus daemon or test apps, but is NOT included
232 ### in the D-Bus client library (all symbols in here
233 ### should be underscore-prefixed but don't really need
234 ### to be unless they move to DBUS_SHARED_SOURCES later)
239 dbus-credentials-util.c \
242 dbus-marshal-byteswap-util.c \
243 dbus-marshal-recursive-util.c \
244 dbus-marshal-validate-util.c \
245 dbus-message-factory.c \
246 dbus-message-factory.h \
247 dbus-message-util.c \
250 $(DBUS_UTIL_arch_sources) \
253 dbus-socket-set-poll.c \
256 dbus-sysdeps-util.c \
260 libdbus_1_la_SOURCES= \
261 $(DBUS_LIB_SOURCES) \
262 $(DBUS_SHARED_SOURCES)
264 libdbus_internal_la_SOURCES= \
265 $(DBUS_LIB_SOURCES) \
266 $(DBUS_SHARED_SOURCES) \
269 BUILT_SOURCES=$(nodist_dbusarchinclude_HEADERS)
270 EXTRA_DIST=dbus-arch-deps.h.in
272 ## this library is the same as libdbus, but exports all the symbols
273 ## and is only used for static linking within the dbus package.
274 noinst_LTLIBRARIES=libdbus-internal.la
276 libdbus_1_la_CPPFLAGS = \
280 libdbus_1_la_LIBADD= $(LIBDBUS_LIBS)
281 libdbus_1_la_LDFLAGS = \
284 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
288 libdbus_internal_la_CPPFLAGS = \
290 -DDBUS_STATIC_BUILD \
292 libdbus_internal_la_LIBADD=$(LIBDBUS_LIBS) $(SYSTEMD_LIBS)
297 # We can't actually run this til we've reached test/
298 noinst_PROGRAMS += dbus-test
304 dbus_test_LDADD = libdbus-internal.la
306 ## mop up the gcov files
308 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true
311 curl http://cgit.freedesktop.org/systemd/systemd/plain/src/libsystemd-daemon/sd-daemon.c > $(srcdir)/sd-daemon.c
312 curl http://cgit.freedesktop.org/systemd/systemd/plain/src/systemd/sd-daemon.h > $(srcdir)/sd-daemon.h