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
24 dbus_res = versioninfo.o
25 dbus_res_ldflag = -Wl,$(dbus_res)
26 no_undefined = -no-undefined
28 export_symvols_internal =
30 libdbus_1_la_DEPENDENCIES = $(dbus_res)
37 ## don't export symbols that start with "_" (we use this
38 ## convention for internal symbols)
39 export_symbols = -export-symbols-regex "^[^_].*"
40 export_symbols_internal =
42 intllibs = @LTLIBINTL@
48 # Platform-dependent sources:
51 DBUS_LIB_arch_sources = \
56 wince_source = dbus-sysdeps-wince-glue.h dbus-sysdeps-wince-glue.c
61 DBUS_SHARED_arch_sources = \
68 dbus-sysdeps-thread-win.c \
69 dbus-transport-win.c \
72 DBUS_UTIL_arch_sources = \
73 dbus-sysdeps-util-win.c \
76 DBUS_LIB_arch_sources = \
82 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 \
153 dbus-pending-call.c \
154 dbus-pending-call-internal.h \
158 dbus-server-debug-pipe.c \
159 dbus-server-debug-pipe.h \
160 dbus-server-protected.h \
161 dbus-server-socket.c \
162 dbus-server-socket.h \
163 $(DBUS_LIB_arch_sources) \
169 dbus-threads-internal.h \
173 dbus-transport-protected.h \
174 dbus-transport-socket.c \
175 dbus-transport-socket.h \
182 ### source code that goes in the installed client library
183 ### AND is generic utility functionality used by the
184 ### daemon or test programs (all symbols in here should
185 ### be underscore-prefixed)
186 DBUS_SHARED_SOURCES= \
197 dbus-marshal-basic.c \
198 dbus-marshal-basic.h \
206 dbus-string-private.h \
207 $(DBUS_SHARED_arch_sources) \
211 ### source code that is generic utility functionality used
212 ### by the bus daemon or test apps, but is NOT included
213 ### in the D-Bus client library (all symbols in here
214 ### should be underscore-prefixed but don't really need
215 ### to be unless they move to DBUS_SHARED_SOURCES later)
218 dbus-credentials-util.c \
221 dbus-marshal-byteswap-util.c \
222 dbus-marshal-recursive-util.c \
223 dbus-marshal-validate-util.c \
224 dbus-message-factory.c \
225 dbus-message-factory.h \
226 dbus-message-util.c \
229 $(DBUS_UTIL_arch_sources) \
232 dbus-sysdeps-util.c \
236 libdbus_1_la_SOURCES= \
237 $(DBUS_LIB_SOURCES) \
238 $(DBUS_SHARED_SOURCES)
240 libdbus_internal_la_SOURCES= \
241 $(DBUS_LIB_SOURCES) \
242 $(DBUS_SHARED_SOURCES) \
245 BUILT_SOURCES=$(dbusarchinclude_HEADERS)
246 EXTRA_DIST=dbus-arch-deps.h.in
249 ## this library is the same as libdbus, but exports all the symbols
250 ## and is only used for static linking within the dbus package.
251 noinst_LTLIBRARIES=libdbus-internal.la
253 libdbus_1_la_CPPFLAGS= -Ddbus_1_EXPORTS
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_internal_la_CPPFLAGS = -DDBUS_STATIC_BUILD
258 libdbus_internal_la_LIBADD=$(DBUS_CLIENT_LIBS)
259 libdbus_internal_la_LDFLAGS=$(export_symbols_internal) @R_DYNAMIC_LDFLAG@
261 ## note that TESTS has special meaning (stuff to use in make check)
262 ## so if adding tests not to be run in make check, don't add them to
265 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
271 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
272 ## even when not doing "make check"
273 noinst_PROGRAMS=$(TESTS)
278 dbus_test_LDADD=libdbus-internal.la $(DBUS_TEST_LIBS)
279 dbus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
281 ## mop up the gcov files
283 /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true