njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 1 | |
tom | d9fa751 | 2005-11-30 00:03:58 +0000 | [diff] [blame] | 2 | AUTOMAKE_OPTIONS = foreign 1.7 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 | |
njn | 86f12dc | 2005-03-14 01:16:05 +0000 | [diff] [blame] | 6 | TOOLS = memcheck \ |
njn | 6a3009b | 2005-03-20 00:20:06 +0000 | [diff] [blame] | 7 | cachegrind \ |
weidendo | a17f2a3 | 2006-03-20 10:27:30 +0000 | [diff] [blame] | 8 | callgrind \ |
njn | 6a3009b | 2005-03-20 00:20:06 +0000 | [diff] [blame] | 9 | massif \ |
10 | lackey \ | ||||
sewardj | 99a2ceb | 2007-11-09 12:30:36 +0000 | [diff] [blame] | 11 | none \ |
bart | ccf17de | 2008-07-04 15:14:35 +0000 | [diff] [blame] | 12 | helgrind \ |
13 | drd | ||||
sewardj | bbec772 | 2007-11-25 14:08:53 +0000 | [diff] [blame] | 14 | |
sewardj | d2f95a0 | 2011-05-11 16:04:28 +0000 | [diff] [blame] | 15 | EXP_TOOLS = exp-sgcheck \ |
sewardj | 4d7d8f5 | 2010-10-12 10:09:15 +0000 | [diff] [blame] | 16 | exp-bbv \ |
njn | dfa408c | 2011-08-08 01:58:50 +0000 | [diff] [blame^] | 17 | exp-dhat \ |
18 | exp-dmd | ||||
sewardj | b5f6f51 | 2005-03-10 23:59:00 +0000 | [diff] [blame] | 19 | |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 20 | # DDD: once all tools work on Darwin, TEST_TOOLS and TEST_EXP_TOOLS can be |
21 | # replaced with TOOLS and EXP_TOOLS. | ||||
njn | 1205e02 | 2009-08-14 02:12:54 +0000 | [diff] [blame] | 22 | TEST_TOOLS = $(TOOLS) |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 23 | if !VGCONF_OS_IS_DARWIN |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 24 | TEST_EXP_TOOLS = $(EXP_TOOLS) |
25 | else | ||||
njn | dbebecc | 2009-07-14 01:39:54 +0000 | [diff] [blame] | 26 | TEST_EXP_TOOLS = exp-bbv |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 27 | endif |
28 | |||||
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 29 | |
njn | 3f7e911 | 2005-06-19 05:43:21 +0000 | [diff] [blame] | 30 | # Put docs last because building the HTML is slow and we want to get |
31 | # everything else working before we try it. | ||||
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 32 | SUBDIRS = \ |
33 | include \ | ||||
34 | VEX \ | ||||
35 | coregrind \ | ||||
36 | . \ | ||||
37 | $(TOOLS) \ | ||||
38 | $(EXP_TOOLS) \ | ||||
39 | tests \ | ||||
40 | perf \ | ||||
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 41 | gdbserver_tests \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 42 | auxprogs \ |
43 | mpi \ | ||||
44 | docs | ||||
njn | 1d0825f | 2006-03-27 11:37:07 +0000 | [diff] [blame] | 45 | DIST_SUBDIRS = $(SUBDIRS) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 46 | |
njn | a63e2d7 | 2003-06-12 14:13:05 +0000 | [diff] [blame] | 47 | SUPP_FILES = \ |
sewardj | 9977424 | 2006-10-14 14:03:51 +0000 | [diff] [blame] | 48 | 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] | 49 | glibc-2.6.supp glibc-2.7.supp glibc-2.X.supp.in \ |
sewardj | 6e9de46 | 2011-06-28 07:25:29 +0000 | [diff] [blame] | 50 | xfree-3.supp xfree-4.supp \ |
sewardj | 68c80c1 | 2007-11-18 14:40:02 +0000 | [diff] [blame] | 51 | glibc-2.34567-NPTL-helgrind.supp \ |
sewardj | bbec772 | 2007-11-25 14:08:53 +0000 | [diff] [blame] | 52 | glibc-2.2-LinuxThreads-helgrind.supp \ |
sewardj | 5744c02 | 2008-10-19 18:58:13 +0000 | [diff] [blame] | 53 | glibc-2.X-drd.supp \ |
sewardj | d2f95a0 | 2011-05-11 16:04:28 +0000 | [diff] [blame] | 54 | exp-sgcheck.supp \ |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 55 | darwin9.supp darwin9-drd.supp \ |
sewardj | a9b1e65 | 2011-07-11 20:52:10 +0000 | [diff] [blame] | 56 | darwin10.supp darwin10-drd.supp \ |
57 | bionic.supp | ||||
njn | cfc000e | 2009-01-20 06:56:26 +0000 | [diff] [blame] | 58 | DEFAULT_SUPP_FILES = @DEFAULT_SUPP@ |
gobry | 3b77789 | 2002-04-04 09:18:39 +0000 | [diff] [blame] | 59 | |
njn | 13e1319 | 2009-05-19 00:32:20 +0000 | [diff] [blame] | 60 | # We include all the base .supp files in the distribution, but not |
61 | # 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] | 62 | dist_noinst_DATA = $(SUPP_FILES) |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 63 | |
64 | pkglib_DATA = default.supp | ||||
gobry | 3b77789 | 2002-04-04 09:18:39 +0000 | [diff] [blame] | 65 | |
mueller | bddd607 | 2003-11-19 21:50:07 +0000 | [diff] [blame] | 66 | pkgconfigdir = $(libdir)/pkgconfig |
67 | pkgconfig_DATA = valgrind.pc | ||||
68 | |||||
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 69 | BUILT_SOURCES = default.supp valgrind.pc |
njn | 13e1319 | 2009-05-19 00:32:20 +0000 | [diff] [blame] | 70 | CLEANFILES = default.supp |
daywalker | f5ef185 | 2003-02-25 01:48:15 +0000 | [diff] [blame] | 71 | |
njn | cfc000e | 2009-01-20 06:56:26 +0000 | [diff] [blame] | 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_FILES) >> default.supp | ||||
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 76 | |
njn | 71fe3e6 | 2003-04-23 21:48:20 +0000 | [diff] [blame] | 77 | ## Preprend @PERL@ because tests/vg_regtest isn't executable |
daywalker | c60b3a1 | 2003-04-23 16:39:31 +0000 | [diff] [blame] | 78 | regtest: check |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 79 | gdbserver_tests/make_local_links $(GDB) |
80 | @PERL@ tests/vg_regtest gdbserver_tests $(TEST_TOOLS) $(TEST_EXP_TOOLS) | ||||
njn | ad4e8ab | 2008-02-10 22:19:58 +0000 | [diff] [blame] | 81 | nonexp-regtest: check |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 82 | @PERL@ tests/vg_regtest $(TEST_TOOLS) |
sewardj | bbec772 | 2007-11-25 14:08:53 +0000 | [diff] [blame] | 83 | exp-regtest: check |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 84 | @PERL@ tests/vg_regtest gdbserver_tests $(TEST_EXP_TOOLS) |
85 | # Nb: gdbserver_tests are put in exp-regtest rather than nonexp-regtest | ||||
86 | # because they are tested with various valgrind tools, so might be using | ||||
87 | # an experimental tool. | ||||
njn | 55b98e9 | 2003-04-08 10:29:13 +0000 | [diff] [blame] | 88 | |
njn | cc874b5 | 2009-01-08 06:07:05 +0000 | [diff] [blame] | 89 | ## Preprend @PERL@ because tests/vg_perf isn't executable |
njn | ec0c27a | 2005-12-10 23:11:28 +0000 | [diff] [blame] | 90 | perf: check |
91 | @PERL@ perf/vg_perf perf | ||||
92 | |||||
njn | cdf8a17 | 2009-02-06 04:13:52 +0000 | [diff] [blame] | 93 | # 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] | 94 | # them, as automake includes them automatically. Also not COPYING, README |
95 | # or NEWS. | ||||
njn | cb3fca8 | 2009-07-04 00:38:11 +0000 | [diff] [blame] | 96 | # We include valgrind.spec as well as valgrind.spec.in to save packagers |
97 | # from having to run configure (bug 188560). | ||||
nethercote | 537e894 | 2004-08-25 11:40:07 +0000 | [diff] [blame] | 98 | EXTRA_DIST = \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 99 | COPYING.DOCS \ |
nethercote | 16b59ee | 2004-10-09 15:59:05 +0000 | [diff] [blame] | 100 | README_DEVELOPERS \ |
nethercote | 5da1e17 | 2003-12-03 21:44:45 +0000 | [diff] [blame] | 101 | README_PACKAGERS \ |
njn | f7c00b1 | 2005-07-19 21:46:19 +0000 | [diff] [blame] | 102 | README_MISSING_SYSCALL_OR_IOCTL \ |
sewardj | 15f9feb | 2011-03-10 12:36:09 +0000 | [diff] [blame] | 103 | README.s390 \ |
sewardj | 37ed97b | 2011-07-12 13:34:31 +0000 | [diff] [blame] | 104 | README.android \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 105 | valgrind.pc.in \ |
njn | cb3fca8 | 2009-07-04 00:38:11 +0000 | [diff] [blame] | 106 | valgrind.spec.in \ |
107 | valgrind.spec | ||||
sewardj | fed4dd0 | 2002-04-14 14:32:54 +0000 | [diff] [blame] | 108 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 109 | dist_noinst_SCRIPTS = \ |
110 | vg-in-place | ||||
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 111 | |
njn | cfc000e | 2009-01-20 06:56:26 +0000 | [diff] [blame] | 112 | all-local: default.supp |
nethercote | b7dceef | 2004-08-25 11:50:46 +0000 | [diff] [blame] | 113 | mkdir -p $(inplacedir) |
njn | 40d0df5 | 2009-02-09 01:52:55 +0000 | [diff] [blame] | 114 | rm -f $(inplacedir)/default.supp |
nethercote | b7dceef | 2004-08-25 11:50:46 +0000 | [diff] [blame] | 115 | ln -s ../default.supp $(inplacedir) |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 116 | |
njn | ae508b0 | 2009-04-24 04:12:28 +0000 | [diff] [blame] | 117 | clean-local: |
nethercote | b7dceef | 2004-08-25 11:50:46 +0000 | [diff] [blame] | 118 | rm -rf $(inplacedir) |
sewardj | 85a9dca | 2005-07-26 10:42:57 +0000 | [diff] [blame] | 119 | |
120 |