2 AUTOMAKE_OPTIONS = foreign 1.7 dist-bzip2
4 include $(top_srcdir)/Makefile.all.am
15 EXP_TOOLS = exp-ptrcheck \
18 # DDD: once all tools work on Darwin, TEST_TOOLS and TEST_EXP_TOOLS can be
19 # replaced with TOOLS and EXP_TOOLS.
21 if !VGCONF_OS_IS_DARWIN
22 TEST_EXP_TOOLS = $(EXP_TOOLS)
24 TEST_EXP_TOOLS = exp-bbv
27 # Put docs last because building the HTML is slow and we want to get
28 # everything else working before we try it.
41 DIST_SUBDIRS = $(SUBDIRS)
44 glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp glibc-2.5.supp \
45 glibc-2.6.supp glibc-2.7.supp glibc-2.X.supp.in \
46 aix5libc.supp xfree-3.supp xfree-4.supp \
47 glibc-2.34567-NPTL-helgrind.supp \
48 glibc-2.2-LinuxThreads-helgrind.supp \
51 darwin9.supp darwin9-drd.supp
52 DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
54 # We include all the base .supp files in the distribution, but not
55 # default.supp, as it is built from the base .supp files at compile-time.
56 dist_noinst_DATA = $(SUPP_FILES)
58 pkglib_DATA = default.supp
60 pkgconfigdir = $(libdir)/pkgconfig
61 pkgconfig_DATA = valgrind.pc
63 BUILT_SOURCES = default.supp valgrind.pc
64 CLEANFILES = default.supp
66 default.supp: $(DEFAULT_SUPP_FILES)
67 echo "# This is a generated file, composed of the following suppression rules:" > default.supp
68 echo "# " $(DEFAULT_SUPP_FILES) >> default.supp
69 cat $(DEFAULT_SUPP_FILES) >> default.supp
71 ## Preprend @PERL@ because tests/vg_regtest isn't executable
73 @PERL@ tests/vg_regtest $(TEST_TOOLS) $(TEST_EXP_TOOLS)
75 @PERL@ tests/vg_regtest $(TEST_TOOLS)
77 @PERL@ tests/vg_regtest $(TEST_EXP_TOOLS)
79 ## Preprend @PERL@ because tests/vg_perf isn't executable
81 @PERL@ perf/vg_perf perf
83 # Nb: no need to include any Makefile.am files here, or files included from
84 # them, as automake includes them automatically. Also not COPYING, README
86 # We include valgrind.spec as well as valgrind.spec.in to save packagers
87 # from having to run configure (bug 188560).
92 README_MISSING_SYSCALL_OR_IOCTL \
97 dist_noinst_SCRIPTS = \
100 all-local: default.supp
101 mkdir -p $(inplacedir)
102 rm -f $(inplacedir)/default.supp
103 ln -s ../default.supp $(inplacedir)