2 configdir=$(sysconfdir)/dbus-1
9 -DDBUS_MACHINE_UUID_FILE=\""$(localstatedir)/lib/dbus/machine-id"\" \
10 -DDBUS_SYSTEM_CONFIG_FILE=\""$(configdir)/system.conf"\" \
11 -DDBUS_SESSION_CONFIG_FILE=\""$(configdir)/session.conf"\" \
14 # if assertions are enabled, improve backtraces
15 AM_LDFLAGS = @R_DYNAMIC_LDFLAG@
17 dbusincludedir=$(includedir)/dbus-1.0/dbus
18 dbusarchincludedir=$(libdir)/dbus-1.0/include/dbus
20 lib_LTLIBRARIES=libdbus-1.la
23 # Deal with W32 .def and version-info.rc stuff
32 dbus_res = versioninfo.o
33 dbus_res_ldflag = -Wl,$(dbus_res)
34 no_undefined = -no-undefined
37 libdbus_1_la_DEPENDENCIES = $(dbus_res)
44 ## don't export symbols that start with "_" (we use this
45 ## convention for internal symbols)
46 export_symbols = -export-symbols-regex "^[^_].*"
48 intllibs = @LTLIBINTL@
54 # Platform-dependent sources:
57 DBUS_LIB_arch_sources = \
62 wince_source = dbus-sysdeps-wince-glue.h dbus-sysdeps-wince-glue.c
67 DBUS_SHARED_arch_sources = \
74 dbus-sysdeps-thread-win.c \
75 dbus-transport-win.c \
78 DBUS_UTIL_arch_sources = \
79 dbus-sysdeps-util-win.c \
83 if DBUS_ENABLE_LAUNCHD
84 launchd_source = dbus-server-launchd.h dbus-server-launchd.c
89 DBUS_LIB_arch_sources = \
95 DBUS_SHARED_arch_sources = \
100 dbus-sysdeps-unix.h \
101 dbus-sysdeps-pthread.c \
102 dbus-transport-unix.c \
103 dbus-transport-unix.h \
109 DBUS_UTIL_arch_sources = \
110 dbus-sysdeps-util-unix.c \
116 DBUS_UTIL_arch_sources += dbus-socket-set-epoll.c
119 dbusinclude_HEADERS= \
129 dbus-pending-call.h \
138 nodist_dbusarchinclude_HEADERS= \
141 ### source code that goes in the installed client library
142 ### and is specific to library functionality
149 dbus-connection-internal.h \
155 dbus-marshal-header.c \
156 dbus-marshal-header.h \
157 dbus-marshal-byteswap.c \
158 dbus-marshal-byteswap.h \
159 dbus-marshal-recursive.c \
160 dbus-marshal-recursive.h \
161 dbus-marshal-validate.c \
162 dbus-marshal-validate.h \
164 dbus-message-internal.h \
165 dbus-message-private.h \
171 dbus-pending-call.c \
172 dbus-pending-call-internal.h \
176 dbus-server-debug-pipe.c \
177 dbus-server-debug-pipe.h \
178 dbus-server-protected.h \
179 dbus-server-socket.c \
180 dbus-server-socket.h \
181 $(DBUS_LIB_arch_sources) \
187 dbus-threads-internal.h \
191 dbus-transport-protected.h \
192 dbus-transport-socket.c \
193 dbus-transport-socket.h \
197 ### source code that goes in the installed client library
198 ### AND is generic utility functionality used by the
199 ### daemon or test programs (all symbols in here should
200 ### be underscore-prefixed)
201 DBUS_SHARED_SOURCES= \
212 dbus-marshal-basic.c \
213 dbus-marshal-basic.h \
221 dbus-string-private.h \
222 $(DBUS_SHARED_arch_sources) \
226 ### source code that is generic utility functionality used
227 ### by the bus daemon or test apps, but is NOT included
228 ### in the D-Bus client library (all symbols in here
229 ### should be underscore-prefixed but don't really need
230 ### to be unless they move to DBUS_SHARED_SOURCES later)
235 dbus-credentials-util.c \
238 dbus-marshal-byteswap-util.c \
239 dbus-marshal-recursive-util.c \
240 dbus-marshal-validate-util.c \
241 dbus-message-factory.c \
242 dbus-message-factory.h \
243 dbus-message-util.c \
246 $(DBUS_UTIL_arch_sources) \
249 dbus-socket-set-poll.c \
252 dbus-sysdeps-util.c \
256 libdbus_1_la_SOURCES= \
257 $(DBUS_LIB_SOURCES) \
258 $(DBUS_SHARED_SOURCES)
260 libdbus_internal_la_SOURCES= \
261 $(DBUS_LIB_SOURCES) \
262 $(DBUS_SHARED_SOURCES) \
265 BUILT_SOURCES=$(nodist_dbusarchinclude_HEADERS)
266 EXTRA_DIST=dbus-arch-deps.h.in
268 ## this library is the same as libdbus, but exports all the symbols
269 ## and is only used for static linking within the dbus package.
270 noinst_LTLIBRARIES=libdbus-internal.la
272 libdbus_1_la_CPPFLAGS = \
276 libdbus_1_la_LIBADD= $(LIBDBUS_LIBS)
277 libdbus_1_la_LDFLAGS = \
280 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
284 libdbus_internal_la_CPPFLAGS = \
286 -DDBUS_STATIC_BUILD \
288 libdbus_internal_la_LIBADD=$(LIBDBUS_LIBS) $(SYSTEMD_LIBS)
293 # We can't actually run this til we've reached test/
294 noinst_PROGRAMS += dbus-test
300 dbus_test_LDADD = libdbus-internal.la
302 ## mop up the gcov files
304 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true
307 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.c > sd-daemon.c
308 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.h > sd-daemon.h