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