2003-03-31 Havoc Pennington <hp@pobox.com>
[platform/upstream/dbus.git] / bus / Makefile.am
1
2 INCLUDES=-I$(top_srcdir) $(DBUS_BUS_CFLAGS) \
3         -DDAEMON_NAME=\"dbus-daemon-1\"  -DDBUS_COMPILATION
4
5 EFENCE=
6
7 configdir=$(sysconfdir)/dbus-1
8
9 config_DATA=                                    \
10         system.conf                             \
11         session.conf
12
13 bin_PROGRAMS=dbus-daemon-1
14
15 if DBUS_USE_LIBXML
16 XML_SOURCES=config-loader-libxml.c
17 endif
18 if DBUS_USE_EXPAT
19 XML_SOURCES=config-loader-expat.c
20 endif
21
22 BUS_SOURCES=                                    \
23         activation.c                            \
24         activation.h                            \
25         bus.c                                   \
26         bus.h                                   \
27         config-parser.c                         \
28         config-parser.h                         \
29         connection.c                            \
30         connection.h                            \
31         desktop-file.c                          \
32         desktop-file.h                          \
33         dispatch.c                              \
34         dispatch.h                              \
35         driver.c                                \
36         driver.h                                \
37         loop.c                                  \
38         loop.h                                  \
39         policy.c                                \
40         policy.h                                \
41         services.c                              \
42         services.h                              \
43         test.c                                  \
44         test.h                                  \
45         utils.c                                 \
46         utils.h                                 \
47         $(XML_SOURCES)
48
49 dbus_daemon_1_SOURCES=                          \
50         $(BUS_SOURCES)                          \
51         main.c                                  
52
53 dbus_daemon_1_LDADD=                                    \
54         $(EFENCE)                                       \
55         $(DBUS_BUS_LIBS)                                \
56         $(top_builddir)/dbus/libdbus-convenience.la
57
58 ## note that TESTS has special meaning (stuff to use in make check)
59 ## so if adding tests not to be run in make check, don't add them to 
60 ## TESTS
61 if DBUS_BUILD_TESTS
62 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_srcdir)/test/data
63 TESTS=bus-test 
64 else
65 TESTS=
66 endif
67
68 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build 
69 ## even when not doing "make check"
70 noinst_PROGRAMS=$(TESTS)
71
72 bus_test_SOURCES=                               \
73         $(BUS_SOURCES)                          \
74         test-main.c
75
76 bus_test_LDADD=$(top_builddir)/dbus/libdbus-convenience.la $(DBUS_BUS_LIBS)
77
78 ## mop up the gcov files
79 clean-local:
80         /bin/rm *.bb *.bbg *.da *.gcov || true