2 configdir=$(sysconfdir)/dbus-1
4 INCLUDES=-I$(top_builddir) -I$(top_srcdir) $(DBUS_CLIENT_CFLAGS) @PIC_CFLAGS@ -DDBUS_COMPILATION \
5 -DDBUS_MACHINE_UUID_FILE=\""$(localstatedir)/lib/dbus/machine-id"\" \
6 -DDBUS_SYSTEM_CONFIG_FILE=\""$(configdir)/system.conf"\" \
7 -DDBUS_SESSION_CONFIG_FILE=\""$(configdir)/session.conf"\"
9 dbusincludedir=$(includedir)/dbus-1.0/dbus
10 dbusarchincludedir=$(libdir)/dbus-1.0/include/dbus
12 lib_LTLIBRARIES=libdbus-1.la
15 # Deal with W32 .def and version-info.rc stuff
24 dbus_res = versioninfo.o
25 dbus_res_ldflag = -Wl,$(dbus_res)
26 no_undefined = -no-undefined
28 export_symvols_internal =
30 libdbus_1_la_DEPENDENCIES = $(dbus_res)
37 ## don't export symbols that start with "_" (we use this
38 ## convention for internal symbols)
39 export_symbols = -export-symbols-regex "^[^_].*"
40 export_symbols_internal =
42 intllibs = @LTLIBINTL@
48 # Platform-dependent sources:
51 DBUS_LIB_arch_sources = \
56 wince_source = dbus-sysdeps-wince-glue.h dbus-sysdeps-wince-glue.c
61 DBUS_SHARED_arch_sources = \
68 dbus-sysdeps-thread-win.c \
69 dbus-transport-win.c \
72 DBUS_UTIL_arch_sources = \
73 dbus-sysdeps-util-win.c \
77 if DBUS_ENABLE_LAUNCHD
78 launchd_source = dbus-server-launchd.h dbus-server-launchd.c
83 DBUS_LIB_arch_sources = \
89 DBUS_SHARED_arch_sources = \
95 dbus-sysdeps-pthread.c \
96 dbus-transport-unix.c \
97 dbus-transport-unix.h \
103 DBUS_UTIL_arch_sources = \
104 dbus-sysdeps-util-unix.c \
109 dbusinclude_HEADERS= \
119 dbus-pending-call.h \
128 nodist_dbusarchinclude_HEADERS= \
131 ### source code that goes in the installed client library
132 ### and is specific to library functionality
141 dbus-connection-internal.h \
147 dbus-marshal-header.c \
148 dbus-marshal-header.h \
149 dbus-marshal-byteswap.c \
150 dbus-marshal-byteswap.h \
151 dbus-marshal-recursive.c \
152 dbus-marshal-recursive.h \
153 dbus-marshal-validate.c \
154 dbus-marshal-validate.h \
156 dbus-message-internal.h \
157 dbus-message-private.h \
163 dbus-pending-call.c \
164 dbus-pending-call-internal.h \
168 dbus-server-debug-pipe.c \
169 dbus-server-debug-pipe.h \
170 dbus-server-protected.h \
171 dbus-server-socket.c \
172 dbus-server-socket.h \
173 $(DBUS_LIB_arch_sources) \
179 dbus-threads-internal.h \
183 dbus-transport-protected.h \
184 dbus-transport-socket.c \
185 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)
228 dbus-credentials-util.c \
231 dbus-marshal-byteswap-util.c \
232 dbus-marshal-recursive-util.c \
233 dbus-marshal-validate-util.c \
234 dbus-message-factory.c \
235 dbus-message-factory.h \
236 dbus-message-util.c \
239 $(DBUS_UTIL_arch_sources) \
242 dbus-sysdeps-util.c \
246 libdbus_1_la_SOURCES= \
247 $(DBUS_LIB_SOURCES) \
248 $(DBUS_SHARED_SOURCES)
250 libdbus_internal_la_SOURCES= \
251 $(DBUS_LIB_SOURCES) \
252 $(DBUS_SHARED_SOURCES) \
255 BUILT_SOURCES=$(nodist_dbusarchinclude_HEADERS)
256 EXTRA_DIST=dbus-arch-deps.h.in
258 ## this library is the same as libdbus, but exports all the symbols
259 ## and is only used for static linking within the dbus package.
260 noinst_LTLIBRARIES=libdbus-internal.la
262 libdbus_1_la_CPPFLAGS= -Ddbus_1_EXPORTS
263 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
264 libdbus_1_la_LDFLAGS= $(export_symbols) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined @R_DYNAMIC_LDFLAG@ @PIC_LDFLAGS@
266 libdbus_internal_la_CPPFLAGS = -DDBUS_STATIC_BUILD
267 libdbus_internal_la_LIBADD=$(DBUS_CLIENT_LIBS)
268 libdbus_internal_la_LDFLAGS=$(export_symbols_internal) @R_DYNAMIC_LDFLAG@
270 ## note that TESTS has special meaning (stuff to use in make check)
271 ## so if adding tests not to be run in make check, don't add them to
274 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
280 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
281 ## even when not doing "make check"
282 noinst_PROGRAMS=$(TESTS)
287 dbus_test_LDADD=libdbus-internal.la $(DBUS_TEST_LIBS)
288 dbus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
290 ## mop up the gcov files
292 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true
295 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.c > sd-daemon.c
296 curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.h > sd-daemon.h