blob: 6bbe4d4e49bda1e0f9eda620121bd5f3ad617e85 [file] [log] [blame]
njn25e49d8e72002-09-23 09:36:25 +00001
tomd9fa7512005-11-30 00:03:58 +00002AUTOMAKE_OPTIONS = foreign 1.7 dist-bzip2
sewardj31f6cb52003-03-01 01:26:55 +00003
njn3e986b22004-11-30 10:43:45 +00004include $(top_srcdir)/Makefile.all.am
nethercote4388a402004-09-01 23:20:49 +00005
njn86f12dc2005-03-14 01:16:05 +00006TOOLS = memcheck \
njn6a3009b2005-03-20 00:20:06 +00007 cachegrind \
weidendoa17f2a32006-03-20 10:27:30 +00008 callgrind \
njn6a3009b2005-03-20 00:20:06 +00009 massif \
10 lackey \
sewardj99a2ceb2007-11-09 12:30:36 +000011 none \
bartccf17de2008-07-04 15:14:35 +000012 helgrind \
13 drd
sewardjbbec7722007-11-25 14:08:53 +000014
njndbebecc2009-07-14 01:39:54 +000015EXP_TOOLS = exp-ptrcheck \
16 exp-bbv
sewardjb5f6f512005-03-10 23:59:00 +000017
njnf76d27a2009-05-28 01:53:07 +000018# DDD: once all tools work on Darwin, TEST_TOOLS and TEST_EXP_TOOLS can be
19# replaced with TOOLS and EXP_TOOLS.
njn1205e022009-08-14 02:12:54 +000020TEST_TOOLS = $(TOOLS)
njnf76d27a2009-05-28 01:53:07 +000021if !VGCONF_OS_IS_DARWIN
njnf76d27a2009-05-28 01:53:07 +000022 TEST_EXP_TOOLS = $(EXP_TOOLS)
23else
njndbebecc2009-07-14 01:39:54 +000024 TEST_EXP_TOOLS = exp-bbv
njnf76d27a2009-05-28 01:53:07 +000025endif
26
njn3f7e9112005-06-19 05:43:21 +000027# Put docs last because building the HTML is slow and we want to get
28# everything else working before we try it.
njn8b68b642009-06-24 00:37:09 +000029SUBDIRS = \
30 include \
31 VEX \
32 coregrind \
33 . \
34 $(TOOLS) \
35 $(EXP_TOOLS) \
36 tests \
37 perf \
38 auxprogs \
39 mpi \
40 docs
njn1d0825f2006-03-27 11:37:07 +000041DIST_SUBDIRS = $(SUBDIRS)
sewardjde4a1d02002-03-22 01:27:54 +000042
njna63e2d72003-06-12 14:13:05 +000043SUPP_FILES = \
sewardj99774242006-10-14 14:03:51 +000044 glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp glibc-2.5.supp \
sewardj84eb4872008-06-03 20:58:46 +000045 glibc-2.6.supp glibc-2.7.supp glibc-2.X.supp.in \
46 aix5libc.supp xfree-3.supp xfree-4.supp \
sewardj68c80c12007-11-18 14:40:02 +000047 glibc-2.34567-NPTL-helgrind.supp \
sewardjbbec7722007-11-25 14:08:53 +000048 glibc-2.2-LinuxThreads-helgrind.supp \
sewardj5744c022008-10-19 18:58:13 +000049 glibc-2.X-drd.supp \
njnf76d27a2009-05-28 01:53:07 +000050 exp-ptrcheck.supp \
njnea2d6fd2010-07-01 00:20:20 +000051 darwin9.supp darwin9-drd.supp \
52 darwin10.supp darwin10-drd.supp
njncfc000e2009-01-20 06:56:26 +000053DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
gobry3b777892002-04-04 09:18:39 +000054
njn13e13192009-05-19 00:32:20 +000055# 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.
njn254dafe2009-02-09 03:25:04 +000057dist_noinst_DATA = $(SUPP_FILES)
njn8b68b642009-06-24 00:37:09 +000058
59pkglib_DATA = default.supp
gobry3b777892002-04-04 09:18:39 +000060
muellerbddd6072003-11-19 21:50:07 +000061pkgconfigdir = $(libdir)/pkgconfig
62pkgconfig_DATA = valgrind.pc
63
tomfb7bcde2005-11-07 15:24:38 +000064BUILT_SOURCES = default.supp valgrind.pc
njn13e13192009-05-19 00:32:20 +000065CLEANFILES = default.supp
daywalkerf5ef1852003-02-25 01:48:15 +000066
njncfc000e2009-01-20 06:56:26 +000067default.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
sewardjde4a1d02002-03-22 01:27:54 +000071
njn71fe3e62003-04-23 21:48:20 +000072## Preprend @PERL@ because tests/vg_regtest isn't executable
daywalkerc60b3a12003-04-23 16:39:31 +000073regtest: check
njnf76d27a2009-05-28 01:53:07 +000074 @PERL@ tests/vg_regtest $(TEST_TOOLS) $(TEST_EXP_TOOLS)
njnad4e8ab2008-02-10 22:19:58 +000075nonexp-regtest: check
njnf76d27a2009-05-28 01:53:07 +000076 @PERL@ tests/vg_regtest $(TEST_TOOLS)
sewardjbbec7722007-11-25 14:08:53 +000077exp-regtest: check
njnf76d27a2009-05-28 01:53:07 +000078 @PERL@ tests/vg_regtest $(TEST_EXP_TOOLS)
njn55b98e92003-04-08 10:29:13 +000079
njncc874b52009-01-08 06:07:05 +000080## Preprend @PERL@ because tests/vg_perf isn't executable
njnec0c27a2005-12-10 23:11:28 +000081perf: check
82 @PERL@ perf/vg_perf perf
83
njncdf8a172009-02-06 04:13:52 +000084# Nb: no need to include any Makefile.am files here, or files included from
njn8b68b642009-06-24 00:37:09 +000085# them, as automake includes them automatically. Also not COPYING, README
86# or NEWS.
njncb3fca82009-07-04 00:38:11 +000087# We include valgrind.spec as well as valgrind.spec.in to save packagers
88# from having to run configure (bug 188560).
nethercote537e8942004-08-25 11:40:07 +000089EXTRA_DIST = \
njn8b68b642009-06-24 00:37:09 +000090 COPYING.DOCS \
nethercote16b59ee2004-10-09 15:59:05 +000091 README_DEVELOPERS \
nethercote5da1e172003-12-03 21:44:45 +000092 README_PACKAGERS \
njnf7c00b12005-07-19 21:46:19 +000093 README_MISSING_SYSCALL_OR_IOCTL \
njn8b68b642009-06-24 00:37:09 +000094 valgrind.pc.in \
njncb3fca82009-07-04 00:38:11 +000095 valgrind.spec.in \
96 valgrind.spec
sewardjfed4dd02002-04-14 14:32:54 +000097
njn8b68b642009-06-24 00:37:09 +000098dist_noinst_SCRIPTS = \
99 vg-in-place
njn25e49d8e72002-09-23 09:36:25 +0000100
njncfc000e2009-01-20 06:56:26 +0000101all-local: default.supp
nethercoteb7dceef2004-08-25 11:50:46 +0000102 mkdir -p $(inplacedir)
njn40d0df52009-02-09 01:52:55 +0000103 rm -f $(inplacedir)/default.supp
nethercoteb7dceef2004-08-25 11:50:46 +0000104 ln -s ../default.supp $(inplacedir)
fitzhardinge98abfc72003-12-16 02:05:15 +0000105
njnae508b02009-04-24 04:12:28 +0000106clean-local:
nethercoteb7dceef2004-08-25 11:50:46 +0000107 rm -rf $(inplacedir)
sewardj85a9dca2005-07-26 10:42:57 +0000108
109