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