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 \
112 DBUS_UTIL_arch_sources += dbus-socket-set-epoll.c
115 dbusinclude_HEADERS= \
125 dbus-pending-call.h \
134 nodist_dbusarchinclude_HEADERS= \
137 ### source code that goes in the installed client library
138 ### and is specific to library functionality
147 dbus-connection-internal.h \
153 dbus-marshal-header.c \
154 dbus-marshal-header.h \
155 dbus-marshal-byteswap.c \
156 dbus-marshal-byteswap.h \
157 dbus-marshal-recursive.c \
158 dbus-marshal-recursive.h \
159 dbus-marshal-validate.c \
160 dbus-marshal-validate.h \
162 dbus-message-internal.h \
163 dbus-message-private.h \
169 dbus-pending-call.c \
170 dbus-pending-call-internal.h \
174 dbus-server-debug-pipe.c \
175 dbus-server-debug-pipe.h \
176 dbus-server-protected.h \
177 dbus-server-socket.c \
178 dbus-server-socket.h \
179 $(DBUS_LIB_arch_sources) \
185 dbus-threads-internal.h \
189 dbus-transport-protected.h \
190 dbus-transport-socket.c \
191 dbus-transport-socket.h \
198 ### source code that goes in the installed client library
199 ### AND is generic utility functionality used by the
200 ### daemon or test programs (all symbols in here should
201 ### be underscore-prefixed)
202 DBUS_SHARED_SOURCES= \
213 dbus-marshal-basic.c \
214 dbus-marshal-basic.h \
222 dbus-string-private.h \
223 $(DBUS_SHARED_arch_sources) \
227 ### source code that is generic utility functionality used
228 ### by the bus daemon or test apps, but is NOT included
229 ### in the D-Bus client library (all symbols in here
230 ### should be underscore-prefixed but don't really need
231 ### to be unless they move to DBUS_SHARED_SOURCES later)
234 dbus-credentials-util.c \
237 dbus-marshal-byteswap-util.c \
238 dbus-marshal-recursive-util.c \
239 dbus-marshal-validate-util.c \
240 dbus-message-factory.c \
241 dbus-message-factory.h \
242 dbus-message-util.c \
245 $(DBUS_UTIL_arch_sources) \
248 dbus-socket-set-poll.c \
251 dbus-sysdeps-util.c \
255 libdbus_1_la_SOURCES= \
256 $(DBUS_LIB_SOURCES) \
257 $(DBUS_SHARED_SOURCES)
259 libdbus_internal_la_SOURCES= \
260 $(DBUS_LIB_SOURCES) \
261 $(DBUS_SHARED_SOURCES) \
264 BUILT_SOURCES=$(nodist_dbusarchinclude_HEADERS)
265 EXTRA_DIST=dbus-arch-deps.h.in
267 ## this library is the same as libdbus, but exports all the symbols
268 ## and is only used for static linking within the dbus package.
269 noinst_LTLIBRARIES=libdbus-internal.la
271 libdbus_1_la_CPPFLAGS= -Ddbus_1_EXPORTS
272 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
273 libdbus_1_la_LDFLAGS= $(export_symbols) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined @R_DYNAMIC_LDFLAG@
275 libdbus_internal_la_CPPFLAGS = -DDBUS_STATIC_BUILD
276 libdbus_internal_la_LIBADD=$(DBUS_CLIENT_LIBS)
277 libdbus_internal_la_LDFLAGS=$(export_symbols_internal) @R_DYNAMIC_LDFLAG@
279 ## note that TESTS has special meaning (stuff to use in make check)
280 ## so if adding tests not to be run in make check, don't add them to
283 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
289 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
290 ## even when not doing "make check"
291 noinst_PROGRAMS=$(TESTS)
296 dbus_test_LDADD=libdbus-internal.la $(DBUS_TEST_LIBS)
297 dbus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
299 ## mop up the gcov files
301 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true
304 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.c > sd-daemon.c
305 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.h > sd-daemon.h