7a064ce8a584c9616f1c83d27ea4dcfb5771975c
[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
6 lib_LTLIBRARIES=libdbus-1.la
7
8 dbusinclude_HEADERS=                            \
9         dbus.h                                  \
10         dbus-address.h                          \
11         dbus-bus.h                              \
12         dbus-connection.h                       \
13         dbus-errors.h                           \
14         dbus-macros.h                           \
15         dbus-memory.h                           \
16         dbus-message.h                          \
17         dbus-message-handler.h                  \
18         dbus-protocol.h                         \
19         dbus-server.h                           \
20         dbus-threads.h                          \
21         dbus-types.h
22
23 libdbus_1_la_SOURCES=                           \
24         dbus-address.c                          \
25         dbus-auth.c                             \
26         dbus-auth.h                             \
27         dbus-auth-script.c                      \
28         dbus-auth-script.h                      \
29         dbus-bus.c                              \
30         dbus-connection.c                       \
31         dbus-connection-internal.h              \
32         dbus-errors.c                           \
33         dbus-keyring.c                          \
34         dbus-keyring.h                          \
35         dbus-md5.c                              \
36         dbus-md5.h                              \
37         dbus-memory.c                           \
38         dbus-message.c                          \
39         dbus-message-handler.c                  \
40         dbus-message-internal.h                 \
41         dbus-resources.c                        \
42         dbus-resources.h                        \
43         dbus-server.c                           \
44         dbus-server-protected.h                 \
45         dbus-server-debug.c                     \
46         dbus-server-debug.h                     \
47         dbus-server-unix.c                      \
48         dbus-server-unix.h                      \
49         dbus-sha.c                              \
50         dbus-sha.h                              \
51         dbus-test.c                             \
52         dbus-test.h                             \
53         dbus-timeout.c                          \
54         dbus-timeout.h                          \
55         dbus-threads.c                          \
56         dbus-transport.c                        \
57         dbus-transport.h                        \
58         dbus-transport-debug.c                  \
59         dbus-transport-debug.h                  \
60         dbus-transport-protected.h              \
61         dbus-transport-unix.c                   \
62         dbus-transport-unix.h                   \
63         dbus-watch.c                            \
64         dbus-watch.h
65
66
67 ## this library is linked into both libdbus and the bus 
68 ## itself, but does not export any symbols from libdbus.
69 ## i.e. the point is to contain symbols that we don't 
70 ## want the shared lib to export, but we do want the 
71 ## message bus to be able to use.
72
73 noinst_LTLIBRARIES=libdbus-convenience.la
74
75 libdbus_convenience_la_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-mempool.c                          \
87         dbus-mempool.h                          \
88         dbus-message-builder.c                  \
89         dbus-message-builder.h                  \
90         dbus-string.c                           \
91         dbus-string.h                           \
92         dbus-sysdeps.c                          \
93         dbus-sysdeps.h
94
95 libdbus_1_la_LIBADD=  $(DBUS_CLIENT_LIBS) libdbus-convenience.la
96 ## don't export symbols that start with "_" (we use this 
97 ## convention for internal symbols)
98 libdbus_1_la_LDFLAGS= -export-symbols-regex "^[^_].*"
99
100 ## FIXME it would be less annoying when hacking if we didn't have 
101 ## to relink these test binaries, so moving them to the test/* 
102 ## subdir would be nice.
103
104 ## note that TESTS has special meaning (stuff to use in make check)
105 ## so if adding tests not to be run in make check, don't add them to 
106 ## TESTS
107 if DBUS_BUILD_TESTS
108 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_srcdir)/test/data
109 TESTS=dbus-test 
110 else
111 TESTS=
112 endif
113
114 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build 
115 ## even when not doing "make check"
116 noinst_PROGRAMS=$(TESTS)
117
118 dbus_test_SOURCES=                              \
119         dbus-test-main.c
120
121 dbus_test_LDADD= $(DBUS_CLIENT_LIBS) libdbus-convenience.la libdbus-1.la
122
123 ## mop up the gcov files
124 clean-local:
125         /bin/rm *.bb *.bbg *.da *.gcov || true