2002-12-24 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-errors.h                           \
11         dbus-macros.h                           \
12         dbus-memory.h                           \
13         dbus-message.h                          \
14         dbus-message-handler.h                  \
15         dbus-server.h                           \
16         dbus-threads.h                          \
17         dbus-types.h
18
19 libdbus_1_la_SOURCES=                           \
20         dbus-connection.c                       \
21         dbus-connection-internal.h              \
22         dbus-errors.c                           \
23         dbus-memory.c                           \
24         dbus-message.c                          \
25         dbus-message-handler.c                  \
26         dbus-message-internal.h                 \
27         dbus-server.c                           \
28         dbus-server-protected.h                 \
29         dbus-server-unix.c                      \
30         dbus-server-unix.h                      \
31         dbus-threads.c                          \
32         dbus-transport.c                        \
33         dbus-transport.h                        \
34         dbus-transport-protected.h              \
35         dbus-transport-unix.c                   \
36         dbus-transport-unix.h                   \
37         dbus-watch.c                            \
38         dbus-watch.h
39
40
41 ## this library is linked into both libdbus and the bus 
42 ## itself, but does not export any symbols from libdbus.
43 ## i.e. the point is to contain symbols that we don't 
44 ## want the shared lib to export, but we do want the 
45 ## message bus to be able to use.
46
47 noinst_LTLIBRARIES=libdbus-convenience.la
48
49 libdbus_convenience_la_SOURCES=                 \
50         dbus-hash.c                             \
51         dbus-hash.h                             \
52         dbus-internals.c                        \
53         dbus-internals.h                        \
54         dbus-list.c                             \
55         dbus-list.h                             \
56         dbus-mempool.c                          \
57         dbus-mempool.h                          \
58         dbus-string.c                           \
59         dbus-string.h                           \
60         dbus-sysdeps.c                          \
61         dbus-sysdeps.h
62
63 libdbus_1_la_LIBADD=  $(DBUS_CLIENT_LIBS) libdbus-convenience.la
64 ## don't export symbols that start with "_" (we use this 
65 ## convention for internal symbols)
66 libdbus_1_la_LDFLAGS= -export-symbols-regex "^[[^_]].*"
67
68 if DBUS_BUILD_TESTS
69 noinst_PROGRAMS=dbus-test
70
71 dbus_test_SOURCES=                              \
72         dbus-test.c                             \
73         dbus-test.h
74
75 dbus_test_LDADD= $(DBUS_CLIENT_LIBS) libdbus-convenience.la libdbus-1.la
76
77 ## so that "make check" works
78 TESTS=dbus-test
79 endif