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