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