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
23 dbus_res = versioninfo.o
24 dbus_res_ldflag = -Wl,$(dbus_res)
25 no_undefined = -no-undefined
26 export_symbols = -export-symbols $(srcdir)/dbus-1.def
29 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
30 $(INSTALL) dbus-1.def $(DESTDIR)$(libdir)/dbus-1.def
33 -rm $(DESTDIR)$(libdir)/dbus-1.def
35 libdbus_1_la_DEPENDENCIES = $(dbus_res) dbus-1.def
42 ## don't export symbols that start with "_" (we use this
43 ## convention for internal symbols)
44 export_symbols = -export-symbols-regex "^[^_].*"
48 intllibs = @LTLIBINTL@
54 # Platform-dependent sources:
57 DBUS_LIB_arch_sources = \
61 DBUS_SHARED_arch_sources = \
65 dbus-sysdeps-thread-win.c \
66 dbus-transport-win.c \
69 DBUS_UTIL_arch_sources = \
70 dbus-sysdeps-util-win.c \
73 DBUS_LIB_arch_sources = \
79 DBUS_SHARED_arch_sources = \
83 dbus-sysdeps-pthread.c \
84 dbus-transport-unix.c \
85 dbus-transport-unix.h \
89 DBUS_UTIL_arch_sources = \
90 dbus-sysdeps-util-unix.c \
95 dbusinclude_HEADERS= \
105 dbus-pending-call.h \
115 dbusarchinclude_HEADERS= \
118 ### source code that goes in the installed client library
119 ### and is specific to library functionality
128 dbus-connection-internal.h \
134 dbus-marshal-header.c \
135 dbus-marshal-header.h \
136 dbus-marshal-byteswap.c \
137 dbus-marshal-byteswap.h \
138 dbus-marshal-recursive.c \
139 dbus-marshal-recursive.h \
140 dbus-marshal-validate.c \
141 dbus-marshal-validate.h \
143 dbus-message-internal.h \
144 dbus-message-private.h \
149 dbus-pending-call.c \
150 dbus-pending-call-internal.h \
154 dbus-server-debug-pipe.c \
155 dbus-server-debug-pipe.h \
156 dbus-server-protected.h \
157 dbus-server-socket.c \
158 dbus-server-socket.h \
159 $(DBUS_LIB_arch_sources) \
165 dbus-threads-internal.h \
169 dbus-transport-protected.h \
170 dbus-transport-socket.c \
171 dbus-transport-socket.h \
178 ### source code that goes in the installed client library
179 ### AND is generic utility functionality used by the
180 ### daemon or test programs (all symbols in here should
181 ### be underscore-prefixed)
182 DBUS_SHARED_SOURCES= \
191 dbus-marshal-basic.c \
192 dbus-marshal-basic.h \
200 dbus-string-private.h \
201 $(DBUS_SHARED_arch_sources) \
205 ### source code that is generic utility functionality used
206 ### by the bus daemon or test apps, but is NOT included
207 ### in the D-Bus client library (all symbols in here
208 ### should be underscore-prefixed but don't really need
209 ### to be unless they move to DBUS_SHARED_SOURCES later)
212 dbus-credentials-util.c \
215 dbus-marshal-byteswap-util.c \
216 dbus-marshal-recursive-util.c \
217 dbus-marshal-validate-util.c \
218 dbus-message-factory.c \
219 dbus-message-factory.h \
220 dbus-message-util.c \
223 $(DBUS_UTIL_arch_sources) \
226 dbus-sysdeps-util.c \
230 libdbus_1_la_SOURCES= \
231 $(DBUS_LIB_SOURCES) \
232 $(DBUS_SHARED_SOURCES)
234 libdbus_convenience_la_SOURCES= \
235 $(DBUS_LIB_SOURCES) \
236 $(DBUS_SHARED_SOURCES) \
240 BUILT_SOURCES=$(dbusarchinclude_HEADERS)
241 EXTRA_DIST=dbus-arch-deps.h.in dbus-1.def
243 ## this library is the same as libdbus, but exports all the symbols
244 ## and is only used for static linking within the dbus package.
245 noinst_LTLIBRARIES=libdbus-convenience.la
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_convenience_la_LDFLAGS=@R_DYNAMIC_LDFLAG@
252 ## note that TESTS has special meaning (stuff to use in make check)
253 ## so if adding tests not to be run in make check, don't add them to
256 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
262 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
263 ## even when not doing "make check"
264 noinst_PROGRAMS=$(TESTS)
269 dbus_test_LDADD=libdbus-convenience.la $(DBUS_TEST_LIBS)
270 dbus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
272 install-data-local: install-def-file
274 uninstall-local: uninstall-def-file
276 ## mop up the gcov files
278 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true