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