2 AUTOMAKE_OPTIONS = foreign 1.7 dist-bzip2
4 include $(top_srcdir)/Makefile.all.am
15 EXP_TOOLS = exp-sgcheck \
19 # Put docs last because building the HTML is slow and we want to get
20 # everything else working before we try it.
34 DIST_SUBDIRS = $(SUBDIRS)
37 glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp glibc-2.5.supp \
38 glibc-2.6.supp glibc-2.7.supp glibc-2.X.supp.in \
39 xfree-3.supp xfree-4.supp \
40 glibc-2.34567-NPTL-helgrind.supp \
41 glibc-2.2-LinuxThreads-helgrind.supp \
44 darwin9.supp darwin9-drd.supp \
45 darwin10.supp darwin10-drd.supp \
48 DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
50 # 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.
52 dist_noinst_DATA = $(SUPP_FILES)
54 pkglib_DATA = default.supp
56 pkgconfigdir = $(libdir)/pkgconfig
57 pkgconfig_DATA = valgrind.pc
59 BUILT_SOURCES = default.supp valgrind.pc
60 CLEANFILES = default.supp
62 default.supp: $(DEFAULT_SUPP_FILES)
63 echo "# This is a generated file, composed of the following suppression rules:" > default.supp
64 echo "# " $(DEFAULT_SUPP_FILES) >> default.supp
65 cat $(DEFAULT_SUPP_FILES) >> default.supp
67 ## Preprend @PERL@ because tests/vg_regtest isn't executable
69 -tests/check_makefile_consistency gdbserver_tests $(TOOLS) $(EXP_TOOLS)
70 gdbserver_tests/make_local_links $(GDB)
71 @PERL@ tests/vg_regtest gdbserver_tests $(TOOLS) $(EXP_TOOLS)
73 @PERL@ tests/vg_regtest $(TOOLS)
75 @PERL@ tests/vg_regtest gdbserver_tests $(EXP_TOOLS)
76 # Nb: gdbserver_tests are put in exp-regtest rather than nonexp-regtest
77 # because they are tested with various valgrind tools, so might be using
78 # an experimental tool.
80 ## Preprend @PERL@ because tests/vg_perf isn't executable
82 @PERL@ perf/vg_perf perf
84 # Nb: no need to include any Makefile.am files here, or files included from
85 # them, as automake includes them automatically. Also not COPYING, README
87 # We include valgrind.spec as well as valgrind.spec.in to save packagers
88 # from having to run configure (bug 188560).
93 README_MISSING_SYSCALL_OR_IOCTL \
100 dist_noinst_SCRIPTS = \
103 all-local: default.supp
104 mkdir -p $(inplacedir)
105 rm -f $(inplacedir)/default.supp
106 ln -s ../default.supp $(inplacedir)
111 # Need config.h in the installed tree, since some files depend on it
112 pkginclude_HEADERS = config.h