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