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