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
19 built_sources_sys = dbus-1.def dbus-convenience.def
21 # Note that -P suppresses line markers.
22 PREPROCESS = $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) -P
23 dbus-1.def: $(srcdir)/dbus-1.def.pre
24 $(PREPROCESS) - < $< > $@
26 dbus-convenience.def: $(srcdir)/dbus-convenience.def.pre
27 $(PREPROCESS) - < $< > $@
34 dbus_res = versioninfo.o
35 dbus_res_ldflag = -Wl,$(dbus_res)
36 no_undefined = -no-undefined
39 ### FIXME use the .def.in files depending on the current config
40 ### or combine them in a single .def file as done in the cmake build
41 export_symbols = -export-symbols dbus-1.def
42 export_symbols_convenience = -export-symbols dbus-convenience.def
45 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
46 $(INSTALL) dbus-1.def $(DESTDIR)$(libdir)/dbus-1.def
49 -rm $(DESTDIR)$(libdir)/dbus-1.def
51 libdbus_1_la_DEPENDENCIES = $(dbus_res) dbus-1.def
59 ## don't export symbols that start with "_" (we use this
60 ## convention for internal symbols)
61 export_symbols = -export-symbols-regex "^[^_].*"
62 export_symbols_convenience =
66 intllibs = @LTLIBINTL@
72 # Platform-dependent sources:
75 DBUS_LIB_arch_sources = \
79 DBUS_SHARED_arch_sources = \
85 dbus-sysdeps-thread-win.c \
86 dbus-transport-win.c \
89 DBUS_UTIL_arch_sources = \
90 dbus-sysdeps-util-win.c \
93 DBUS_LIB_arch_sources = \
99 DBUS_SHARED_arch_sources = \
102 dbus-sysdeps-unix.c \
103 dbus-sysdeps-unix.h \
104 dbus-sysdeps-pthread.c \
105 dbus-transport-unix.c \
106 dbus-transport-unix.h \
110 DBUS_UTIL_arch_sources = \
111 dbus-sysdeps-util-unix.c \
116 dbusinclude_HEADERS= \
126 dbus-pending-call.h \
135 dbusarchinclude_HEADERS= \
138 ### source code that goes in the installed client library
139 ### and is specific to library functionality
148 dbus-connection-internal.h \
154 dbus-marshal-header.c \
155 dbus-marshal-header.h \
156 dbus-marshal-byteswap.c \
157 dbus-marshal-byteswap.h \
158 dbus-marshal-recursive.c \
159 dbus-marshal-recursive.h \
160 dbus-marshal-validate.c \
161 dbus-marshal-validate.h \
163 dbus-message-internal.h \
164 dbus-message-private.h \
170 dbus-pending-call.c \
171 dbus-pending-call-internal.h \
175 dbus-server-debug-pipe.c \
176 dbus-server-debug-pipe.h \
177 dbus-server-protected.h \
178 dbus-server-socket.c \
179 dbus-server-socket.h \
180 $(DBUS_LIB_arch_sources) \
186 dbus-threads-internal.h \
190 dbus-transport-protected.h \
191 dbus-transport-socket.c \
192 dbus-transport-socket.h \
199 ### source code that goes in the installed client library
200 ### AND is generic utility functionality used by the
201 ### daemon or test programs (all symbols in here should
202 ### be underscore-prefixed)
203 DBUS_SHARED_SOURCES= \
214 dbus-marshal-basic.c \
215 dbus-marshal-basic.h \
223 dbus-string-private.h \
224 $(DBUS_SHARED_arch_sources) \
228 ### source code that is generic utility functionality used
229 ### by the bus daemon or test apps, but is NOT included
230 ### in the D-Bus client library (all symbols in here
231 ### should be underscore-prefixed but don't really need
232 ### to be unless they move to DBUS_SHARED_SOURCES later)
235 dbus-credentials-util.c \
238 dbus-marshal-byteswap-util.c \
239 dbus-marshal-recursive-util.c \
240 dbus-marshal-validate-util.c \
241 dbus-message-factory.c \
242 dbus-message-factory.h \
243 dbus-message-util.c \
246 $(DBUS_UTIL_arch_sources) \
249 dbus-sysdeps-util.c \
253 libdbus_1_la_SOURCES= \
254 $(DBUS_LIB_SOURCES) \
255 $(DBUS_SHARED_SOURCES)
257 libdbus_convenience_la_SOURCES= \
258 $(DBUS_LIB_SOURCES) \
259 $(DBUS_SHARED_SOURCES) \
262 symbol_defs = dbus-1.def.pre dbus-1-symbols.def.in dbus-1-testsymbols.def.in dbus-1-verbosesymbols.def.in \
263 dbus-convenience.def.pre dbus-internal-symbols.def.in dbus-internal-testsymbols.def.in
265 BUILT_SOURCES=$(dbusarchinclude_HEADERS) $(built_sources_sys)
266 EXTRA_DIST=dbus-arch-deps.h.in $(symbol_defs)
269 ## this library is the same as libdbus, but exports all the symbols
270 ## and is only used for static linking within the dbus package.
271 noinst_LTLIBRARIES=libdbus-convenience.la
273 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
274 libdbus_1_la_LDFLAGS= $(export_symbols) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined @R_DYNAMIC_LDFLAG@ @PIC_LDFLAGS@
276 libdbus_convenience_la_LIBADD=$(DBUS_CLIENT_LIBS)
277 libdbus_convenience_la_LDFLAGS=$(export_symbols_convenience) @R_DYNAMIC_LDFLAG@
279 ## note that TESTS has special meaning (stuff to use in make check)
280 ## so if adding tests not to be run in make check, don't add them to
283 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
289 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
290 ## even when not doing "make check"
291 noinst_PROGRAMS=$(TESTS)
296 dbus_test_LDADD=libdbus-convenience.la $(DBUS_TEST_LIBS)
297 dbus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
299 install-data-local: install-def-file
301 uninstall-local: uninstall-def-file
303 ## mop up the gcov files
305 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true