2 AUTOMAKE_OPTIONS = 1.13
4 ACLOCAL_AMFLAGS = -I m4
6 include $(top_srcdir)/Makefile.all.am
22 # Put docs last because building the HTML is slow and we want to get
23 # everything else working before we try it.
35 memcheck/tests/vbit-test \
40 DIST_SUBDIRS = $(SUBDIRS)
43 glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp glibc-2.5.supp \
44 glibc-2.6.supp glibc-2.7.supp glibc-2.X.supp.in \
45 xfree-3.supp xfree-4.supp \
46 glibc-2.X-helgrind.supp \
47 glibc-2.2-LinuxThreads-helgrind.supp \
49 darwin9.supp darwin9-drd.supp \
50 freebsd.supp freebsd-helgrind.supp freebsd-drd.supp \
51 darwin10.supp darwin10-drd.supp \
52 darwin11.supp darwin12.supp darwin13.supp darwin14.supp darwin15.supp \
53 darwin16.supp darwin17.supp \
55 solaris11.supp solaris12.supp \
57 DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
59 # We include all the base .supp files in the distribution, but not
60 # default.supp, as it is built from the base .supp files at compile-time.
61 dist_noinst_DATA = $(SUPP_FILES)
63 vglibdir = $(pkglibexecdir)
64 vglib_DATA = default.supp
66 pkgconfigdir = $(libdir)/pkgconfig
67 pkgconfig_DATA = valgrind.pc
69 BUILT_SOURCES = default.supp include/vgversion.h valgrind.pc
70 CLEANFILES = default.supp
72 default.supp: $(DEFAULT_SUPP_FILES)
73 echo "# This is a generated file, composed of the following suppression rules:" > default.supp
74 echo "# " $(DEFAULT_SUPP_FILES) >> default.supp
75 cat $^ >> default.supp
77 ## Preprend @PERL@ because tests/vg_regtest isn't executable
78 ## Ensure make exits with error if PERL fails or post_regtest_checks fails.
80 $(top_srcdir)/gdbserver_tests/make_local_links $(GDB)
81 if @PERL@ tests/vg_regtest gdbserver_tests $(TOOLS) $(EXP_TOOLS) ; then \
82 tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS); \
84 tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS); \
88 tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS)
90 @PERL@ tests/vg_regtest $(TOOLS)
92 @PERL@ tests/vg_regtest gdbserver_tests $(EXP_TOOLS)
93 # Nb: gdbserver_tests are put in exp-regtest rather than nonexp-regtest
94 # because they are tested with various valgrind tools, so might be using
95 # an experimental tool.
97 ## Preprend @PERL@ because tests/vg_perf isn't executable
99 @PERL@ perf/vg_perf perf
101 # Auxiliary test suites run under valgrind
103 $(MAKE) -C auxprogs auxchecks
105 # Nb: no need to include any Makefile.am files here, or files included from
106 # them, as automake includes them automatically. Also not COPYING, README
108 # We include valgrind.spec as well as valgrind.spec.in to save packagers
109 # from having to run configure (bug 188560).
113 README_DEVELOPERS_processes \
115 README_MISSING_SYSCALL_OR_IOCTL \
118 README.android_emulator \
130 dist-hook: include/vgversion.h
131 cp -p include/vgversion.h $(distdir)/include/vgversion_dist.h
133 dist_noinst_SCRIPTS = \
136 all-local: default.supp include/vgversion.h
137 mkdir -p $(inplacedir)
138 rm -f $(inplacedir)/default.supp
139 ln -s ../default.supp $(inplacedir)
142 rm -rf $(inplacedir) include/vgversion.h
143 find . -name '*.vgtest.log' -print0 | xargs -r -0 rm
144 find . -name '*.vgtest.trs' -print0 | xargs -r -0 rm
145 find . -name test-suite.log -print0 | xargs -r -0 rm
146 rm -f test-suite-overall.log
148 # Need config.h in the installed tree, since some files depend on it
149 pkginclude_HEADERS = config.h
151 # vgversion.h defines accurate versions to report with -v --version
153 $(top_srcdir)/auxprogs/make_or_upd_vgversion_h $(top_srcdir)
155 .PHONY: include/vgversion.h