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