readdwarf3: Reuse fndn_ix_Table as much as possible
[valgrind.git] / Makefile.am
blobf5935eb6924678afe9e7b8d5c019a91dc65a9a49
2 AUTOMAKE_OPTIONS = 1.10
4 include $(top_srcdir)/Makefile.all.am 
6 TOOLS = \
7                 memcheck \
8                 cachegrind \
9                 callgrind \
10                 helgrind \
11                 drd \
12                 massif \
13                 dhat \
14                 lackey \
15                 none
17 EXP_TOOLS = \
18                 exp-bbv
20 # Put docs last because building the HTML is slow and we want to get
21 # everything else working before we try it.
22 SUBDIRS = \
23         include \
24         VEX \
25         coregrind \
26         . \
27         $(TOOLS) \
28         $(EXP_TOOLS) \
29         shared \
30         tests \
31         perf \
32         gdbserver_tests \
33         memcheck/tests/vbit-test \
34         auxprogs \
35         mpi \
36         solaris \
37         docs
38 DIST_SUBDIRS  = $(SUBDIRS)
40 SUPP_FILES = \
41         glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp glibc-2.5.supp \
42         glibc-2.6.supp glibc-2.7.supp glibc-2.X.supp.in \
43         xfree-3.supp xfree-4.supp \
44         glibc-2.X-helgrind.supp \
45         glibc-2.2-LinuxThreads-helgrind.supp \
46         glibc-2.X-drd.supp \
47         darwin9.supp darwin9-drd.supp \
48         darwin10.supp darwin10-drd.supp \
49         darwin11.supp darwin12.supp darwin13.supp darwin14.supp darwin15.supp \
50         darwin16.supp darwin17.supp \
51         bionic.supp \
52         solaris11.supp solaris12.supp \
53         musl.supp
54 DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
56 # We include all the base .supp files in the distribution, but not
57 # default.supp, as it is built from the base .supp files at compile-time.
58 dist_noinst_DATA = $(SUPP_FILES)
60 vglibdir = $(pkglibexecdir)
61 vglib_DATA = default.supp
63 pkgconfigdir = $(libdir)/pkgconfig
64 pkgconfig_DATA = valgrind.pc
66 BUILT_SOURCES  = default.supp include/vgversion.h valgrind.pc
67 CLEANFILES     = default.supp
69 default.supp: $(DEFAULT_SUPP_FILES)
70         echo "# This is a generated file, composed of the following suppression rules:" > default.supp
71         echo "# " $(DEFAULT_SUPP_FILES) >> default.supp
72         cat $^ >> default.supp
74 ## Preprend @PERL@ because tests/vg_regtest isn't executable
75 ## Ensure make exits with error if PERL fails or post_regtest_checks fails.
76 regtest: check
77         $(top_srcdir)/gdbserver_tests/make_local_links $(GDB)
78         if @PERL@ tests/vg_regtest gdbserver_tests $(TOOLS) $(EXP_TOOLS) ; then \
79            tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS); \
80         else \
81            tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS); \
82            false; \
83         fi
84 post-regtest-checks:
85         tests/post_regtest_checks $(abs_top_srcdir) gdbserver_tests $(TOOLS) $(EXP_TOOLS)
86 nonexp-regtest: check
87         @PERL@ tests/vg_regtest $(TOOLS)
88 exp-regtest: check
89         @PERL@ tests/vg_regtest gdbserver_tests $(EXP_TOOLS)
90 # Nb: gdbserver_tests are put in exp-regtest rather than nonexp-regtest
91 # because they are tested with various valgrind tools, so might be using
92 # an experimental tool.
94 ## Preprend @PERL@ because tests/vg_perf isn't executable
95 perf: check
96         @PERL@ perf/vg_perf perf
98 # Auxiliary test suites run under valgrind
99 auxchecks: all
100         $(MAKE) -C auxprogs auxchecks
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
104 # or NEWS.
105 # We include valgrind.spec as well as valgrind.spec.in to save packagers
106 # from having to run configure (bug 188560).
107 EXTRA_DIST = \
108         COPYING.DOCS \
109         README_DEVELOPERS \
110         README_DEVELOPERS_processes \
111         README_PACKAGERS \
112         README_MISSING_SYSCALL_OR_IOCTL \
113         README.s390 \
114         README.android \
115         README.android_emulator \
116         README.mips \
117         README.aarch64 \
118         README.solaris \
119         NEWS.old \
120         valgrind.pc.in \
121         valgrind.spec.in \
122         valgrind.spec \
123         autogen.sh
125 dist-hook: include/vgversion.h
126         cp -p include/vgversion.h $(distdir)/include/vgversion_dist.h
128 dist_noinst_SCRIPTS = \
129         vg-in-place
131 all-local: default.supp include/vgversion.h
132         mkdir -p $(inplacedir)
133         rm -f $(inplacedir)/default.supp
134         ln -s ../default.supp $(inplacedir)
136 clean-local:
137         rm -rf $(inplacedir) include/vgversion.h
139 # Need config.h in the installed tree, since some files depend on it
140 pkginclude_HEADERS = config.h
142 # vgversion.h defines accurate versions to report with -v --version
143 include/vgversion.h:
144         $(top_srcdir)/auxprogs/make_or_upd_vgversion_h $(top_srcdir)
146 .PHONY: include/vgversion.h