2002-12-25 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-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-marshal.c                          \
57         dbus-marshal.h                          \
58         dbus-mempool.c                          \
59         dbus-mempool.h                          \
60         dbus-string.c                           \
61         dbus-string.h                           \
62         dbus-sysdeps.c                          \
63         dbus-sysdeps.h
64
65 libdbus_1_la_LIBADD=  $(DBUS_CLIENT_LIBS) libdbus-convenience.la
66 ## don't export symbols that start with "_" (we use this 
67 ## convention for internal symbols)
68 libdbus_1_la_LDFLAGS= -export-symbols-regex "^[[^_]].*"
69
70 if DBUS_BUILD_TESTS
71 noinst_PROGRAMS=dbus-test
72
73 dbus_test_SOURCES=                              \
74         dbus-test.c                             \
75         dbus-test.h
76
77 dbus_test_LDADD= $(DBUS_CLIENT_LIBS) libdbus-convenience.la libdbus-1.la
78
79 ## so that "make check" works
80 TESTS=dbus-test
81 endif