2002-11-23 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-macros.h                           \
11         dbus-memory.h                           \
12         dbus-message.h                          \
13         dbus-types.h
14
15 libdbus_1_la_SOURCES=                           \
16         dbus-memory.c                           \
17         dbus-message.c
18
19 ## this library is linked into both libdbus and the bus 
20 ## itself, but does not export any symbols from libdbus.
21 ## It contains utility functions not in the public API.
22
23 noinst_LTLIBRARIES=libdbus-convenience.la
24
25 libdbus_convenience_la_SOURCES=                 \
26         dbus-hash.c                             \
27         dbus-hash.h                             \
28         dbus-internals.c                        \
29         dbus-internals.h                        \
30         dbus-list.c                             \
31         dbus-list.h
32
33 libdbus_1_la_LIBADD=  $(DBUS_CLIENT_LIBS) libdbus-convenience.la
34 ## don't export symbols that start with "_" (we use this 
35 ## convention for internal symbols)
36 libdbus_1_la_LDFLAGS= -export-symbols-regex "^[[^_]].*"
37
38 if DBUS_BUILD_TESTS
39 noinst_PROGRAMS=dbus-test
40
41 dbus_test_SOURCES=                              \
42         dbus-test.c                             \
43         dbus-test.h
44
45 dbus_test_LDADD= $(DBUS_CLIENT_LIBS) libdbus-convenience.la libdbus-1.la
46
47 ## so that "make check" works
48 TESTS=dbus-test
49 endif