blob: 4dfb8061a100e24c6a54c108b5ef78962855da64 [file] [log] [blame]
njn25e49d8e72002-09-23 09:36:25 +00001
florianef0bca62012-05-06 03:37:25 +00002AUTOMAKE_OPTIONS = foreign 1.10 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
sewardjd2f95a02011-05-11 16:04:28 +000015EXP_TOOLS = exp-sgcheck \
sewardj4d7d8f52010-10-12 10:09:15 +000016 exp-bbv \
njn830ca9e2011-08-08 02:27:20 +000017 exp-dhat
sewardjb5f6f512005-03-10 23:59:00 +000018
njn3f7e9112005-06-19 05:43:21 +000019# Put docs last because building the HTML is slow and we want to get
20# everything else working before we try it.
njn8b68b642009-06-24 00:37:09 +000021SUBDIRS = \
22 include \
23 VEX \
24 coregrind \
25 . \
26 $(TOOLS) \
27 $(EXP_TOOLS) \
28 tests \
29 perf \
sewardj3b290482011-05-06 21:02:55 +000030 gdbserver_tests \
njn8b68b642009-06-24 00:37:09 +000031 auxprogs \
32 mpi \
33 docs
njn1d0825f2006-03-27 11:37:07 +000034DIST_SUBDIRS = $(SUBDIRS)
sewardjde4a1d02002-03-22 01:27:54 +000035
njna63e2d72003-06-12 14:13:05 +000036SUPP_FILES = \
sewardj99774242006-10-14 14:03:51 +000037 glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp glibc-2.5.supp \
sewardj84eb4872008-06-03 20:58:46 +000038 glibc-2.6.supp glibc-2.7.supp glibc-2.X.supp.in \
sewardj6e9de462011-06-28 07:25:29 +000039 xfree-3.supp xfree-4.supp \
sewardj68c80c12007-11-18 14:40:02 +000040 glibc-2.34567-NPTL-helgrind.supp \
sewardjbbec7722007-11-25 14:08:53 +000041 glibc-2.2-LinuxThreads-helgrind.supp \
sewardj5744c022008-10-19 18:58:13 +000042 glibc-2.X-drd.supp \
sewardjd2f95a02011-05-11 16:04:28 +000043 exp-sgcheck.supp \
njnea2d6fd2010-07-01 00:20:20 +000044 darwin9.supp darwin9-drd.supp \
sewardja9b1e652011-07-11 20:52:10 +000045 darwin10.supp darwin10-drd.supp \
sewardjae284e52012-08-02 18:25:04 +000046 darwin11.supp darwin12.supp \
sewardja9b1e652011-07-11 20:52:10 +000047 bionic.supp
njncfc000e2009-01-20 06:56:26 +000048DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
gobry3b777892002-04-04 09:18:39 +000049
njn13e13192009-05-19 00:32:20 +000050# We include all the base .supp files in the distribution, but not
51# default.supp, as it is built from the base .supp files at compile-time.
njn254dafe2009-02-09 03:25:04 +000052dist_noinst_DATA = $(SUPP_FILES)
njn8b68b642009-06-24 00:37:09 +000053
tomd5f48262012-02-21 15:53:35 +000054vglibdir = $(pkglibdir)
55vglib_DATA = default.supp
gobry3b777892002-04-04 09:18:39 +000056
muellerbddd6072003-11-19 21:50:07 +000057pkgconfigdir = $(libdir)/pkgconfig
58pkgconfig_DATA = valgrind.pc
59
tomfb7bcde2005-11-07 15:24:38 +000060BUILT_SOURCES = default.supp valgrind.pc
njn13e13192009-05-19 00:32:20 +000061CLEANFILES = default.supp
daywalkerf5ef1852003-02-25 01:48:15 +000062
njncfc000e2009-01-20 06:56:26 +000063default.supp: $(DEFAULT_SUPP_FILES)
64 echo "# This is a generated file, composed of the following suppression rules:" > default.supp
65 echo "# " $(DEFAULT_SUPP_FILES) >> default.supp
66 cat $(DEFAULT_SUPP_FILES) >> default.supp
sewardjde4a1d02002-03-22 01:27:54 +000067
njn71fe3e62003-04-23 21:48:20 +000068## Preprend @PERL@ because tests/vg_regtest isn't executable
philippe4e86dd12012-03-25 14:55:17 +000069## Ensure make exits with error if PERL fails or check_makefile_consistency fails.
daywalkerc60b3a12003-04-23 16:39:31 +000070regtest: check
sewardj3b290482011-05-06 21:02:55 +000071 gdbserver_tests/make_local_links $(GDB)
philippe6155d362012-03-25 10:54:59 +000072 if @PERL@ tests/vg_regtest gdbserver_tests $(TOOLS) $(EXP_TOOLS) ; then \
73 tests/check_makefile_consistency gdbserver_tests $(TOOLS) $(EXP_TOOLS); \
74 else \
75 tests/check_makefile_consistency gdbserver_tests $(TOOLS) $(EXP_TOOLS); \
76 false; \
77 fi
njnad4e8ab2008-02-10 22:19:58 +000078nonexp-regtest: check
florianbec5baf2011-11-08 20:16:09 +000079 @PERL@ tests/vg_regtest $(TOOLS)
sewardjbbec7722007-11-25 14:08:53 +000080exp-regtest: check
florianbec5baf2011-11-08 20:16:09 +000081 @PERL@ tests/vg_regtest gdbserver_tests $(EXP_TOOLS)
sewardj3b290482011-05-06 21:02:55 +000082# Nb: gdbserver_tests are put in exp-regtest rather than nonexp-regtest
83# because they are tested with various valgrind tools, so might be using
84# an experimental tool.
njn55b98e92003-04-08 10:29:13 +000085
njncc874b52009-01-08 06:07:05 +000086## Preprend @PERL@ because tests/vg_perf isn't executable
njnec0c27a2005-12-10 23:11:28 +000087perf: check
88 @PERL@ perf/vg_perf perf
89
njncdf8a172009-02-06 04:13:52 +000090# Nb: no need to include any Makefile.am files here, or files included from
njn8b68b642009-06-24 00:37:09 +000091# them, as automake includes them automatically. Also not COPYING, README
92# or NEWS.
njncb3fca82009-07-04 00:38:11 +000093# We include valgrind.spec as well as valgrind.spec.in to save packagers
94# from having to run configure (bug 188560).
nethercote537e8942004-08-25 11:40:07 +000095EXTRA_DIST = \
njn8b68b642009-06-24 00:37:09 +000096 COPYING.DOCS \
nethercote16b59ee2004-10-09 15:59:05 +000097 README_DEVELOPERS \
nethercote5da1e172003-12-03 21:44:45 +000098 README_PACKAGERS \
njnf7c00b12005-07-19 21:46:19 +000099 README_MISSING_SYSCALL_OR_IOCTL \
sewardj15f9feb2011-03-10 12:36:09 +0000100 README.s390 \
sewardj37ed97b2011-07-12 13:34:31 +0000101 README.android \
petarjb43264c2012-06-27 16:07:30 +0000102 README.mips \
sewardj4e9dfd32012-08-08 20:38:03 +0000103 NEWS.old \
njn8b68b642009-06-24 00:37:09 +0000104 valgrind.pc.in \
njncb3fca82009-07-04 00:38:11 +0000105 valgrind.spec.in \
106 valgrind.spec
sewardjfed4dd02002-04-14 14:32:54 +0000107
njn8b68b642009-06-24 00:37:09 +0000108dist_noinst_SCRIPTS = \
109 vg-in-place
njn25e49d8e72002-09-23 09:36:25 +0000110
njncfc000e2009-01-20 06:56:26 +0000111all-local: default.supp
nethercoteb7dceef2004-08-25 11:50:46 +0000112 mkdir -p $(inplacedir)
njn40d0df52009-02-09 01:52:55 +0000113 rm -f $(inplacedir)/default.supp
nethercoteb7dceef2004-08-25 11:50:46 +0000114 ln -s ../default.supp $(inplacedir)
fitzhardinge98abfc72003-12-16 02:05:15 +0000115
njnae508b02009-04-24 04:12:28 +0000116clean-local:
nethercoteb7dceef2004-08-25 11:50:46 +0000117 rm -rf $(inplacedir)
sewardj85a9dca2005-07-26 10:42:57 +0000118
sewardj731f9cf2011-09-21 08:43:08 +0000119# Need config.h in the installed tree, since some files depend on it
120pkginclude_HEADERS = config.h