2003-02-16 Anders Carlsson <andersca@codefactory.se>
[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-memory.c                           \
34         dbus-message.c                          \
35         dbus-message-handler.c                  \
36         dbus-message-internal.h                 \
37         dbus-resources.c                        \
38         dbus-resources.h                        \
39         dbus-server.c                           \
40         dbus-server-protected.h                 \
41         dbus-server-debug.c                     \
42         dbus-server-debug.h                     \
43         dbus-server-unix.c                      \
44         dbus-server-unix.h                      \
45         dbus-test.c                             \
46         dbus-test.h                             \
47         dbus-timeout.c                          \
48         dbus-timeout.h                          \
49         dbus-threads.c                          \
50         dbus-transport.c                        \
51         dbus-transport.h                        \
52         dbus-transport-debug.c                  \
53         dbus-transport-debug.h                  \
54         dbus-transport-protected.h              \
55         dbus-transport-unix.c                   \
56         dbus-transport-unix.h                   \
57         dbus-watch.c                            \
58         dbus-watch.h
59
60
61 ## this library is linked into both libdbus and the bus 
62 ## itself, but does not export any symbols from libdbus.
63 ## i.e. the point is to contain symbols that we don't 
64 ## want the shared lib to export, but we do want the 
65 ## message bus to be able to use.
66
67 noinst_LTLIBRARIES=libdbus-convenience.la
68
69 libdbus_convenience_la_SOURCES=                 \
70         dbus-hash.c                             \
71         dbus-hash.h                             \
72         dbus-internals.c                        \
73         dbus-internals.h                        \
74         dbus-list.c                             \
75         dbus-list.h                             \
76         dbus-marshal.c                          \
77         dbus-marshal.h                          \
78         dbus-mempool.c                          \
79         dbus-mempool.h                          \
80         dbus-message-builder.c                  \
81         dbus-message-builder.h                  \
82         dbus-string.c                           \
83         dbus-string.h                           \
84         dbus-sysdeps.c                          \
85         dbus-sysdeps.h
86
87 libdbus_1_la_LIBADD=  $(DBUS_CLIENT_LIBS) libdbus-convenience.la
88 ## don't export symbols that start with "_" (we use this 
89 ## convention for internal symbols)
90 libdbus_1_la_LDFLAGS= -export-symbols-regex "^[^_].*"
91
92 ## FIXME it would be less annoying when hacking if we didn't have 
93 ## to relink these test binaries, so moving them to the test/* 
94 ## subdir would be nice.
95
96 ## note that TESTS has special meaning (stuff to use in make check)
97 ## so if adding tests not to be run in make check, don't add them to 
98 ## TESTS
99 if DBUS_BUILD_TESTS
100 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_srcdir)/test/data
101 TESTS=dbus-test 
102 else
103 TESTS=
104 endif
105
106 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build 
107 ## even when not doing "make check"
108 noinst_PROGRAMS=$(TESTS)
109
110 dbus_test_SOURCES=                              \
111         dbus-test-main.c
112
113 dbus_test_LDADD= $(DBUS_CLIENT_LIBS) libdbus-convenience.la libdbus-1.la
114
115 ## mop up the gcov files
116 clean-local:
117         /bin/rm *.bb *.bbg *.da *.gcov || true