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