njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 1 | |
florian | ef0bca6 | 2012-05-06 03:37:25 +0000 | [diff] [blame] | 2 | AUTOMAKE_OPTIONS = foreign 1.10 dist-bzip2 |
sewardj | 31f6cb5 | 2003-03-01 01:26:55 +0000 | [diff] [blame] | 3 | |
njn | 3e986b2 | 2004-11-30 10:43:45 +0000 | [diff] [blame] | 4 | include $(top_srcdir)/Makefile.all.am |
nethercote | 4388a40 | 2004-09-01 23:20:49 +0000 | [diff] [blame] | 5 | |
sewardj | b262ff4 | 2014-11-25 11:43:54 +0000 | [diff] [blame] | 6 | TOOLS = memcheck \ |
7 | cachegrind \ | ||||
8 | callgrind \ | ||||
9 | massif \ | ||||
10 | lackey \ | ||||
11 | none \ | ||||
12 | helgrind \ | ||||
13 | drd | ||||
14 | |||||
15 | EXP_TOOLS = exp-sgcheck \ | ||||
16 | exp-bbv \ | ||||
17 | exp-dhat | ||||
sewardj | b5f6f51 | 2005-03-10 23:59:00 +0000 | [diff] [blame] | 18 | |
njn | 3f7e911 | 2005-06-19 05:43:21 +0000 | [diff] [blame] | 19 | # Put docs last because building the HTML is slow and we want to get |
20 | # everything else working before we try it. | ||||
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 21 | SUBDIRS = \ |
22 | include \ | ||||
23 | VEX \ | ||||
24 | coregrind \ | ||||
25 | . \ | ||||
26 | $(TOOLS) \ | ||||
27 | $(EXP_TOOLS) \ | ||||
mjw | aeacd28 | 2014-03-11 19:30:32 +0000 | [diff] [blame] | 28 | shared \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 29 | tests \ |
30 | perf \ | ||||
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 31 | gdbserver_tests \ |
florian | bb913cd | 2012-08-28 16:50:39 +0000 | [diff] [blame] | 32 | memcheck/tests/vbit-test \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 33 | auxprogs \ |
34 | mpi \ | ||||
35 | docs | ||||
njn | 1d0825f | 2006-03-27 11:37:07 +0000 | [diff] [blame] | 36 | DIST_SUBDIRS = $(SUBDIRS) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 37 | |
njn | a63e2d7 | 2003-06-12 14:13:05 +0000 | [diff] [blame] | 38 | SUPP_FILES = \ |
sewardj | 9977424 | 2006-10-14 14:03:51 +0000 | [diff] [blame] | 39 | glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp glibc-2.5.supp \ |
sewardj | 84eb487 | 2008-06-03 20:58:46 +0000 | [diff] [blame] | 40 | glibc-2.6.supp glibc-2.7.supp glibc-2.X.supp.in \ |
sewardj | 6e9de46 | 2011-06-28 07:25:29 +0000 | [diff] [blame] | 41 | xfree-3.supp xfree-4.supp \ |
sewardj | 68c80c1 | 2007-11-18 14:40:02 +0000 | [diff] [blame] | 42 | glibc-2.34567-NPTL-helgrind.supp \ |
sewardj | bbec772 | 2007-11-25 14:08:53 +0000 | [diff] [blame] | 43 | glibc-2.2-LinuxThreads-helgrind.supp \ |
sewardj | 5744c02 | 2008-10-19 18:58:13 +0000 | [diff] [blame] | 44 | glibc-2.X-drd.supp \ |
sewardj | d2f95a0 | 2011-05-11 16:04:28 +0000 | [diff] [blame] | 45 | exp-sgcheck.supp \ |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 46 | darwin9.supp darwin9-drd.supp \ |
sewardj | a9b1e65 | 2011-07-11 20:52:10 +0000 | [diff] [blame] | 47 | darwin10.supp darwin10-drd.supp \ |
sewardj | ac3afbd | 2014-11-06 20:16:05 +0000 | [diff] [blame] | 48 | darwin11.supp darwin12.supp darwin13.supp darwin14.supp \ |
sewardj | a9b1e65 | 2011-07-11 20:52:10 +0000 | [diff] [blame] | 49 | bionic.supp |
njn | cfc000e | 2009-01-20 06:56:26 +0000 | [diff] [blame] | 50 | DEFAULT_SUPP_FILES = @DEFAULT_SUPP@ |
gobry | 3b77789 | 2002-04-04 09:18:39 +0000 | [diff] [blame] | 51 | |
njn | 13e1319 | 2009-05-19 00:32:20 +0000 | [diff] [blame] | 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. | ||||
njn | 254dafe | 2009-02-09 03:25:04 +0000 | [diff] [blame] | 54 | dist_noinst_DATA = $(SUPP_FILES) |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 55 | |
tom | d5f4826 | 2012-02-21 15:53:35 +0000 | [diff] [blame] | 56 | vglibdir = $(pkglibdir) |
57 | vglib_DATA = default.supp | ||||
gobry | 3b77789 | 2002-04-04 09:18:39 +0000 | [diff] [blame] | 58 | |
mueller | bddd607 | 2003-11-19 21:50:07 +0000 | [diff] [blame] | 59 | pkgconfigdir = $(libdir)/pkgconfig |
60 | pkgconfig_DATA = valgrind.pc | ||||
61 | |||||
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 62 | BUILT_SOURCES = default.supp valgrind.pc |
njn | 13e1319 | 2009-05-19 00:32:20 +0000 | [diff] [blame] | 63 | CLEANFILES = default.supp |
daywalker | f5ef185 | 2003-02-25 01:48:15 +0000 | [diff] [blame] | 64 | |
njn | cfc000e | 2009-01-20 06:56:26 +0000 | [diff] [blame] | 65 | default.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 | ||||
mjw | e299020 | 2014-05-09 13:34:13 +0000 | [diff] [blame] | 68 | cat $^ >> default.supp |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 69 | |
njn | 71fe3e6 | 2003-04-23 21:48:20 +0000 | [diff] [blame] | 70 | ## Preprend @PERL@ because tests/vg_regtest isn't executable |
florian | 43c5633 | 2013-09-19 14:55:09 +0000 | [diff] [blame] | 71 | ## Ensure make exits with error if PERL fails or post_regtest_checks fails. |
daywalker | c60b3a1 | 2003-04-23 16:39:31 +0000 | [diff] [blame] | 72 | regtest: check |
mjw | e299020 | 2014-05-09 13:34:13 +0000 | [diff] [blame] | 73 | $(top_srcdir)/gdbserver_tests/make_local_links $(GDB) |
philippe | 6155d36 | 2012-03-25 10:54:59 +0000 | [diff] [blame] | 74 | if @PERL@ tests/vg_regtest gdbserver_tests $(TOOLS) $(EXP_TOOLS) ; then \ |
florian | 43c5633 | 2013-09-19 14:55:09 +0000 | [diff] [blame] | 75 | tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS); \ |
philippe | 6155d36 | 2012-03-25 10:54:59 +0000 | [diff] [blame] | 76 | else \ |
florian | 43c5633 | 2013-09-19 14:55:09 +0000 | [diff] [blame] | 77 | tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS); \ |
philippe | 6155d36 | 2012-03-25 10:54:59 +0000 | [diff] [blame] | 78 | false; \ |
79 | fi | ||||
florian | 43c5633 | 2013-09-19 14:55:09 +0000 | [diff] [blame] | 80 | post-regtest-checks: |
81 | tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS) | ||||
njn | ad4e8ab | 2008-02-10 22:19:58 +0000 | [diff] [blame] | 82 | nonexp-regtest: check |
florian | bec5baf | 2011-11-08 20:16:09 +0000 | [diff] [blame] | 83 | @PERL@ tests/vg_regtest $(TOOLS) |
sewardj | bbec772 | 2007-11-25 14:08:53 +0000 | [diff] [blame] | 84 | exp-regtest: check |
florian | bec5baf | 2011-11-08 20:16:09 +0000 | [diff] [blame] | 85 | @PERL@ tests/vg_regtest gdbserver_tests $(EXP_TOOLS) |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 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. | ||||
njn | 55b98e9 | 2003-04-08 10:29:13 +0000 | [diff] [blame] | 89 | |
njn | cc874b5 | 2009-01-08 06:07:05 +0000 | [diff] [blame] | 90 | ## Preprend @PERL@ because tests/vg_perf isn't executable |
njn | ec0c27a | 2005-12-10 23:11:28 +0000 | [diff] [blame] | 91 | perf: check |
92 | @PERL@ perf/vg_perf perf | ||||
93 | |||||
njn | cdf8a17 | 2009-02-06 04:13:52 +0000 | [diff] [blame] | 94 | # Nb: no need to include any Makefile.am files here, or files included from |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 95 | # them, as automake includes them automatically. Also not COPYING, README |
96 | # or NEWS. | ||||
njn | cb3fca8 | 2009-07-04 00:38:11 +0000 | [diff] [blame] | 97 | # We include valgrind.spec as well as valgrind.spec.in to save packagers |
98 | # from having to run configure (bug 188560). | ||||
nethercote | 537e894 | 2004-08-25 11:40:07 +0000 | [diff] [blame] | 99 | EXTRA_DIST = \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 100 | COPYING.DOCS \ |
nethercote | 16b59ee | 2004-10-09 15:59:05 +0000 | [diff] [blame] | 101 | README_DEVELOPERS \ |
nethercote | 5da1e17 | 2003-12-03 21:44:45 +0000 | [diff] [blame] | 102 | README_PACKAGERS \ |
njn | f7c00b1 | 2005-07-19 21:46:19 +0000 | [diff] [blame] | 103 | README_MISSING_SYSCALL_OR_IOCTL \ |
sewardj | 15f9feb | 2011-03-10 12:36:09 +0000 | [diff] [blame] | 104 | README.s390 \ |
sewardj | 37ed97b | 2011-07-12 13:34:31 +0000 | [diff] [blame] | 105 | README.android \ |
philippe | 7d9b41b | 2012-09-11 19:53:01 +0000 | [diff] [blame] | 106 | README.android_emulator \ |
petarj | b43264c | 2012-06-27 16:07:30 +0000 | [diff] [blame] | 107 | README.mips \ |
sewardj | 383d5d3 | 2014-01-13 11:50:17 +0000 | [diff] [blame] | 108 | README.aarch64 \ |
sewardj | 4e9dfd3 | 2012-08-08 20:38:03 +0000 | [diff] [blame] | 109 | NEWS.old \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 110 | valgrind.pc.in \ |
njn | cb3fca8 | 2009-07-04 00:38:11 +0000 | [diff] [blame] | 111 | valgrind.spec.in \ |
sewardj | 3497e0e | 2012-09-17 17:17:00 +0000 | [diff] [blame] | 112 | valgrind.spec \ |
113 | autogen.sh | ||||
sewardj | fed4dd0 | 2002-04-14 14:32:54 +0000 | [diff] [blame] | 114 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 115 | dist_noinst_SCRIPTS = \ |
116 | vg-in-place | ||||
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 117 | |
njn | cfc000e | 2009-01-20 06:56:26 +0000 | [diff] [blame] | 118 | all-local: default.supp |
nethercote | b7dceef | 2004-08-25 11:50:46 +0000 | [diff] [blame] | 119 | mkdir -p $(inplacedir) |
njn | 40d0df5 | 2009-02-09 01:52:55 +0000 | [diff] [blame] | 120 | rm -f $(inplacedir)/default.supp |
nethercote | b7dceef | 2004-08-25 11:50:46 +0000 | [diff] [blame] | 121 | ln -s ../default.supp $(inplacedir) |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 122 | |
njn | ae508b0 | 2009-04-24 04:12:28 +0000 | [diff] [blame] | 123 | clean-local: |
nethercote | b7dceef | 2004-08-25 11:50:46 +0000 | [diff] [blame] | 124 | rm -rf $(inplacedir) |
sewardj | 85a9dca | 2005-07-26 10:42:57 +0000 | [diff] [blame] | 125 | |
sewardj | 731f9cf | 2011-09-21 08:43:08 +0000 | [diff] [blame] | 126 | # Need config.h in the installed tree, since some files depend on it |
127 | pkginclude_HEADERS = config.h |