70504052ef68866c187dfa04fdede0f0a00d6c6e
[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-dict.h                             \
14         dbus-errors.h                           \
15         dbus-macros.h                           \
16         dbus-memory.h                           \
17         dbus-message.h                          \
18         dbus-message-handler.h                  \
19         dbus-protocol.h                         \
20         dbus-server.h                           \
21         dbus-threads.h                          \
22         dbus-types.h
23
24 libdbus_1_la_SOURCES=                           \
25         dbus-address.c                          \
26         dbus-auth.c                             \
27         dbus-auth.h                             \
28         dbus-auth-script.c                      \
29         dbus-auth-script.h                      \
30         dbus-bus.c                              \
31         dbus-connection.c                       \
32         dbus-connection-internal.h              \
33         dbus-dict.c                             \
34         dbus-errors.c                           \
35         dbus-keyring.c                          \
36         dbus-keyring.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 ##      dbus-md5.c                              \
67 ##      dbus-md5.h                              \
68
69
70 ## this library is linked into both libdbus and the bus 
71 ## itself, but does not export any symbols from libdbus.
72 ## i.e. the point is to contain symbols that we don't 
73 ## want the shared lib to export, but we do want the 
74 ## message bus to be able to use.
75
76 noinst_LTLIBRARIES=libdbus-convenience.la
77
78 libdbus_convenience_la_SOURCES=                 \
79         dbus-dataslot.c                         \
80         dbus-dataslot.h                         \
81         dbus-hash.c                             \
82         dbus-hash.h                             \
83         dbus-internals.c                        \
84         dbus-internals.h                        \
85         dbus-list.c                             \
86         dbus-list.h                             \
87         dbus-marshal.c                          \
88         dbus-marshal.h                          \
89         dbus-mempool.c                          \
90         dbus-mempool.h                          \
91         dbus-message-builder.c                  \
92         dbus-message-builder.h                  \
93         dbus-string.c                           \
94         dbus-string.h                           \
95         dbus-string-private.h                   \
96         dbus-sysdeps.c                          \
97         dbus-sysdeps.h
98
99 libdbus_1_la_LIBADD=  $(DBUS_CLIENT_LIBS) libdbus-convenience.la
100 ## don't export symbols that start with "_" (we use this 
101 ## convention for internal symbols)
102 libdbus_1_la_LDFLAGS= -export-symbols-regex "^[^_].*"
103
104 ## FIXME it would be less annoying when hacking if we didn't have 
105 ## to relink these test binaries, so moving them to the test/* 
106 ## subdir would be nice.
107
108 ## note that TESTS has special meaning (stuff to use in make check)
109 ## so if adding tests not to be run in make check, don't add them to 
110 ## TESTS
111 if DBUS_BUILD_TESTS
112 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_srcdir)/test/data
113 TESTS=dbus-test 
114 else
115 TESTS=
116 endif
117
118 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build 
119 ## even when not doing "make check"
120 noinst_PROGRAMS=$(TESTS)
121
122 dbus_test_SOURCES=                              \
123         dbus-test-main.c
124
125 dbus_test_LDADD= $(DBUS_CLIENT_LIBS) libdbus-convenience.la libdbus-1.la
126
127 ## mop up the gcov files
128 clean-local:
129         /bin/rm *.bb *.bbg *.da *.gcov || true