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 =
44 intllibs = @LTLIBINTL@
50 # Platform-dependent sources:
53 DBUS_LIB_arch_sources = \
57 DBUS_SHARED_arch_sources = \
63 dbus-sysdeps-thread-win.c \
64 dbus-transport-win.c \
67 DBUS_UTIL_arch_sources = \
68 dbus-sysdeps-util-win.c \
71 DBUS_LIB_arch_sources = \
77 DBUS_SHARED_arch_sources = \
82 dbus-sysdeps-pthread.c \
83 dbus-transport-unix.c \
84 dbus-transport-unix.h \
88 DBUS_UTIL_arch_sources = \
89 dbus-sysdeps-util-unix.c \
94 dbusinclude_HEADERS= \
104 dbus-pending-call.h \
113 dbusarchinclude_HEADERS= \
116 ### source code that goes in the installed client library
117 ### and is specific to library functionality
126 dbus-connection-internal.h \
132 dbus-marshal-header.c \
133 dbus-marshal-header.h \
134 dbus-marshal-byteswap.c \
135 dbus-marshal-byteswap.h \
136 dbus-marshal-recursive.c \
137 dbus-marshal-recursive.h \
138 dbus-marshal-validate.c \
139 dbus-marshal-validate.h \
141 dbus-message-internal.h \
142 dbus-message-private.h \
148 dbus-pending-call.c \
149 dbus-pending-call-internal.h \
153 dbus-server-debug-pipe.c \
154 dbus-server-debug-pipe.h \
155 dbus-server-protected.h \
156 dbus-server-socket.c \
157 dbus-server-socket.h \
158 $(DBUS_LIB_arch_sources) \
164 dbus-threads-internal.h \
168 dbus-transport-protected.h \
169 dbus-transport-socket.c \
170 dbus-transport-socket.h \
177 ### source code that goes in the installed client library
178 ### AND is generic utility functionality used by the
179 ### daemon or test programs (all symbols in here should
180 ### be underscore-prefixed)
181 DBUS_SHARED_SOURCES= \
192 dbus-marshal-basic.c \
193 dbus-marshal-basic.h \
201 dbus-string-private.h \
202 $(DBUS_SHARED_arch_sources) \
206 ### source code that is generic utility functionality used
207 ### by the bus daemon or test apps, but is NOT included
208 ### in the D-Bus client library (all symbols in here
209 ### should be underscore-prefixed but don't really need
210 ### to be unless they move to DBUS_SHARED_SOURCES later)
213 dbus-credentials-util.c \
216 dbus-marshal-byteswap-util.c \
217 dbus-marshal-recursive-util.c \
218 dbus-marshal-validate-util.c \
219 dbus-message-factory.c \
220 dbus-message-factory.h \
221 dbus-message-util.c \
224 $(DBUS_UTIL_arch_sources) \
227 dbus-sysdeps-util.c \
231 libdbus_1_la_SOURCES= \
232 $(DBUS_LIB_SOURCES) \
233 $(DBUS_SHARED_SOURCES)
235 libdbus_internal_la_SOURCES= \
236 $(DBUS_LIB_SOURCES) \
237 $(DBUS_SHARED_SOURCES) \
240 BUILT_SOURCES=$(dbusarchinclude_HEADERS)
241 EXTRA_DIST=dbus-arch-deps.h.in
244 ## this library is the same as libdbus, but exports all the symbols
245 ## and is only used for static linking within the dbus package.
246 noinst_LTLIBRARIES=libdbus-internal.la
248 libdbus_1_la_CPPFLAGS= -Ddbus_1_EXPORTS
249 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
250 libdbus_1_la_LDFLAGS= $(export_symbols) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined @R_DYNAMIC_LDFLAG@ @PIC_LDFLAGS@
252 libdbus_internal_la_CPPFLAGS = -DDBUS_STATIC_BUILD
253 libdbus_internal_la_LIBADD=$(DBUS_CLIENT_LIBS)
254 libdbus_internal_la_LDFLAGS=$(export_symbols_internal) @R_DYNAMIC_LDFLAG@
256 ## note that TESTS has special meaning (stuff to use in make check)
257 ## so if adding tests not to be run in make check, don't add them to
260 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
266 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
267 ## even when not doing "make check"
268 noinst_PROGRAMS=$(TESTS)
273 dbus_test_LDADD=libdbus-internal.la $(DBUS_TEST_LIBS)
274 dbus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
276 install-data-local: install-def-file
278 uninstall-local: uninstall-def-file
280 ## mop up the gcov files
282 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true