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