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 = \
55 DBUS_SHARED_arch_sources = \
61 dbus-sysdeps-thread-win.c \
62 dbus-transport-win.c \
65 DBUS_UTIL_arch_sources = \
66 dbus-sysdeps-util-win.c \
69 DBUS_LIB_arch_sources = \
75 DBUS_SHARED_arch_sources = \
80 dbus-sysdeps-pthread.c \
81 dbus-transport-unix.c \
82 dbus-transport-unix.h \
86 DBUS_UTIL_arch_sources = \
87 dbus-sysdeps-util-unix.c \
92 dbusinclude_HEADERS= \
102 dbus-pending-call.h \
111 dbusarchinclude_HEADERS= \
114 ### source code that goes in the installed client library
115 ### and is specific to library functionality
124 dbus-connection-internal.h \
130 dbus-marshal-header.c \
131 dbus-marshal-header.h \
132 dbus-marshal-byteswap.c \
133 dbus-marshal-byteswap.h \
134 dbus-marshal-recursive.c \
135 dbus-marshal-recursive.h \
136 dbus-marshal-validate.c \
137 dbus-marshal-validate.h \
139 dbus-message-internal.h \
140 dbus-message-private.h \
146 dbus-pending-call.c \
147 dbus-pending-call-internal.h \
151 dbus-server-debug-pipe.c \
152 dbus-server-debug-pipe.h \
153 dbus-server-protected.h \
154 dbus-server-socket.c \
155 dbus-server-socket.h \
156 $(DBUS_LIB_arch_sources) \
162 dbus-threads-internal.h \
166 dbus-transport-protected.h \
167 dbus-transport-socket.c \
168 dbus-transport-socket.h \
175 ### source code that goes in the installed client library
176 ### AND is generic utility functionality used by the
177 ### daemon or test programs (all symbols in here should
178 ### be underscore-prefixed)
179 DBUS_SHARED_SOURCES= \
190 dbus-marshal-basic.c \
191 dbus-marshal-basic.h \
199 dbus-string-private.h \
200 $(DBUS_SHARED_arch_sources) \
204 ### source code that is generic utility functionality used
205 ### by the bus daemon or test apps, but is NOT included
206 ### in the D-Bus client library (all symbols in here
207 ### should be underscore-prefixed but don't really need
208 ### to be unless they move to DBUS_SHARED_SOURCES later)
211 dbus-credentials-util.c \
214 dbus-marshal-byteswap-util.c \
215 dbus-marshal-recursive-util.c \
216 dbus-marshal-validate-util.c \
217 dbus-message-factory.c \
218 dbus-message-factory.h \
219 dbus-message-util.c \
222 $(DBUS_UTIL_arch_sources) \
225 dbus-sysdeps-util.c \
229 libdbus_1_la_SOURCES= \
230 $(DBUS_LIB_SOURCES) \
231 $(DBUS_SHARED_SOURCES)
233 libdbus_internal_la_SOURCES= \
234 $(DBUS_LIB_SOURCES) \
235 $(DBUS_SHARED_SOURCES) \
238 BUILT_SOURCES=$(dbusarchinclude_HEADERS)
239 EXTRA_DIST=dbus-arch-deps.h.in
242 ## this library is the same as libdbus, but exports all the symbols
243 ## and is only used for static linking within the dbus package.
244 noinst_LTLIBRARIES=libdbus-internal.la
246 libdbus_1_la_CPPFLAGS= -Ddbus_1_EXPORTS
247 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
248 libdbus_1_la_LDFLAGS= $(export_symbols) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined @R_DYNAMIC_LDFLAG@ @PIC_LDFLAGS@
250 libdbus_internal_la_CPPFLAGS = -DDBUS_STATIC_BUILD
251 libdbus_internal_la_LIBADD=$(DBUS_CLIENT_LIBS)
252 libdbus_internal_la_LDFLAGS=$(export_symbols_internal) @R_DYNAMIC_LDFLAG@
254 ## note that TESTS has special meaning (stuff to use in make check)
255 ## so if adding tests not to be run in make check, don't add them to
258 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
264 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
265 ## even when not doing "make check"
266 noinst_PROGRAMS=$(TESTS)
271 dbus_test_LDADD=libdbus-internal.la $(DBUS_TEST_LIBS)
272 dbus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
274 ## mop up the gcov files
276 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true