2 AUTOMAKE_OPTIONS = foreign 1.7 dist-bzip2
4 include $(top_srcdir)/Makefile.all.am
18 EXP_TOOLS = exp-ptrcheck \
22 # DDD: once all tools work on Darwin, TEST_TOOLS and TEST_EXP_TOOLS can be
23 # replaced with TOOLS and EXP_TOOLS.
25 if !VGCONF_OS_IS_DARWIN
26 TEST_EXP_TOOLS = $(EXP_TOOLS)
28 TEST_EXP_TOOLS = exp-bbv
31 # Put docs last because building the HTML is slow and we want to get
32 # everything else working before we try it.
56 DIST_SUBDIRS = $(SUBDIRS)
59 glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp glibc-2.5.supp \
60 glibc-2.6.supp glibc-2.7.supp glibc-2.X.supp.in \
61 aix5libc.supp xfree-3.supp xfree-4.supp \
62 glibc-2.34567-NPTL-helgrind.supp \
63 glibc-2.2-LinuxThreads-helgrind.supp \
66 darwin9.supp darwin9-drd.supp
68 DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
69 GENERATED_SUPP_FILES = @GENERATED_SUPP@
71 # We include all the base .supp files in the distribution, but not
72 # default.supp, as it is built from the base .supp files at compile-time.
73 dist_noinst_DATA = $(SUPP_FILES)
75 pkglib_DATA = default.supp
77 pkgconfigdir = $(libdir)/pkgconfig
78 pkgconfig_DATA = valgrind.pc
80 BUILT_SOURCES = default.supp valgrind.pc
81 CLEANFILES = default.supp
83 default.supp: $(DEFAULT_SUPP_FILES) $(GENERATED_SUPP_FILES)
84 echo "# This is a generated file, composed of the following suppression rules:" > default.supp
85 echo "# " $(addprefix $(srcdir)/, $(DEFAULT_SUPP_FILES)) >> default.supp
86 cat $(addprefix $(srcdir)/, $(DEFAULT_SUPP_FILES)) >> default.supp
87 echo "# " $(GENERATED_SUPP_FILES) >> default.supp
88 cat $(GENERATED_SUPP_FILES) >> default.supp
90 ## Preprend @PERL@ because tests/vg_regtest isn't executable
92 @PERL@ tests/vg_regtest $(TEST_TOOLS) $(TEST_EXP_TOOLS)
94 @PERL@ tests/vg_regtest $(TEST_TOOLS)
96 @PERL@ tests/vg_regtest $(TEST_EXP_TOOLS)
98 ## Preprend @PERL@ because tests/vg_perf isn't executable
100 @PERL@ perf/vg_perf perf
102 # Nb: no need to include any Makefile.am files here, or files included from
103 # them, as automake includes them automatically. Also not COPYING, README
105 # We include valgrind.spec as well as valgrind.spec.in to save packagers
106 # from having to run configure (bug 188560).
111 README_MISSING_SYSCALL_OR_IOCTL \
116 dist_noinst_SCRIPTS = \
119 all-local: default.supp
120 mkdir -p $(inplacedir)
121 rm -f $(inplacedir)/default.supp
122 ln -s ../default.supp $(inplacedir)