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