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