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 = \
69 dbus-sysdeps-thread-win.c \
70 dbus-transport-win.c \
73 DBUS_UTIL_arch_sources = \
74 dbus-sysdeps-util-win.c \
77 DBUS_LIB_arch_sources = \
83 DBUS_SHARED_arch_sources = \
87 dbus-sysdeps-pthread.c \
88 dbus-transport-unix.c \
89 dbus-transport-unix.h \
93 DBUS_UTIL_arch_sources = \
94 dbus-sysdeps-util-unix.c \
99 dbusinclude_HEADERS= \
109 dbus-pending-call.h \
118 dbusarchinclude_HEADERS= \
121 ### source code that goes in the installed client library
122 ### and is specific to library functionality
131 dbus-connection-internal.h \
137 dbus-marshal-header.c \
138 dbus-marshal-header.h \
139 dbus-marshal-byteswap.c \
140 dbus-marshal-byteswap.h \
141 dbus-marshal-recursive.c \
142 dbus-marshal-recursive.h \
143 dbus-marshal-validate.c \
144 dbus-marshal-validate.h \
146 dbus-message-internal.h \
147 dbus-message-private.h \
152 dbus-pending-call.c \
153 dbus-pending-call-internal.h \
157 dbus-server-debug-pipe.c \
158 dbus-server-debug-pipe.h \
159 dbus-server-protected.h \
160 dbus-server-socket.c \
161 dbus-server-socket.h \
162 $(DBUS_LIB_arch_sources) \
168 dbus-threads-internal.h \
172 dbus-transport-protected.h \
173 dbus-transport-socket.c \
174 dbus-transport-socket.h \
181 ### source code that goes in the installed client library
182 ### AND is generic utility functionality used by the
183 ### daemon or test programs (all symbols in here should
184 ### be underscore-prefixed)
185 DBUS_SHARED_SOURCES= \
194 dbus-marshal-basic.c \
195 dbus-marshal-basic.h \
203 dbus-string-private.h \
204 $(DBUS_SHARED_arch_sources) \
208 ### source code that is generic utility functionality used
209 ### by the bus daemon or test apps, but is NOT included
210 ### in the D-Bus client library (all symbols in here
211 ### should be underscore-prefixed but don't really need
212 ### to be unless they move to DBUS_SHARED_SOURCES later)
215 dbus-credentials-util.c \
218 dbus-marshal-byteswap-util.c \
219 dbus-marshal-recursive-util.c \
220 dbus-marshal-validate-util.c \
221 dbus-message-factory.c \
222 dbus-message-factory.h \
223 dbus-message-util.c \
226 $(DBUS_UTIL_arch_sources) \
229 dbus-sysdeps-util.c \
233 libdbus_1_la_SOURCES= \
234 $(DBUS_LIB_SOURCES) \
235 $(DBUS_SHARED_SOURCES)
237 libdbus_convenience_la_SOURCES= \
238 $(DBUS_LIB_SOURCES) \
239 $(DBUS_SHARED_SOURCES) \
243 BUILT_SOURCES=$(dbusarchinclude_HEADERS)
244 EXTRA_DIST=dbus-arch-deps.h.in dbus-1.def
246 ## this library is the same as libdbus, but exports all the symbols
247 ## and is only used for static linking within the dbus package.
248 noinst_LTLIBRARIES=libdbus-convenience.la
250 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
251 libdbus_1_la_LDFLAGS= $(export_symbols) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined @R_DYNAMIC_LDFLAG@ @PIC_LDFLAGS@
253 libdbus_convenience_la_LIBADD=$(DBUS_CLIENT_LIBS)
254 libdbus_convenience_la_LDFLAGS=@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-convenience.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