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 \
194 ### source code that goes in the installed client library
195 ### AND is generic utility functionality used by the
196 ### daemon or test programs (all symbols in here should
197 ### be underscore-prefixed)
198 DBUS_SHARED_SOURCES= \
209 dbus-marshal-basic.c \
210 dbus-marshal-basic.h \
218 dbus-string-private.h \
219 $(DBUS_SHARED_arch_sources) \
223 ### source code that is generic utility functionality used
224 ### by the bus daemon or test apps, but is NOT included
225 ### in the D-Bus client library (all symbols in here
226 ### should be underscore-prefixed but don't really need
227 ### 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-socket-set-poll.c \
247 dbus-sysdeps-util.c \
251 libdbus_1_la_SOURCES= \
252 $(DBUS_LIB_SOURCES) \
253 $(DBUS_SHARED_SOURCES)
255 libdbus_internal_la_SOURCES= \
256 $(DBUS_LIB_SOURCES) \
257 $(DBUS_SHARED_SOURCES) \
260 BUILT_SOURCES=$(nodist_dbusarchinclude_HEADERS)
261 EXTRA_DIST=dbus-arch-deps.h.in
263 ## this library is the same as libdbus, but exports all the symbols
264 ## and is only used for static linking within the dbus package.
265 noinst_LTLIBRARIES=libdbus-internal.la
267 libdbus_1_la_CPPFLAGS= -Ddbus_1_EXPORTS
268 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
269 libdbus_1_la_LDFLAGS= $(export_symbols) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined @R_DYNAMIC_LDFLAG@
271 libdbus_internal_la_CPPFLAGS = -DDBUS_STATIC_BUILD
272 libdbus_internal_la_LIBADD=$(DBUS_CLIENT_LIBS)
273 libdbus_internal_la_LDFLAGS=$(export_symbols_internal) @R_DYNAMIC_LDFLAG@
275 ## note that TESTS has special meaning (stuff to use in make check)
276 ## so if adding tests not to be run in make check, don't add them to
279 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
285 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
286 ## even when not doing "make check"
287 noinst_PROGRAMS=$(TESTS)
292 dbus_test_LDADD=libdbus-internal.la $(DBUS_TEST_LIBS)
293 dbus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
295 ## mop up the gcov files
297 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true
300 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.c > sd-daemon.c
301 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.h > sd-daemon.h