harmattan version.
[monky] / src / dbus / Makefile.am
1
2 configdir=$(sysconfdir)/dbus-1
3
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"\"
8
9 dbusincludedir=$(includedir)/dbus-1.0/dbus
10 dbusarchincludedir=$(libdir)/dbus-1.0/include/dbus
11
12 lib_LTLIBRARIES=libdbus-1.la
13
14 dbusinclude_HEADERS=                            \
15         dbus.h                                  \
16         dbus-address.h                          \
17         dbus-bus.h                              \
18         dbus-connection.h                       \
19         dbus-errors.h                           \
20         dbus-macros.h                           \
21         dbus-memory.h                           \
22         dbus-message.h                          \
23         dbus-misc.h                             \
24         dbus-pending-call.h                     \
25         dbus-protocol.h                         \
26         dbus-server.h                           \
27         dbus-shared.h                           \
28         dbus-signature.h                        \
29         dbus-threads.h                          \
30         dbus-types.h
31
32
33 dbusarchinclude_HEADERS=                        \
34         dbus-arch-deps.h
35
36 ### source code that goes in the installed client library
37 ### and is specific to library functionality
38 DBUS_LIB_SOURCES=                               \
39         dbus-address.c                          \
40         dbus-auth.c                             \
41         dbus-auth.h                             \
42         dbus-auth-script.c                      \
43         dbus-auth-script.h                      \
44         dbus-bus.c                              \
45         dbus-connection.c                       \
46         dbus-connection-internal.h              \
47         dbus-credentials.c                      \
48         dbus-credentials.h                      \
49         dbus-errors.c                           \
50         dbus-keyring.c                          \
51         dbus-keyring.h                          \
52         dbus-marshal-header.c                   \
53         dbus-marshal-header.h                   \
54         dbus-marshal-byteswap.c                 \
55         dbus-marshal-byteswap.h                 \
56         dbus-marshal-recursive.c                \
57         dbus-marshal-recursive.h                \
58         dbus-marshal-validate.c                 \
59         dbus-marshal-validate.h                 \
60         dbus-message.c                          \
61         dbus-message-internal.h                 \
62         dbus-message-private.h                  \
63         dbus-misc.c                             \
64         dbus-object-tree.c                      \
65         dbus-object-tree.h                      \
66         dbus-pending-call.c                     \
67         dbus-pending-call-internal.h            \
68         dbus-resources.c                        \
69         dbus-resources.h                        \
70         dbus-server.c                           \
71         dbus-server-debug-pipe.c                \
72         dbus-server-debug-pipe.h                \
73         dbus-server-protected.h                 \
74         dbus-server-socket.c                    \
75         dbus-server-socket.h                    \
76         dbus-server-unix.c                      \
77         dbus-server-unix.h                      \
78         dbus-sha.c                              \
79         dbus-sha.h                              \
80         dbus-signature.c                        \
81         dbus-timeout.c                          \
82         dbus-timeout.h                          \
83         dbus-threads-internal.h                 \
84         dbus-threads.c                          \
85         dbus-transport.c                        \
86         dbus-transport.h                        \
87         dbus-transport-protected.h              \
88         dbus-transport-socket.c                 \
89         dbus-transport-socket.h                 \
90         dbus-transport-unix.c                   \
91         dbus-transport-unix.h                   \
92         dbus-uuidgen.c                          \
93         dbus-uuidgen.h                          \
94         dbus-watch.c                            \
95         dbus-watch.h
96
97 ##      dbus-md5.c                              \
98 ##      dbus-md5.h                              \
99
100 ### source code that goes in the installed client library
101 ### AND is generic utility functionality used by the 
102 ### daemon or test programs (all symbols in here should 
103 ### be underscore-prefixed)
104 DBUS_SHARED_SOURCES=                            \
105         dbus-dataslot.c                         \
106         dbus-dataslot.h                         \
107         dbus-hash.c                             \
108         dbus-hash.h                             \
109         dbus-internals.c                        \
110         dbus-internals.h                        \
111         dbus-list.c                             \
112         dbus-list.h                             \
113         dbus-marshal-basic.c                    \
114         dbus-marshal-basic.h                    \
115         dbus-memory.c                           \
116         dbus-mempool.c                          \
117         dbus-mempool.h                          \
118         dbus-string.c                           \
119         dbus-string.h                           \
120         dbus-string-private.h                   \
121         dbus-sysdeps.c                          \
122         dbus-sysdeps.h                          \
123         dbus-sysdeps-pthread.c                  \
124         dbus-sysdeps-unix.c                     \
125         dbus-sysdeps-unix.h                     \
126         dbus-userdb.c                           \
127         dbus-userdb.h
128
129 ### source code that is generic utility functionality used
130 ### by the bus daemon or test apps, but is NOT included
131 ### in the D-Bus client library (all symbols in here 
132 ### should be underscore-prefixed but don't really need 
133 ### to be unless they move to DBUS_SHARED_SOURCES later)
134 DBUS_UTIL_SOURCES=                              \
135         dbus-auth-util.c                        \
136         dbus-credentials-util.c                 \
137         dbus-mainloop.c                         \
138         dbus-mainloop.h                         \
139         dbus-marshal-byteswap-util.c            \
140         dbus-marshal-recursive-util.c           \
141         dbus-marshal-validate-util.c            \
142         dbus-message-factory.c                  \
143         dbus-message-factory.h                  \
144         dbus-message-util.c                     \
145         dbus-shell.c                            \
146         dbus-shell.h                            \
147         dbus-spawn.c                            \
148         dbus-spawn.h                            \
149         dbus-string-util.c                      \
150         dbus-sysdeps-util.c                     \
151         dbus-sysdeps-util-unix.c                \
152         dbus-test.c                             \
153         dbus-test.h                             \
154         dbus-userdb-util.c
155
156 libdbus_1_la_SOURCES=                           \
157         $(DBUS_LIB_SOURCES)                     \
158         $(DBUS_SHARED_SOURCES)
159
160 libdbus_convenience_la_SOURCES=                 \
161         $(DBUS_LIB_SOURCES)                     \
162         $(DBUS_SHARED_SOURCES)                  \
163         $(DBUS_UTIL_SOURCES)
164
165
166 BUILT_SOURCES=$(dbusarchinclude_HEADERS)
167 EXTRA_DIST=dbus-arch-deps.h.in
168
169 ## this library is the same as libdbus, but exports all the symbols
170 ## and is only used for static linking within the dbus package.
171 noinst_LTLIBRARIES=libdbus-convenience.la
172
173 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
174 ## don't export symbols that start with "_" (we use this 
175 ## convention for internal symbols)
176 libdbus_1_la_LDFLAGS= -export-symbols-regex "^[^_].*" -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined @R_DYNAMIC_LDFLAG@ @PIC_LDFLAGS@
177
178 libdbus_convenience_la_LDFLAGS=@R_DYNAMIC_LDFLAG@
179
180 ## note that TESTS has special meaning (stuff to use in make check)
181 ## so if adding tests not to be run in make check, don't add them to 
182 ## TESTS
183 ## if DBUS_BUILD_TESTS
184 ## TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
185 ## TESTS=dbus-test
186 ## else
187 TESTS=
188 ## endif
189
190 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build 
191 ## even when not doing "make check"
192 noinst_PROGRAMS=$(TESTS)
193
194 dbus_test_SOURCES=                              \
195         dbus-test-main.c
196
197 dbus_test_LDADD=libdbus-convenience.la $(DBUS_TEST_LIBS)
198 dbus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
199
200 ## mop up the gcov files
201 clean-local:
202         /bin/rm *.bb *.bbg *.da *.gcov .libs/*.da .libs/*.bbg || true