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