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