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