2003-03-16 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-address.h                          \
11         dbus-bus.h                              \
12         dbus-connection.h                       \
13         dbus-dict.h                             \
14         dbus-errors.h                           \
15         dbus-macros.h                           \
16         dbus-memory.h                           \
17         dbus-message.h                          \
18         dbus-message-handler.h                  \
19         dbus-protocol.h                         \
20         dbus-server.h                           \
21         dbus-threads.h                          \
22         dbus-types.h
23
24 DBUS_SOURCES=                                   \
25         dbus-address.c                          \
26         dbus-auth.c                             \
27         dbus-auth.h                             \
28         dbus-auth-script.c                      \
29         dbus-auth-script.h                      \
30         dbus-bus.c                              \
31         dbus-connection.c                       \
32         dbus-connection-internal.h              \
33         dbus-dict.c                             \
34         dbus-errors.c                           \
35         dbus-keyring.c                          \
36         dbus-keyring.h                          \
37         dbus-message.c                          \
38         dbus-message-handler.c                  \
39         dbus-message-internal.h                 \
40         dbus-resources.c                        \
41         dbus-resources.h                        \
42         dbus-server.c                           \
43         dbus-server-protected.h                 \
44         dbus-server-debug.c                     \
45         dbus-server-debug.h                     \
46         dbus-server-debug-pipe.c                \
47         dbus-server-debug-pipe.h                \
48         dbus-server-unix.c                      \
49         dbus-server-unix.h                      \
50         dbus-sha.c                              \
51         dbus-sha.h                              \
52         dbus-test.c                             \
53         dbus-test.h                             \
54         dbus-timeout.c                          \
55         dbus-timeout.h                          \
56         dbus-threads.c                          \
57         dbus-transport.c                        \
58         dbus-transport.h                        \
59         dbus-transport-debug.c                  \
60         dbus-transport-debug.h                  \
61         dbus-transport-protected.h              \
62         dbus-transport-unix.c                   \
63         dbus-transport-unix.h                   \
64         dbus-watch.c                            \
65         dbus-watch.h
66
67 ##      dbus-md5.c                              \
68 ##      dbus-md5.h                              \
69
70 UTIL_SOURCES=                                   \
71         dbus-dataslot.c                         \
72         dbus-dataslot.h                         \
73         dbus-hash.c                             \
74         dbus-hash.h                             \
75         dbus-internals.c                        \
76         dbus-internals.h                        \
77         dbus-list.c                             \
78         dbus-list.h                             \
79         dbus-marshal.c                          \
80         dbus-marshal.h                          \
81         dbus-memory.c                           \
82         dbus-mempool.c                          \
83         dbus-mempool.h                          \
84         dbus-message-builder.c                  \
85         dbus-message-builder.h                  \
86         dbus-string.c                           \
87         dbus-string.h                           \
88         dbus-string-private.h                   \
89         dbus-sysdeps.c                          \
90         dbus-sysdeps.h
91
92 libdbus_1_la_SOURCES=                           \
93         $(DBUS_SOURCES)                         \
94         $(UTIL_SOURCES)
95
96 libdbus_convenience_la_SOURCES=                 \
97         $(DBUS_SOURCES)                         \
98         $(UTIL_SOURCES)
99
100 ## this library is the same as libdbus, but exports all the symbols
101 ## and is only used for static linking within the dbus package.
102 noinst_LTLIBRARIES=libdbus-convenience.la
103
104 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
105 ## don't export symbols that start with "_" (we use this 
106 ## convention for internal symbols)
107 libdbus_1_la_LDFLAGS= -export-symbols-regex "^[^_].*"
108
109 ## note that TESTS has special meaning (stuff to use in make check)
110 ## so if adding tests not to be run in make check, don't add them to 
111 ## TESTS
112 if DBUS_BUILD_TESTS
113 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_srcdir)/test/data
114 TESTS=dbus-test 
115 else
116 TESTS=
117 endif
118
119 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build 
120 ## even when not doing "make check"
121 noinst_PROGRAMS=$(TESTS)
122
123 dbus_test_SOURCES=                              \
124         dbus-test-main.c
125
126 dbus_test_LDADD= $(DBUS_CLIENT_LIBS) libdbus-1.la
127
128 ## mop up the gcov files
129 clean-local:
130         /bin/rm *.bb *.bbg *.da *.gcov || true