2 configdir=$(sysconfdir)/dbus-1
4 INCLUDES = -I$(top_builddir) -I$(top_srcdir) \
6 -DDBUS_MACHINE_UUID_FILE=\""$(localstatedir)/lib/dbus/machine-id"\" \
7 -DDBUS_SYSTEM_CONFIG_FILE=\""$(configdir)/system.conf"\" \
8 -DDBUS_SESSION_CONFIG_FILE=\""$(configdir)/session.conf"\"
10 # if assertions are enabled, improve backtraces
11 AM_LDFLAGS = @R_DYNAMIC_LDFLAG@
13 dbusincludedir=$(includedir)/dbus-1.0/dbus
14 dbusarchincludedir=$(libdir)/dbus-1.0/include/dbus
16 lib_LTLIBRARIES=libdbus-1.la
19 # Deal with W32 .def and version-info.rc stuff
28 dbus_res = versioninfo.o
29 dbus_res_ldflag = -Wl,$(dbus_res)
30 no_undefined = -no-undefined
32 export_symvols_internal =
34 libdbus_1_la_DEPENDENCIES = $(dbus_res)
41 ## don't export symbols that start with "_" (we use this
42 ## convention for internal symbols)
43 export_symbols = -export-symbols-regex "^[^_].*"
44 export_symbols_internal =
46 intllibs = @LTLIBINTL@
52 # Platform-dependent sources:
55 DBUS_LIB_arch_sources = \
60 wince_source = dbus-sysdeps-wince-glue.h dbus-sysdeps-wince-glue.c
65 DBUS_SHARED_arch_sources = \
72 dbus-sysdeps-thread-win.c \
73 dbus-transport-win.c \
76 DBUS_UTIL_arch_sources = \
77 dbus-sysdeps-util-win.c \
81 if DBUS_ENABLE_LAUNCHD
82 launchd_source = dbus-server-launchd.h dbus-server-launchd.c
87 DBUS_LIB_arch_sources = \
93 DBUS_SHARED_arch_sources = \
99 dbus-sysdeps-pthread.c \
100 dbus-transport-unix.c \
101 dbus-transport-unix.h \
107 DBUS_UTIL_arch_sources = \
108 dbus-sysdeps-util-unix.c \
113 dbusinclude_HEADERS= \
123 dbus-pending-call.h \
132 nodist_dbusarchinclude_HEADERS= \
135 ### source code that goes in the installed client library
136 ### and is specific to library functionality
145 dbus-connection-internal.h \
151 dbus-marshal-header.c \
152 dbus-marshal-header.h \
153 dbus-marshal-byteswap.c \
154 dbus-marshal-byteswap.h \
155 dbus-marshal-recursive.c \
156 dbus-marshal-recursive.h \
157 dbus-marshal-validate.c \
158 dbus-marshal-validate.h \
160 dbus-message-internal.h \
161 dbus-message-private.h \
167 dbus-pending-call.c \
168 dbus-pending-call-internal.h \
172 dbus-server-debug-pipe.c \
173 dbus-server-debug-pipe.h \
174 dbus-server-protected.h \
175 dbus-server-socket.c \
176 dbus-server-socket.h \
177 $(DBUS_LIB_arch_sources) \
183 dbus-threads-internal.h \
187 dbus-transport-protected.h \
188 dbus-transport-socket.c \
189 dbus-transport-socket.h \
193 ### source code that goes in the installed client library
194 ### AND is generic utility functionality used by the
195 ### daemon or test programs (all symbols in here should
196 ### be underscore-prefixed)
197 DBUS_SHARED_SOURCES= \
208 dbus-marshal-basic.c \
209 dbus-marshal-basic.h \
217 dbus-string-private.h \
218 $(DBUS_SHARED_arch_sources) \
222 ### source code that is generic utility functionality used
223 ### by the bus daemon or test apps, but is NOT included
224 ### in the D-Bus client library (all symbols in here
225 ### should be underscore-prefixed but don't really need
226 ### to be unless they move to DBUS_SHARED_SOURCES later)
229 dbus-credentials-util.c \
232 dbus-marshal-byteswap-util.c \
233 dbus-marshal-recursive-util.c \
234 dbus-marshal-validate-util.c \
235 dbus-message-factory.c \
236 dbus-message-factory.h \
237 dbus-message-util.c \
240 $(DBUS_UTIL_arch_sources) \
243 dbus-sysdeps-util.c \
247 libdbus_1_la_SOURCES= \
248 $(DBUS_LIB_SOURCES) \
249 $(DBUS_SHARED_SOURCES)
251 libdbus_internal_la_SOURCES= \
252 $(DBUS_LIB_SOURCES) \
253 $(DBUS_SHARED_SOURCES) \
256 BUILT_SOURCES=$(nodist_dbusarchinclude_HEADERS)
257 EXTRA_DIST=dbus-arch-deps.h.in
259 ## this library is the same as libdbus, but exports all the symbols
260 ## and is only used for static linking within the dbus package.
261 noinst_LTLIBRARIES=libdbus-internal.la
263 libdbus_1_la_CPPFLAGS= -Ddbus_1_EXPORTS
264 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
265 libdbus_1_la_LDFLAGS = \
268 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
272 libdbus_internal_la_CPPFLAGS = -DDBUS_STATIC_BUILD
273 libdbus_internal_la_LIBADD=$(DBUS_CLIENT_LIBS)
274 libdbus_internal_la_LDFLAGS = \
276 $(export_symbols_internal) \
282 # We can't actually run this til we've reached test/
283 noinst_PROGRAMS += dbus-test
289 dbus_test_LDADD=libdbus-internal.la $(DBUS_TEST_LIBS)
291 ## mop up the gcov files
293 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true
296 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.c > sd-daemon.c
297 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.h > sd-daemon.h