Remove leftover reference to dbus-md5.[ch]
[platform/upstream/dbus.git] / dbus / Makefile.am
1
2 configdir=$(sysconfdir)/dbus-1
3
4 INCLUDES = -I$(top_builddir) -I$(top_srcdir) \
5         $(DBUS_CLIENT_CFLAGS) \
6         -DDBUS_COMPILATION \
7         -DDBUS_MACHINE_UUID_FILE=\""$(localstatedir)/lib/dbus/machine-id"\" \
8         -DDBUS_SYSTEM_CONFIG_FILE=\""$(configdir)/system.conf"\" \
9         -DDBUS_SESSION_CONFIG_FILE=\""$(configdir)/session.conf"\"
10
11 dbusincludedir=$(includedir)/dbus-1.0/dbus
12 dbusarchincludedir=$(libdir)/dbus-1.0/include/dbus
13
14 lib_LTLIBRARIES=libdbus-1.la
15
16 #
17 # Deal with W32 .def and version-info.rc stuff
18 #
19 if DBUS_WIN
20
21 SUFFIXES = rc
22
23 .rc.o:
24         $(WINDRES) $< -o $@
25
26 dbus_res = versioninfo.o
27 dbus_res_ldflag = -Wl,$(dbus_res)
28 no_undefined = -no-undefined
29 export_symbols =
30 export_symvols_internal =
31
32 libdbus_1_la_DEPENDENCIES = $(dbus_res)
33 intllibs =
34
35 else
36 dbus_res =
37 dbus_res_ldflag =
38 no_undefined =
39 ## don't export symbols that start with "_" (we use this
40 ## convention for internal symbols)
41 export_symbols = -export-symbols-regex "^[^_].*"
42 export_symbols_internal =
43
44 intllibs = @LTLIBINTL@
45
46 endif
47
48
49 #
50 # Platform-dependent sources:
51 #
52 if DBUS_WIN
53 DBUS_LIB_arch_sources =                         \
54         dbus-server-win.c                       \
55         dbus-server-win.h
56
57 if DBUS_WINCE
58 wince_source = dbus-sysdeps-wince-glue.h dbus-sysdeps-wince-glue.c
59 else
60 wince_source =
61 endif
62
63 DBUS_SHARED_arch_sources =                      \
64         $(wince_source)                         \
65         dbus-file-win.c                         \
66         dbus-pipe-win.c                         \
67         dbus-sockets-win.h                      \
68         dbus-sysdeps-win.c                      \
69         dbus-sysdeps-win.h                      \
70         dbus-sysdeps-thread-win.c               \
71         dbus-transport-win.c                    \
72         dbus-transport-win.h
73
74 DBUS_UTIL_arch_sources =                        \
75         dbus-sysdeps-util-win.c                 \
76         dbus-spawn-win.c
77 else
78
79 if DBUS_ENABLE_LAUNCHD
80 launchd_source = dbus-server-launchd.h dbus-server-launchd.c
81 else
82 launchd_source =
83 endif
84
85 DBUS_LIB_arch_sources =                         \
86         dbus-uuidgen.c                          \
87         dbus-uuidgen.h                          \
88         dbus-server-unix.c                      \
89         dbus-server-unix.h
90
91 DBUS_SHARED_arch_sources =                      \
92         $(launchd_source)                       \
93         dbus-file-unix.c                        \
94         dbus-pipe-unix.c                        \
95         dbus-sysdeps-unix.c                     \
96         dbus-sysdeps-unix.h                     \
97         dbus-sysdeps-pthread.c                  \
98         dbus-transport-unix.c                   \
99         dbus-transport-unix.h                   \
100         dbus-userdb.c                           \
101         dbus-userdb.h                           \
102         sd-daemon.c                             \
103         sd-daemon.h
104
105 DBUS_UTIL_arch_sources =                        \
106         dbus-sysdeps-util-unix.c                \
107         dbus-userdb-util.c                      \
108         dbus-spawn.c
109 endif
110
111 dbusinclude_HEADERS=                            \
112         dbus.h                                  \
113         dbus-address.h                          \
114         dbus-bus.h                              \
115         dbus-connection.h                       \
116         dbus-errors.h                           \
117         dbus-macros.h                           \
118         dbus-memory.h                           \
119         dbus-message.h                          \
120         dbus-misc.h                             \
121         dbus-pending-call.h                     \
122         dbus-protocol.h                         \
123         dbus-server.h                           \
124         dbus-shared.h                           \
125         dbus-signature.h                        \
126         dbus-threads.h                          \
127         dbus-types.h
128
129
130 nodist_dbusarchinclude_HEADERS=                 \
131         dbus-arch-deps.h
132
133 ### source code that goes in the installed client library
134 ### and is specific to library functionality
135 DBUS_LIB_SOURCES=                               \
136         dbus-address.c                          \
137         dbus-auth.c                             \
138         dbus-auth.h                             \
139         dbus-auth-script.c                      \
140         dbus-auth-script.h                      \
141         dbus-bus.c                              \
142         dbus-connection.c                       \
143         dbus-connection-internal.h              \
144         dbus-credentials.c                      \
145         dbus-credentials.h                      \
146         dbus-errors.c                           \
147         dbus-keyring.c                          \
148         dbus-keyring.h                          \
149         dbus-marshal-header.c                   \
150         dbus-marshal-header.h                   \
151         dbus-marshal-byteswap.c                 \
152         dbus-marshal-byteswap.h                 \
153         dbus-marshal-recursive.c                \
154         dbus-marshal-recursive.h                \
155         dbus-marshal-validate.c                 \
156         dbus-marshal-validate.h                 \
157         dbus-message.c                          \
158         dbus-message-internal.h                 \
159         dbus-message-private.h                  \
160         dbus-misc.c                             \
161         dbus-nonce.h                            \
162         dbus-nonce.c                            \
163         dbus-object-tree.c                      \
164         dbus-object-tree.h                      \
165         dbus-pending-call.c                     \
166         dbus-pending-call-internal.h            \
167         dbus-resources.c                        \
168         dbus-resources.h                        \
169         dbus-server.c                           \
170         dbus-server-debug-pipe.c                \
171         dbus-server-debug-pipe.h                \
172         dbus-server-protected.h                 \
173         dbus-server-socket.c                    \
174         dbus-server-socket.h                    \
175         $(DBUS_LIB_arch_sources)                \
176         dbus-sha.c                              \
177         dbus-sha.h                              \
178         dbus-signature.c                        \
179         dbus-timeout.c                          \
180         dbus-timeout.h                          \
181         dbus-threads-internal.h                 \
182         dbus-threads.c                          \
183         dbus-transport.c                        \
184         dbus-transport.h                        \
185         dbus-transport-protected.h              \
186         dbus-transport-socket.c                 \
187         dbus-transport-socket.h                 \
188         dbus-watch.c                            \
189         dbus-watch.h
190
191 ### source code that goes in the installed client library
192 ### AND is generic utility functionality used by the
193 ### daemon or test programs (all symbols in here should
194 ### be underscore-prefixed)
195 DBUS_SHARED_SOURCES=                            \
196         dbus-dataslot.c                         \
197         dbus-dataslot.h                         \
198         dbus-file.c                 \
199         dbus-file.h                 \
200         dbus-hash.c                             \
201         dbus-hash.h                             \
202         dbus-internals.c                        \
203         dbus-internals.h                        \
204         dbus-list.c                             \
205         dbus-list.h                             \
206         dbus-marshal-basic.c                    \
207         dbus-marshal-basic.h                    \
208         dbus-memory.c                           \
209         dbus-mempool.c                          \
210         dbus-mempool.h                          \
211         dbus-pipe.c                 \
212         dbus-pipe.h                 \
213         dbus-string.c                           \
214         dbus-string.h                           \
215         dbus-string-private.h                   \
216         $(DBUS_SHARED_arch_sources)             \
217         dbus-sysdeps.c                          \
218         dbus-sysdeps.h
219
220 ### source code that is generic utility functionality used
221 ### by the bus daemon or test apps, but is NOT included
222 ### in the D-Bus client library (all symbols in here
223 ### should be underscore-prefixed but don't really need
224 ### to be unless they move to DBUS_SHARED_SOURCES later)
225 DBUS_UTIL_SOURCES=                              \
226         dbus-auth-util.c                        \
227         dbus-credentials-util.c                 \
228         dbus-mainloop.c                         \
229         dbus-mainloop.h                         \
230         dbus-marshal-byteswap-util.c            \
231         dbus-marshal-recursive-util.c           \
232         dbus-marshal-validate-util.c            \
233         dbus-message-factory.c                  \
234         dbus-message-factory.h                  \
235         dbus-message-util.c                     \
236         dbus-shell.c                            \
237         dbus-shell.h                            \
238         $(DBUS_UTIL_arch_sources)               \
239         dbus-spawn.h                            \
240         dbus-string-util.c                      \
241         dbus-sysdeps-util.c                     \
242         dbus-test.c                             \
243         dbus-test.h
244
245 libdbus_1_la_SOURCES=                           \
246         $(DBUS_LIB_SOURCES)                     \
247         $(DBUS_SHARED_SOURCES)
248
249 libdbus_internal_la_SOURCES=                    \
250         $(DBUS_LIB_SOURCES)                     \
251         $(DBUS_SHARED_SOURCES)                  \
252         $(DBUS_UTIL_SOURCES)
253
254 BUILT_SOURCES=$(nodist_dbusarchinclude_HEADERS)
255 EXTRA_DIST=dbus-arch-deps.h.in
256
257 ## this library is the same as libdbus, but exports all the symbols
258 ## and is only used for static linking within the dbus package.
259 noinst_LTLIBRARIES=libdbus-internal.la
260
261 libdbus_1_la_CPPFLAGS= -Ddbus_1_EXPORTS
262 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
263 libdbus_1_la_LDFLAGS= $(export_symbols) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined @R_DYNAMIC_LDFLAG@
264
265 libdbus_internal_la_CPPFLAGS = -DDBUS_STATIC_BUILD
266 libdbus_internal_la_LIBADD=$(DBUS_CLIENT_LIBS)
267 libdbus_internal_la_LDFLAGS=$(export_symbols_internal) @R_DYNAMIC_LDFLAG@
268
269 noinst_PROGRAMS =
270
271 if DBUS_BUILD_TESTS
272 # We can't actually run this til we've reached test/
273 noinst_PROGRAMS += dbus-test
274 endif
275
276 dbus_test_SOURCES=                              \
277         dbus-test-main.c
278
279 dbus_test_LDADD=libdbus-internal.la $(DBUS_TEST_LIBS)
280 dbus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
281
282 ## mop up the gcov files
283 clean-local:
284         /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true
285
286 update-systemd:
287         curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.c > sd-daemon.c
288         curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.h > sd-daemon.h