2003-03-13 Havoc Pennington <hp@redhat.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 bin_PROGRAMS=dbus-daemon-1
8
9 noinst_LTLIBRARIES=libdbus-daemon.la
10
11 libdbus_daemon_la_SOURCES=                      \
12         activation.c                            \
13         activation.h                            \
14         bus.c                                   \
15         bus.h                                   \
16         connection.c                            \
17         connection.h                            \
18         desktop-file.c                          \
19         desktop-file.h                          \
20         dispatch.c                              \
21         dispatch.h                              \
22         driver.c                                \
23         driver.h                                \
24         loop.c                                  \
25         loop.h                                  \
26         services.c                              \
27         services.h                              \
28         test.c                                  \
29         test.h                                  \
30         utils.c                                 \
31         utils.h
32
33
34 libdbus_daemon_la_LIBADD=                               \
35         $(top_builddir)/dbus/libdbus-convenience.la
36
37 dbus_daemon_1_SOURCES=                          \
38         main.c                                  
39
40 dbus_daemon_1_LDADD=                                    \
41         $(EFENCE)                                       \
42         $(DBUS_BUS_LIBS)                                \
43         $(top_builddir)/bus/libdbus-daemon.la           \
44         $(top_builddir)/dbus/libdbus-1.la
45
46 ## note that TESTS has special meaning (stuff to use in make check)
47 ## so if adding tests not to be run in make check, don't add them to 
48 ## TESTS
49 if DBUS_BUILD_TESTS
50 TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_srcdir)/test/data
51 TESTS=bus-test 
52 else
53 TESTS=
54 endif
55
56 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build 
57 ## even when not doing "make check"
58 noinst_PROGRAMS=$(TESTS)
59
60 bus_test_SOURCES=                               \
61         test-main.c
62
63 bus_test_LDADD= $(top_builddir)/dbus/libdbus-1.la libdbus-daemon.la
64
65 ## mop up the gcov files
66 clean-local:
67         /bin/rm *.bb *.bbg *.da *.gcov || true