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