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 = \
84 dbus-sysdeps-thread-win.c \
85 dbus-transport-win.c \
88 DBUS_UTIL_arch_sources = \
89 dbus-sysdeps-util-win.c \
92 DBUS_LIB_arch_sources = \
98 DBUS_SHARED_arch_sources = \
101 dbus-sysdeps-unix.c \
102 dbus-sysdeps-unix.h \
103 dbus-sysdeps-pthread.c \
104 dbus-transport-unix.c \
105 dbus-transport-unix.h \
109 DBUS_UTIL_arch_sources = \
110 dbus-sysdeps-util-unix.c \
115 dbusinclude_HEADERS= \
125 dbus-pending-call.h \
134 dbusarchinclude_HEADERS= \
137 ### source code that goes in the installed client library
138 ### and is specific to library functionality
147 dbus-connection-internal.h \
153 dbus-marshal-header.c \
154 dbus-marshal-header.h \
155 dbus-marshal-byteswap.c \
156 dbus-marshal-byteswap.h \
157 dbus-marshal-recursive.c \
158 dbus-marshal-recursive.h \
159 dbus-marshal-validate.c \
160 dbus-marshal-validate.h \
162 dbus-message-internal.h \
163 dbus-message-private.h \
168 dbus-pending-call.c \
169 dbus-pending-call-internal.h \
173 dbus-server-debug-pipe.c \
174 dbus-server-debug-pipe.h \
175 dbus-server-protected.h \
176 dbus-server-socket.c \
177 dbus-server-socket.h \
178 $(DBUS_LIB_arch_sources) \
184 dbus-threads-internal.h \
188 dbus-transport-protected.h \
189 dbus-transport-socket.c \
190 dbus-transport-socket.h \
197 ### source code that goes in the installed client library
198 ### AND is generic utility functionality used by the
199 ### daemon or test programs (all symbols in here should
200 ### be underscore-prefixed)
201 DBUS_SHARED_SOURCES= \
212 dbus-marshal-basic.c \
213 dbus-marshal-basic.h \
221 dbus-string-private.h \
222 $(DBUS_SHARED_arch_sources) \
226 ### source code that is generic utility functionality used
227 ### by the bus daemon or test apps, but is NOT included
228 ### in the D-Bus client library (all symbols in here
229 ### should be underscore-prefixed but don't really need
230 ### to be unless they move to DBUS_SHARED_SOURCES later)
233 dbus-credentials-util.c \
236 dbus-marshal-byteswap-util.c \
237 dbus-marshal-recursive-util.c \
238 dbus-marshal-validate-util.c \
239 dbus-message-factory.c \
240 dbus-message-factory.h \
241 dbus-message-util.c \
244 $(DBUS_UTIL_arch_sources) \
247 dbus-sysdeps-util.c \
251 libdbus_1_la_SOURCES= \
252 $(DBUS_LIB_SOURCES) \
253 $(DBUS_SHARED_SOURCES)
255 libdbus_convenience_la_SOURCES= \
256 $(DBUS_LIB_SOURCES) \
257 $(DBUS_SHARED_SOURCES) \
261 BUILT_SOURCES=$(dbusarchinclude_HEADERS) $(built_sources_sys)
262 EXTRA_DIST=dbus-arch-deps.h.in
265 ## this library is the same as libdbus, but exports all the symbols
266 ## and is only used for static linking within the dbus package.
267 noinst_LTLIBRARIES=libdbus-convenience.la
269 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
270 libdbus_1_la_LDFLAGS= $(export_symbols) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined @R_DYNAMIC_LDFLAG@ @PIC_LDFLAGS@
272 libdbus_convenience_la_LIBADD=$(DBUS_CLIENT_LIBS)
273 libdbus_convenience_la_LDFLAGS=$(export_symbols_convenience) @R_DYNAMIC_LDFLAG@
275 ## note that TESTS has special meaning (stuff to use in make check)
276 ## so if adding tests not to be run in make check, don't add them to
279 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
285 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
286 ## even when not doing "make check"
287 noinst_PROGRAMS=$(TESTS)
292 dbus_test_LDADD=libdbus-convenience.la $(DBUS_TEST_LIBS)
293 dbus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
295 install-data-local: install-def-file
297 uninstall-local: uninstall-def-file
299 ## mop up the gcov files
301 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true