Added explicit constructor and destructor to class IncThread.
[ambi/valgrind.git] / Makefile.am
1
2 AUTOMAKE_OPTIONS = foreign 1.7 dist-bzip2
3
4 include $(top_srcdir)/Makefile.all.am 
5
6 TOOLS =         memcheck \
7                 cachegrind \
8                 callgrind \
9                 massif \
10                 lackey \
11                 none \
12                 helgrind \
13                 drd
14
15 EXP_TOOLS =     exp-ptrcheck \
16                 exp-bbv
17
18 # DDD: once all tools work on Darwin, TEST_TOOLS and TEST_EXP_TOOLS can be
19 # replaced with TOOLS and EXP_TOOLS.
20 TEST_TOOLS = $(TOOLS)
21 if !VGCONF_OS_IS_DARWIN
22   TEST_EXP_TOOLS = $(EXP_TOOLS)
23 else
24   TEST_EXP_TOOLS = exp-bbv
25 endif
26
27 # Put docs last because building the HTML is slow and we want to get
28 # everything else working before we try it.
29 SUBDIRS = \
30         include \
31         VEX \
32         coregrind \
33         . \
34         $(TOOLS) \
35         $(EXP_TOOLS) \
36         tests \
37         perf \
38         auxprogs \
39         mpi \
40         docs
41 DIST_SUBDIRS  = $(SUBDIRS)
42
43 SUPP_FILES = \
44         glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp glibc-2.5.supp \
45         glibc-2.6.supp glibc-2.7.supp glibc-2.X.supp.in \
46         aix5libc.supp xfree-3.supp xfree-4.supp \
47         glibc-2.34567-NPTL-helgrind.supp \
48         glibc-2.2-LinuxThreads-helgrind.supp \
49         glibc-2.X-drd.supp \
50         exp-ptrcheck.supp \
51         darwin9.supp darwin9-drd.supp
52 DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
53
54 # We include all the base .supp files in the distribution, but not
55 # default.supp, as it is built from the base .supp files at compile-time.
56 dist_noinst_DATA = $(SUPP_FILES)
57
58 pkglib_DATA = default.supp
59
60 pkgconfigdir = $(libdir)/pkgconfig
61 pkgconfig_DATA = valgrind.pc
62
63 BUILT_SOURCES  = default.supp valgrind.pc
64 CLEANFILES     = default.supp
65
66 default.supp: $(DEFAULT_SUPP_FILES)
67         echo "# This is a generated file, composed of the following suppression rules:" > default.supp
68         echo "# " $(DEFAULT_SUPP_FILES) >> default.supp
69         cat $(DEFAULT_SUPP_FILES) >> default.supp
70
71 ## Preprend @PERL@ because tests/vg_regtest isn't executable
72 regtest: check
73         @PERL@ tests/vg_regtest $(TEST_TOOLS) $(TEST_EXP_TOOLS)
74 nonexp-regtest: check
75         @PERL@ tests/vg_regtest $(TEST_TOOLS)
76 exp-regtest: check
77         @PERL@ tests/vg_regtest $(TEST_EXP_TOOLS)
78
79 ## Preprend @PERL@ because tests/vg_perf isn't executable
80 perf: check
81         @PERL@ perf/vg_perf perf
82
83 # Nb: no need to include any Makefile.am files here, or files included from
84 # them, as automake includes them automatically.  Also not COPYING, README
85 # or NEWS.
86 # We include valgrind.spec as well as valgrind.spec.in to save packagers
87 # from having to run configure (bug 188560).
88 EXTRA_DIST = \
89         COPYING.DOCS \
90         README_DEVELOPERS \
91         README_PACKAGERS \
92         README_MISSING_SYSCALL_OR_IOCTL \
93         valgrind.pc.in \
94         valgrind.spec.in \
95         valgrind.spec
96
97 dist_noinst_SCRIPTS = \
98         vg-in-place
99
100 all-local: default.supp
101         mkdir -p $(inplacedir)
102         rm -f $(inplacedir)/default.supp
103         ln -s ../default.supp $(inplacedir)
104
105 clean-local:
106         rm -rf $(inplacedir)
107
108