2 configdir=$(sysconfdir)/dbus-1
8 -DDBUS_MACHINE_UUID_FILE=\""$(localstatedir)/lib/dbus/machine-id"\" \
9 -DDBUS_SYSTEM_CONFIG_FILE=\""$(configdir)/system.conf"\" \
10 -DDBUS_SESSION_CONFIG_FILE=\""$(configdir)/session.conf"\" \
13 # if assertions are enabled, improve backtraces
14 AM_LDFLAGS = @R_DYNAMIC_LDFLAG@
16 dbusincludedir=$(includedir)/dbus-1.0/dbus
17 dbusarchincludedir=$(libdir)/dbus-1.0/include/dbus
19 lib_LTLIBRARIES=libdbus-1.la
22 # Deal with W32 .def and version-info.rc stuff
31 dbus_res = versioninfo.o
32 dbus_res_ldflag = -Wl,$(dbus_res)
33 no_undefined = -no-undefined
36 libdbus_1_la_DEPENDENCIES = $(dbus_res)
43 ## don't export symbols that start with "_" (we use this
44 ## convention for internal symbols)
45 export_symbols = -export-symbols-regex "^[^_].*"
47 intllibs = @LTLIBINTL@
53 # Platform-dependent sources:
56 DBUS_LIB_arch_sources = \
61 wince_source = dbus-sysdeps-wince-glue.h dbus-sysdeps-wince-glue.c
66 DBUS_SHARED_arch_sources = \
73 dbus-sysdeps-thread-win.c \
74 dbus-transport-win.c \
77 DBUS_UTIL_arch_sources = \
78 dbus-sysdeps-util-win.c \
82 if DBUS_ENABLE_LAUNCHD
83 launchd_source = dbus-server-launchd.h dbus-server-launchd.c
88 DBUS_LIB_arch_sources = \
94 DBUS_SHARED_arch_sources = \
100 dbus-sysdeps-pthread.c \
101 dbus-transport-unix.c \
102 dbus-transport-unix.h \
108 DBUS_UTIL_arch_sources = \
109 dbus-sysdeps-util-unix.c \
114 dbusinclude_HEADERS= \
124 dbus-pending-call.h \
133 nodist_dbusarchinclude_HEADERS= \
136 ### source code that goes in the installed client library
137 ### and is specific to library functionality
144 dbus-connection-internal.h \
150 dbus-marshal-header.c \
151 dbus-marshal-header.h \
152 dbus-marshal-byteswap.c \
153 dbus-marshal-byteswap.h \
154 dbus-marshal-recursive.c \
155 dbus-marshal-recursive.h \
156 dbus-marshal-validate.c \
157 dbus-marshal-validate.h \
159 dbus-message-internal.h \
160 dbus-message-private.h \
166 dbus-pending-call.c \
167 dbus-pending-call-internal.h \
171 dbus-server-debug-pipe.c \
172 dbus-server-debug-pipe.h \
173 dbus-server-protected.h \
174 dbus-server-socket.c \
175 dbus-server-socket.h \
176 $(DBUS_LIB_arch_sources) \
182 dbus-threads-internal.h \
186 dbus-transport-protected.h \
187 dbus-transport-socket.c \
188 dbus-transport-socket.h \
192 ### source code that goes in the installed client library
193 ### AND is generic utility functionality used by the
194 ### daemon or test programs (all symbols in here should
195 ### be underscore-prefixed)
196 DBUS_SHARED_SOURCES= \
207 dbus-marshal-basic.c \
208 dbus-marshal-basic.h \
216 dbus-string-private.h \
217 $(DBUS_SHARED_arch_sources) \
221 ### source code that is generic utility functionality used
222 ### by the bus daemon or test apps, but is NOT included
223 ### in the D-Bus client library (all symbols in here
224 ### should be underscore-prefixed but don't really need
225 ### to be unless they move to DBUS_SHARED_SOURCES later)
230 dbus-credentials-util.c \
233 dbus-marshal-byteswap-util.c \
234 dbus-marshal-recursive-util.c \
235 dbus-marshal-validate-util.c \
236 dbus-message-factory.c \
237 dbus-message-factory.h \
238 dbus-message-util.c \
241 $(DBUS_UTIL_arch_sources) \
244 dbus-sysdeps-util.c \
248 libdbus_1_la_SOURCES= \
249 $(DBUS_LIB_SOURCES) \
250 $(DBUS_SHARED_SOURCES)
252 libdbus_internal_la_SOURCES= \
253 $(DBUS_LIB_SOURCES) \
254 $(DBUS_SHARED_SOURCES) \
257 BUILT_SOURCES=$(nodist_dbusarchinclude_HEADERS)
258 EXTRA_DIST=dbus-arch-deps.h.in
260 ## this library is the same as libdbus, but exports all the symbols
261 ## and is only used for static linking within the dbus package.
262 noinst_LTLIBRARIES=libdbus-internal.la
264 libdbus_1_la_CPPFLAGS = \
268 libdbus_1_la_LIBADD= $(LIBDBUS_LIBS)
269 libdbus_1_la_LDFLAGS = \
272 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
276 libdbus_internal_la_CPPFLAGS = \
278 -DDBUS_STATIC_BUILD \
280 libdbus_internal_la_LIBADD=$(LIBDBUS_LIBS)
285 # We can't actually run this til we've reached test/
286 noinst_PROGRAMS += dbus-test
292 dbus_test_LDADD = libdbus-internal.la
294 ## mop up the gcov files
296 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true
299 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.c > sd-daemon.c
300 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.h > sd-daemon.h