2003-03-31 Havoc Pennington <hp@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=\""@EXPANDED_LOCALSTATEDIR@/@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-dict.h                             \
15         dbus-errors.h                           \
16         dbus-macros.h                           \
17         dbus-memory.h                           \
18         dbus-message.h                          \
19         dbus-message-handler.h                  \
20         dbus-protocol.h                         \
21         dbus-server.h                           \
22         dbus-threads.h                          \
23         dbus-types.h
24
25 DBUS_SOURCES=                                   \
26         dbus-address.c                          \
27         dbus-auth.c                             \
28         dbus-auth.h                             \
29         dbus-auth-script.c                      \
30         dbus-auth-script.h                      \
31         dbus-bus.c                              \
32         dbus-connection.c                       \
33         dbus-connection-internal.h              \
34         dbus-dict.c                             \
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 UTIL_SOURCES=                                   \
72         dbus-dataslot.c                         \
73         dbus-dataslot.h                         \
74         dbus-hash.c                             \
75         dbus-hash.h                             \
76         dbus-internals.c                        \
77         dbus-internals.h                        \
78         dbus-list.c                             \
79         dbus-list.h                             \
80         dbus-marshal.c                          \
81         dbus-marshal.h                          \
82         dbus-memory.c                           \
83         dbus-mempool.c                          \
84         dbus-mempool.h                          \
85         dbus-message-builder.c                  \
86         dbus-message-builder.h                  \
87         dbus-string.c                           \
88         dbus-string.h                           \
89         dbus-string-private.h                   \
90         dbus-sysdeps.c                          \
91         dbus-sysdeps.h
92
93 libdbus_1_la_SOURCES=                           \
94         $(DBUS_SOURCES)                         \
95         $(UTIL_SOURCES)
96
97 libdbus_convenience_la_SOURCES=                 \
98         $(DBUS_SOURCES)                         \
99         $(UTIL_SOURCES)
100
101 ## this library is the same as libdbus, but exports all the symbols
102 ## and is only used for static linking within the dbus package.
103 noinst_LTLIBRARIES=libdbus-convenience.la
104
105 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
106 ## don't export symbols that start with "_" (we use this 
107 ## convention for internal symbols)
108 libdbus_1_la_LDFLAGS= -export-symbols-regex "^[^_].*"
109
110 ## note that TESTS has special meaning (stuff to use in make check)
111 ## so if adding tests not to be run in make check, don't add them to 
112 ## TESTS
113 if DBUS_BUILD_TESTS
114 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_srcdir)/test/data
115 TESTS=dbus-test 
116 else
117 TESTS=
118 endif
119
120 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build 
121 ## even when not doing "make check"
122 noinst_PROGRAMS=$(TESTS)
123
124 dbus_test_SOURCES=                              \
125         dbus-test-main.c
126
127 dbus_test_LDADD= $(DBUS_CLIENT_LIBS) libdbus-1.la
128
129 ## mop up the gcov files
130 clean-local:
131         /bin/rm *.bb *.bbg *.da *.gcov || true