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