2 configdir=$(sysconfdir)/dbus-1
4 INCLUDES = -I$(top_builddir) -I$(top_srcdir) \
5 $(DBUS_CLIENT_CFLAGS) \
7 -DDBUS_MACHINE_UUID_FILE=\""$(localstatedir)/lib/dbus/machine-id"\" \
8 -DDBUS_SYSTEM_CONFIG_FILE=\""$(configdir)/system.conf"\" \
9 -DDBUS_SESSION_CONFIG_FILE=\""$(configdir)/session.conf"\"
11 dbusincludedir=$(includedir)/dbus-1.0/dbus
12 dbusarchincludedir=$(libdir)/dbus-1.0/include/dbus
14 lib_LTLIBRARIES=libdbus-1.la
17 # Deal with W32 .def and version-info.rc stuff
26 dbus_res = versioninfo.o
27 dbus_res_ldflag = -Wl,$(dbus_res)
28 no_undefined = -no-undefined
30 export_symvols_internal =
32 libdbus_1_la_DEPENDENCIES = $(dbus_res)
39 ## don't export symbols that start with "_" (we use this
40 ## convention for internal symbols)
41 export_symbols = -export-symbols-regex "^[^_].*"
42 export_symbols_internal =
44 intllibs = @LTLIBINTL@
50 # Platform-dependent sources:
53 DBUS_LIB_arch_sources = \
58 wince_source = dbus-sysdeps-wince-glue.h dbus-sysdeps-wince-glue.c
63 DBUS_SHARED_arch_sources = \
70 dbus-sysdeps-thread-win.c \
71 dbus-transport-win.c \
74 DBUS_UTIL_arch_sources = \
75 dbus-sysdeps-util-win.c \
79 if DBUS_ENABLE_LAUNCHD
80 launchd_source = dbus-server-launchd.h dbus-server-launchd.c
85 DBUS_LIB_arch_sources = \
91 DBUS_SHARED_arch_sources = \
97 dbus-sysdeps-pthread.c \
98 dbus-transport-unix.c \
99 dbus-transport-unix.h \
105 DBUS_UTIL_arch_sources = \
106 dbus-sysdeps-util-unix.c \
111 dbusinclude_HEADERS= \
121 dbus-pending-call.h \
130 nodist_dbusarchinclude_HEADERS= \
133 ### source code that goes in the installed client library
134 ### and is specific to library functionality
143 dbus-connection-internal.h \
149 dbus-marshal-header.c \
150 dbus-marshal-header.h \
151 dbus-marshal-byteswap.c \
152 dbus-marshal-byteswap.h \
153 dbus-marshal-recursive.c \
154 dbus-marshal-recursive.h \
155 dbus-marshal-validate.c \
156 dbus-marshal-validate.h \
158 dbus-message-internal.h \
159 dbus-message-private.h \
165 dbus-pending-call.c \
166 dbus-pending-call-internal.h \
170 dbus-server-debug-pipe.c \
171 dbus-server-debug-pipe.h \
172 dbus-server-protected.h \
173 dbus-server-socket.c \
174 dbus-server-socket.h \
175 $(DBUS_LIB_arch_sources) \
181 dbus-threads-internal.h \
185 dbus-transport-protected.h \
186 dbus-transport-socket.c \
187 dbus-transport-socket.h \
191 ### source code that goes in the installed client library
192 ### AND is generic utility functionality used by the
193 ### daemon or test programs (all symbols in here should
194 ### be underscore-prefixed)
195 DBUS_SHARED_SOURCES= \
206 dbus-marshal-basic.c \
207 dbus-marshal-basic.h \
215 dbus-string-private.h \
216 $(DBUS_SHARED_arch_sources) \
220 ### source code that is generic utility functionality used
221 ### by the bus daemon or test apps, but is NOT included
222 ### in the D-Bus client library (all symbols in here
223 ### should be underscore-prefixed but don't really need
224 ### to be unless they move to DBUS_SHARED_SOURCES later)
227 dbus-credentials-util.c \
230 dbus-marshal-byteswap-util.c \
231 dbus-marshal-recursive-util.c \
232 dbus-marshal-validate-util.c \
233 dbus-message-factory.c \
234 dbus-message-factory.h \
235 dbus-message-util.c \
238 $(DBUS_UTIL_arch_sources) \
241 dbus-sysdeps-util.c \
245 libdbus_1_la_SOURCES= \
246 $(DBUS_LIB_SOURCES) \
247 $(DBUS_SHARED_SOURCES)
249 libdbus_internal_la_SOURCES= \
250 $(DBUS_LIB_SOURCES) \
251 $(DBUS_SHARED_SOURCES) \
254 BUILT_SOURCES=$(nodist_dbusarchinclude_HEADERS)
255 EXTRA_DIST=dbus-arch-deps.h.in
257 ## this library is the same as libdbus, but exports all the symbols
258 ## and is only used for static linking within the dbus package.
259 noinst_LTLIBRARIES=libdbus-internal.la
261 libdbus_1_la_CPPFLAGS= -Ddbus_1_EXPORTS
262 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
263 libdbus_1_la_LDFLAGS= $(export_symbols) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined @R_DYNAMIC_LDFLAG@
265 libdbus_internal_la_CPPFLAGS = -DDBUS_STATIC_BUILD
266 libdbus_internal_la_LIBADD=$(DBUS_CLIENT_LIBS)
267 libdbus_internal_la_LDFLAGS=$(export_symbols_internal) @R_DYNAMIC_LDFLAG@
272 # We can't actually run this til we've reached test/
273 noinst_PROGRAMS += dbus-test
279 dbus_test_LDADD=libdbus-internal.la $(DBUS_TEST_LIBS)
280 dbus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
282 ## mop up the gcov files
284 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true
287 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.c > sd-daemon.c
288 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.h > sd-daemon.h