bring Qt3 library back. Some apps that are not in the KDE trunk are using it.
[platform/upstream/dbus.git] / Makefile.am
1
2 if HAVE_GLIB
3     GLIB_SUBDIR=glib
4     GLIB_PC=dbus-glib-1.pc
5 endif
6
7 if HAVE_QT
8    QT_SUBDIR=qt
9 endif
10
11 if HAVE_QT3
12    QT3_SUBDIR=qt3
13 endif
14
15 if DBUS_USE_GCJ
16    GCJ_SUBDIR=gcj
17 endif
18
19 if DBUS_USE_CSC
20    MONO_SUBDIR=mono
21    MONO_PC=dbus-sharp.pc
22 endif
23
24 if HAVE_PYTHON
25    PYTHON_SUBDIR=python
26 endif
27
28 ## really we should require gcj/mcs/python also but since they are 
29 ## annoying to install, we don't for now
30 dist-local:
31         if test -z "$(QT_SUBDIR)" || test -z "$(GLIB_SUBDIR)" ; then            \
32                 echo "You have to build with Qt and GLib to make dist" ;        \
33         fi 
34
35 SUBDIRS=dbus bus doc $(GLIB_SUBDIR) $(GCJ_SUBDIR) $(MONO_SUBDIR) $(QT_SUBDIR) $(QT3_SUBDIR) $(PYTHON_SUBDIR) tools test
36 DIST_SUBDIRS=dbus bus doc glib qt qt3 gcj mono python tools test
37
38 pkgconfigdir = $(libdir)/pkgconfig
39 pkgconfig_DATA = dbus-1.pc $(GLIB_PC) $(MONO_PC)
40
41 DISTCLEANFILES =                \
42         dbus-1.pc               \
43         $(GLIB_PC)              \
44         $(MONO_PC)
45
46 EXTRA_DIST =                    \
47         HACKING                 \
48         dbus-1.pc.in            \
49         dbus-glib-1.pc.in       \
50         dbus-sharp.pc.in
51
52 all-local: Doxyfile
53
54 if DBUS_GCOV_ENABLED
55 clean-gcov:
56         find -name "*.da" -o -name "*.gcov" | xargs rm || true
57
58 clean-bbg:
59         find -name "*.bbg" -o -name "*.bb" | xargs rm || true
60
61 GCOV_DIRS=dbus bus $(GLIB_SUBDIR) $(QT_SUBDIR)
62
63 ## .PHONY so it always rebuilds it
64 .PHONY: coverage-report.txt
65 coverage-report.txt:
66         BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg" -o -name "*.gcno"` ;                 \
67         C_FILES= ;                                                                      \
68         for F in $$BBG_FILES ; do                                                       \
69                 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ;                           \
70                 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g' | sed -e 's/.gcno/.c/g'`  ;   \
71                 B=`basename $$F .bbg` ;                                                 \
72                 D=`dirname $$F` ;                                                       \
73                 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ;                                 \
74                 DA_libs=`echo $$D/.libs/$$B/.da` ;                                      \
75                 if test -e $$DA || test -e $$DA_libs; then                              \
76                         C_FILES="$$C_FILES $$C" ;                                       \
77                 fi ;                                                                    \
78         done ;                                                                          \
79         echo $$C_FILES ;                                                                \
80         $(top_builddir)/test/decode-gcov --report $$C_FILES > coverage-report.txt
81
82 check-coverage: clean-gcov all check coverage-report.txt
83         cat coverage-report.txt
84
85 else
86 coverage-report.txt:
87         echo "Need to reconfigure with --enable-gcov"
88
89 check-coverage:
90         echo "Need to reconfigure with --enable-gcov"
91
92 endif