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