blob: ce6740af5a0a579644ad493fef40e30e031945f8 [file] [log] [blame]
njn25e49d8e72002-09-23 09:36:25 +00001
mueller531d34d2004-01-03 12:47:32 +00002AUTOMAKE_OPTIONS = foreign 1.6 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
njn3e884182003-04-15 13:03:23 +00006## addrcheck must come after memcheck, for mac_*.o
njn86f12dc2005-03-14 01:16:05 +00007TOOLS = memcheck \
njn6a3009b2005-03-20 00:20:06 +00008 cachegrind \
njn6a3009b2005-03-20 00:20:06 +00009 massif \
10 lackey \
11 none
sewardjb5f6f512005-03-10 23:59:00 +000012
sewardjd0469f72005-04-20 14:30:19 +000013## addrcheck \
14
njn95e65f62005-03-30 04:13:56 +000015# Temporary: we want to compile Helgrind, but not regtest it.
njnc7e10712005-06-24 13:45:56 +000016# And we want to include Addrcheck in the distro, but not compile/test it.
njn3f7e9112005-06-19 05:43:21 +000017# Put docs last because building the HTML is slow and we want to get
18# everything else working before we try it.
19SUBDIRS = include coregrind . tests auxprogs $(TOOLS) helgrind docs
njnc7e10712005-06-24 13:45:56 +000020DIST_SUBDIRS = $(SUBDIRS) addrcheck
sewardjde4a1d02002-03-22 01:27:54 +000021
njna63e2d72003-06-12 14:13:05 +000022SUPP_FILES = \
njnb8824022005-07-03 17:10:04 +000023 glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp \
njna63e2d72003-06-12 14:13:05 +000024 xfree-3.supp xfree-4.supp
gobry3b777892002-04-04 09:18:39 +000025
nethercote537e8942004-08-25 11:40:07 +000026dist_val_DATA = $(SUPP_FILES) default.supp
gobry3b777892002-04-04 09:18:39 +000027
muellerbddd6072003-11-19 21:50:07 +000028pkgconfigdir = $(libdir)/pkgconfig
29pkgconfig_DATA = valgrind.pc
30
31BUILT_SOURCES = default.supp valgrind.pc
gobry3b777892002-04-04 09:18:39 +000032
njnda762d42003-09-29 20:50:49 +000033DISTCLEANFILES = default.supp
daywalkerf5ef1852003-02-25 01:48:15 +000034
gobry3b777892002-04-04 09:18:39 +000035default.supp: $(SUPP_FILES)
sewardjde4a1d02002-03-22 01:27:54 +000036
njn71fe3e62003-04-23 21:48:20 +000037## Preprend @PERL@ because tests/vg_regtest isn't executable
daywalkerc60b3a12003-04-23 16:39:31 +000038regtest: check
sewardjb5f6f512005-03-10 23:59:00 +000039 @PERL@ tests/vg_regtest $(TOOLS)
njn55b98e92003-04-08 10:29:13 +000040
nethercote537e8942004-08-25 11:40:07 +000041EXTRA_DIST = \
njn4e59bd92003-04-22 20:58:47 +000042 FAQ.txt \
fitzhardingecf826ad2004-01-07 08:47:44 +000043 ACKNOWLEDGEMENTS \
nethercote16b59ee2004-10-09 15:59:05 +000044 README_DEVELOPERS \
nethercote5da1e172003-12-03 21:44:45 +000045 README_PACKAGERS \
sewardj92b5b5f2005-05-24 14:23:10 +000046 THREADS_SYSCALLS_SIGNALS.txt \
njnf7c00b12005-07-19 21:46:19 +000047 README_MISSING_SYSCALL_OR_IOCTL \
sewardjb5f6f512005-03-10 23:59:00 +000048 valgrind.spec valgrind.spec.in valgrind.pc.in \
nethercote4388a402004-09-01 23:20:49 +000049 Makefile.all.am Makefile.tool.am Makefile.core-AM_CPPFLAGS.am \
50 Makefile.tool-inplace.am
sewardjfed4dd02002-04-14 14:32:54 +000051
gobryb0a955e2002-04-14 15:31:19 +000052install-exec-hook:
daywalker47160d62002-04-15 00:54:13 +000053 $(mkinstalldirs) $(DESTDIR)$(valdir)
njn25e49d8e72002-09-23 09:36:25 +000054
fitzhardinge98abfc72003-12-16 02:05:15 +000055all-local:
nethercoteb7dceef2004-08-25 11:50:46 +000056 mkdir -p $(inplacedir)
57 rm -f $(addprefix $(inplacedir)/,default.supp $(SUPP_FILES))
58 ln -s ../default.supp $(inplacedir)
59 ln -s $(addprefix ../$(top_srcdir)/,$(SUPP_FILES)) $(inplacedir)
fitzhardinge98abfc72003-12-16 02:05:15 +000060
thughes734160c2004-06-28 21:52:40 +000061distclean-local:
nethercoteb7dceef2004-08-25 11:50:46 +000062 rm -rf $(inplacedir)