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