2 AUTOMAKE_OPTIONS = foreign 1.7 dist-bzip2
4 include $(top_srcdir)/Makefile.all.am
18 EXP_TOOLS = exp-sgcheck \
23 # DDD: once all tools work on Darwin, TEST_TOOLS and TEST_EXP_TOOLS can be
24 # replaced with TOOLS and EXP_TOOLS.
26 if !VGCONF_OS_IS_DARWIN
27 TEST_EXP_TOOLS = $(EXP_TOOLS)
29 TEST_EXP_TOOLS = exp-bbv
33 # Put docs last because building the HTML is slow and we want to get
34 # everything else working before we try it.
59 DIST_SUBDIRS = $(SUBDIRS)
62 glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp glibc-2.5.supp \
63 glibc-2.6.supp glibc-2.7.supp glibc-2.X.supp.in \
64 aix5libc.supp xfree-3.supp xfree-4.supp \
65 glibc-2.34567-NPTL-helgrind.supp \
66 glibc-2.2-LinuxThreads-helgrind.supp \
69 darwin9.supp darwin9-drd.supp \
70 darwin10.supp darwin10-drd.supp
73 SUPP_FILES += pthread_l4re.supp
76 DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
77 GENERATED_SUPP_FILES = @GENERATED_SUPP@
79 # We include all the base .supp files in the distribution, but not
80 # default.supp, as it is built from the base .supp files at compile-time.
81 dist_noinst_DATA = $(SUPP_FILES)
83 pkglib_DATA = default.supp
85 pkgconfigdir = $(libdir)/pkgconfig
86 pkgconfig_DATA = valgrind.pc
88 BUILT_SOURCES = default.supp valgrind.pc
89 CLEANFILES = default.supp
91 default.supp: $(DEFAULT_SUPP_FILES) $(GENERATED_SUPP_FILES)
92 echo "# This is a generated file, composed of the following suppression rules:" > default.supp
93 echo "# " $(addprefix $(srcdir)/, $(DEFAULT_SUPP_FILES)) >> default.supp
94 cat $(addprefix $(srcdir)/, $(DEFAULT_SUPP_FILES)) >> default.supp
95 echo "# " $(GENERATED_SUPP_FILES) >> default.supp
96 cat $(GENERATED_SUPP_FILES) >> default.supp
98 ## Preprend @PERL@ because tests/vg_regtest isn't executable
100 gdbserver_tests/make_local_links $(GDB)
101 @PERL@ tests/vg_regtest gdbserver_tests $(TEST_TOOLS) $(TEST_EXP_TOOLS)
102 nonexp-regtest: check
103 @PERL@ tests/vg_regtest $(TEST_TOOLS)
105 @PERL@ tests/vg_regtest gdbserver_tests $(TEST_EXP_TOOLS)
106 # Nb: gdbserver_tests are put in exp-regtest rather than nonexp-regtest
107 # because they are tested with various valgrind tools, so might be using
108 # an experimental tool.
110 ## Preprend @PERL@ because tests/vg_perf isn't executable
112 @PERL@ perf/vg_perf perf
114 # Nb: no need to include any Makefile.am files here, or files included from
115 # them, as automake includes them automatically. Also not COPYING, README
117 # We include valgrind.spec as well as valgrind.spec.in to save packagers
118 # from having to run configure (bug 188560).
123 README_MISSING_SYSCALL_OR_IOCTL \
129 dist_noinst_SCRIPTS = \
132 all-local: default.supp
133 mkdir -p $(inplacedir)
134 rm -f $(inplacedir)/default.supp
135 ln -s ../default.supp $(inplacedir)