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