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