2003-04-08 Alexander Larsson <alexl@redhat.com>
[platform/upstream/dbus.git] / dbus / Makefile.am
1
2 INCLUDES=-I$(top_srcdir) $(DBUS_CLIENT_CFLAGS) -DDBUS_COMPILATION               \
3         -DDBUS_SYSTEM_BUS_PATH=\""@DBUS_SYSTEM_SOCKET@"\"
4
5 dbusincludedir=$(includedir)/dbus-1.0/dbus
6
7 lib_LTLIBRARIES=libdbus-1.la
8
9 dbusinclude_HEADERS=                            \
10         dbus.h                                  \
11         dbus-address.h                          \
12         dbus-bus.h                              \
13         dbus-connection.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 ### source code that goes in the installed client library
25 ### and is specific to library functionality
26 DBUS_LIB_SOURCES=                               \
27         dbus-address.c                          \
28         dbus-auth.c                             \
29         dbus-auth.h                             \
30         dbus-auth-script.c                      \
31         dbus-auth-script.h                      \
32         dbus-bus.c                              \
33         dbus-connection.c                       \
34         dbus-connection-internal.h              \
35         dbus-errors.c                           \
36         dbus-keyring.c                          \
37         dbus-keyring.h                          \
38         dbus-message.c                          \
39         dbus-message-handler.c                  \
40         dbus-message-internal.h                 \
41         dbus-resources.c                        \
42         dbus-resources.h                        \
43         dbus-server.c                           \
44         dbus-server-protected.h                 \
45         dbus-server-debug.c                     \
46         dbus-server-debug.h                     \
47         dbus-server-debug-pipe.c                \
48         dbus-server-debug-pipe.h                \
49         dbus-server-unix.c                      \
50         dbus-server-unix.h                      \
51         dbus-sha.c                              \
52         dbus-sha.h                              \
53         dbus-test.c                             \
54         dbus-test.h                             \
55         dbus-timeout.c                          \
56         dbus-timeout.h                          \
57         dbus-threads.c                          \
58         dbus-transport.c                        \
59         dbus-transport.h                        \
60         dbus-transport-debug.c                  \
61         dbus-transport-debug.h                  \
62         dbus-transport-protected.h              \
63         dbus-transport-unix.c                   \
64         dbus-transport-unix.h                   \
65         dbus-watch.c                            \
66         dbus-watch.h
67
68 ##      dbus-md5.c                              \
69 ##      dbus-md5.h                              \
70
71 ### source code that goes in the installed client library
72 ### AND is generic utility functionality used by the 
73 ### daemon or test programs (all symbols in here should 
74 ### be underscore-prefixed)
75 DBUS_SHARED_SOURCES=                            \
76         dbus-dataslot.c                         \
77         dbus-dataslot.h                         \
78         dbus-hash.c                             \
79         dbus-hash.h                             \
80         dbus-internals.c                        \
81         dbus-internals.h                        \
82         dbus-list.c                             \
83         dbus-list.h                             \
84         dbus-marshal.c                          \
85         dbus-marshal.h                          \
86         dbus-memory.c                           \
87         dbus-mempool.c                          \
88         dbus-mempool.h                          \
89         dbus-message-builder.c                  \
90         dbus-message-builder.h                  \
91         dbus-spawn.c                            \
92         dbus-spawn.h                            \
93         dbus-string.c                           \
94         dbus-string.h                           \
95         dbus-string-private.h                   \
96         dbus-sysdeps.c                          \
97         dbus-sysdeps.h
98
99 ### source code that is generic utility functionality used
100 ### by the bus daemon or test apps, but is NOT included
101 ### in the D-BUS client library (all symbols in here 
102 ### should be underscore-prefixed but don't really need 
103 ### to be unless they move to DBUS_SHARED_SOURCES later)
104 DBUS_UTIL_SOURCES=                              \
105         dbus-mainloop.c                         \
106         dbus-mainloop.h
107
108 libdbus_1_la_SOURCES=                           \
109         $(DBUS_LIB_SOURCES)                     \
110         $(DBUS_SHARED_SOURCES)
111
112 libdbus_convenience_la_SOURCES=                 \
113         $(DBUS_LIB_SOURCES)                     \
114         $(DBUS_SHARED_SOURCES)                  \
115         $(DBUS_UTIL_SOURCES)
116
117 ## this library is the same as libdbus, but exports all the symbols
118 ## and is only used for static linking within the dbus package.
119 noinst_LTLIBRARIES=libdbus-convenience.la
120
121 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
122 ## don't export symbols that start with "_" (we use this 
123 ## convention for internal symbols)
124 libdbus_1_la_LDFLAGS= -export-symbols-regex "^[^_].*"
125
126 ## note that TESTS has special meaning (stuff to use in make check)
127 ## so if adding tests not to be run in make check, don't add them to 
128 ## TESTS
129 if DBUS_BUILD_TESTS
130 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
131 TESTS=dbus-test
132 else
133 TESTS=
134 endif
135
136 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build 
137 ## even when not doing "make check"
138 noinst_PROGRAMS=$(TESTS)
139
140 dbus_test_SOURCES=                              \
141         dbus-test-main.c
142
143 dbus_test_LDADD= $(DBUS_CLIENT_LIBS) libdbus-1.la
144
145 ## mop up the gcov files
146 clean-local:
147         /bin/rm *.bb *.bbg *.da *.gcov || true