Update __VALGRIND_MINOR__ for the upcoming 3.15 release.
[valgrind.git] / Makefile.am
blob242b38a142a6bc8b8bce21416d436648ede4daf1
2 AUTOMAKE_OPTIONS = 1.10
4 include $(top_srcdir)/Makefile.all.am 
6 TOOLS = \
7                 memcheck \
8                 cachegrind \
9                 callgrind \
10                 helgrind \
11                 drd \
12                 massif \
13                 dhat \
14                 lackey \
15                 none
17 EXP_TOOLS = \
18                 exp-sgcheck \
19                 exp-bbv
21 # Put docs last because building the HTML is slow and we want to get
22 # everything else working before we try it.
23 SUBDIRS = \
24         include \
25         VEX \
26         coregrind \
27         . \
28         $(TOOLS) \
29         $(EXP_TOOLS) \
30         shared \
31         tests \
32         perf \
33         gdbserver_tests \
34         memcheck/tests/vbit-test \
35         auxprogs \
36         mpi \
37         solaris \
38         docs
39 DIST_SUBDIRS  = $(SUBDIRS)
41 SUPP_FILES = \
42         glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp glibc-2.5.supp \
43         glibc-2.6.supp glibc-2.7.supp glibc-2.X.supp.in \
44         xfree-3.supp xfree-4.supp \
45         glibc-2.34567-NPTL-helgrind.supp \
46         glibc-2.2-LinuxThreads-helgrind.supp \
47         glibc-2.X-drd.supp \
48         exp-sgcheck.supp \
49         darwin9.supp darwin9-drd.supp \
50         darwin10.supp darwin10-drd.supp \
51         darwin11.supp darwin12.supp darwin13.supp darwin14.supp darwin15.supp \
52         darwin16.supp darwin17.supp \
53         bionic.supp \
54         solaris11.supp solaris12.supp
55 DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
57 # We include all the base .supp files in the distribution, but not
58 # default.supp, as it is built from the base .supp files at compile-time.
59 dist_noinst_DATA = $(SUPP_FILES)
61 vglibdir = $(pkglibdir)
62 vglib_DATA = default.supp
64 pkgconfigdir = $(libdir)/pkgconfig
65 pkgconfig_DATA = valgrind.pc
67 BUILT_SOURCES  = default.supp include/vgversion.h valgrind.pc
68 CLEANFILES     = default.supp
70 default.supp: $(DEFAULT_SUPP_FILES)
71         echo "# This is a generated file, composed of the following suppression rules:" > default.supp
72         echo "# " $(DEFAULT_SUPP_FILES) >> default.supp
73         cat $^ >> default.supp
75 ## Preprend @PERL@ because tests/vg_regtest isn't executable
76 ## Ensure make exits with error if PERL fails or post_regtest_checks fails.
77 regtest: check
78         $(top_srcdir)/gdbserver_tests/make_local_links $(GDB)
79         if @PERL@ tests/vg_regtest gdbserver_tests $(TOOLS) $(EXP_TOOLS) ; then \
80            tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS); \
81         else \
82            tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS); \
83            false; \
84         fi
85 post-regtest-checks:
86         tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS)
87 nonexp-regtest: check
88         @PERL@ tests/vg_regtest $(TOOLS)
89 exp-regtest: check
90         @PERL@ tests/vg_regtest gdbserver_tests $(EXP_TOOLS)
91 # Nb: gdbserver_tests are put in exp-regtest rather than nonexp-regtest
92 # because they are tested with various valgrind tools, so might be using
93 # an experimental tool.
95 ## Preprend @PERL@ because tests/vg_perf isn't executable
96 perf: check
97         @PERL@ perf/vg_perf perf
99 # Nb: no need to include any Makefile.am files here, or files included from
100 # them, as automake includes them automatically.  Also not COPYING, README
101 # or NEWS.
102 # We include valgrind.spec as well as valgrind.spec.in to save packagers
103 # from having to run configure (bug 188560).
104 EXTRA_DIST = \
105         COPYING.DOCS \
106         README_DEVELOPERS \
107         README_DEVELOPERS_processes \
108         README_PACKAGERS \
109         README_MISSING_SYSCALL_OR_IOCTL \
110         README.s390 \
111         README.android \
112         README.android_emulator \
113         README.mips \
114         README.aarch64 \
115         README.solaris \
116         NEWS.old \
117         valgrind.pc.in \
118         valgrind.spec.in \
119         valgrind.spec \
120         autogen.sh
122 dist-hook: include/vgversion.h
123         cp -p include/vgversion.h $(distdir)/include/vgversion_dist.h
125 dist_noinst_SCRIPTS = \
126         vg-in-place
128 all-local: default.supp include/vgversion.h
129         mkdir -p $(inplacedir)
130         rm -f $(inplacedir)/default.supp
131         ln -s ../default.supp $(inplacedir)
133 clean-local:
134         rm -rf $(inplacedir) include/vgversion.h
136 # Need config.h in the installed tree, since some files depend on it
137 pkginclude_HEADERS = config.h
139 # vgversion.h defines accurate versions to report with -v --version
140 include/vgversion.h:
141         $(top_srcdir)/auxprogs/make_or_upd_vgversion_h $(top_srcdir)
143 .PHONY: include/vgversion.h