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
28 ### FIXME use the .def.in files depending on the current config
29 ### or combine them in a single .def file as done in the cmake build
30 export_symbols = -export-symbols $(srcdir)/dbus-1.def
33 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
34 $(INSTALL) dbus-1.def $(DESTDIR)$(libdir)/dbus-1.def
37 -rm $(DESTDIR)$(libdir)/dbus-1.def
39 libdbus_1_la_DEPENDENCIES = $(dbus_res) dbus-1.def
46 ## don't export symbols that start with "_" (we use this
47 ## convention for internal symbols)
48 export_symbols = -export-symbols-regex "^[^_].*"
52 intllibs = @LTLIBINTL@
58 # Platform-dependent sources:
61 DBUS_LIB_arch_sources = \
65 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 \
78 DBUS_LIB_arch_sources = \
84 DBUS_SHARED_arch_sources = \
89 dbus-sysdeps-pthread.c \
90 dbus-transport-unix.c \
91 dbus-transport-unix.h \
95 DBUS_UTIL_arch_sources = \
96 dbus-sysdeps-util-unix.c \
101 dbusinclude_HEADERS= \
111 dbus-pending-call.h \
120 dbusarchinclude_HEADERS= \
123 ### source code that goes in the installed client library
124 ### and is specific to library functionality
133 dbus-connection-internal.h \
139 dbus-marshal-header.c \
140 dbus-marshal-header.h \
141 dbus-marshal-byteswap.c \
142 dbus-marshal-byteswap.h \
143 dbus-marshal-recursive.c \
144 dbus-marshal-recursive.h \
145 dbus-marshal-validate.c \
146 dbus-marshal-validate.h \
148 dbus-message-internal.h \
149 dbus-message-private.h \
154 dbus-pending-call.c \
155 dbus-pending-call-internal.h \
159 dbus-server-debug-pipe.c \
160 dbus-server-debug-pipe.h \
161 dbus-server-protected.h \
162 dbus-server-socket.c \
163 dbus-server-socket.h \
164 $(DBUS_LIB_arch_sources) \
170 dbus-threads-internal.h \
174 dbus-transport-protected.h \
175 dbus-transport-socket.c \
176 dbus-transport-socket.h \
183 ### source code that goes in the installed client library
184 ### AND is generic utility functionality used by the
185 ### daemon or test programs (all symbols in here should
186 ### be underscore-prefixed)
187 DBUS_SHARED_SOURCES= \
198 dbus-marshal-basic.c \
199 dbus-marshal-basic.h \
207 dbus-string-private.h \
208 $(DBUS_SHARED_arch_sources) \
212 ### source code that is generic utility functionality used
213 ### by the bus daemon or test apps, but is NOT included
214 ### in the D-Bus client library (all symbols in here
215 ### should be underscore-prefixed but don't really need
216 ### to be unless they move to DBUS_SHARED_SOURCES later)
219 dbus-credentials-util.c \
222 dbus-marshal-byteswap-util.c \
223 dbus-marshal-recursive-util.c \
224 dbus-marshal-validate-util.c \
225 dbus-message-factory.c \
226 dbus-message-factory.h \
227 dbus-message-util.c \
230 $(DBUS_UTIL_arch_sources) \
233 dbus-sysdeps-util.c \
237 libdbus_1_la_SOURCES= \
238 $(DBUS_LIB_SOURCES) \
239 $(DBUS_SHARED_SOURCES)
241 libdbus_convenience_la_SOURCES= \
242 $(DBUS_LIB_SOURCES) \
243 $(DBUS_SHARED_SOURCES) \
247 BUILT_SOURCES=$(dbusarchinclude_HEADERS)
248 EXTRA_DIST=dbus-arch-deps.h.in dbus-1.def
250 ## this library is the same as libdbus, but exports all the symbols
251 ## and is only used for static linking within the dbus package.
252 noinst_LTLIBRARIES=libdbus-convenience.la
254 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
255 libdbus_1_la_LDFLAGS= $(export_symbols) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined @R_DYNAMIC_LDFLAG@ @PIC_LDFLAGS@
257 libdbus_convenience_la_LIBADD=$(DBUS_CLIENT_LIBS)
258 libdbus_convenience_la_LDFLAGS=@R_DYNAMIC_LDFLAG@
260 ## note that TESTS has special meaning (stuff to use in make check)
261 ## so if adding tests not to be run in make check, don't add them to
264 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
270 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
271 ## even when not doing "make check"
272 noinst_PROGRAMS=$(TESTS)
277 dbus_test_LDADD=libdbus-convenience.la $(DBUS_TEST_LIBS)
278 dbus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
280 install-data-local: install-def-file
282 uninstall-local: uninstall-def-file
284 ## mop up the gcov files
286 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true