]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/Makefile.am
99023d04a8d3fc5360b5a70ea316940bffa3611c
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / Makefile.am
1
2 AUTOMAKE_OPTIONS = foreign 1.7 dist-bzip2
3
4 include $(top_srcdir)/Makefile.all.am 
5
6 if VGCONF_OS_IS_L4RE
7 TOOLS = none memcheck
8 else
9 TOOLS =         memcheck \
10                 cachegrind \
11                 callgrind \
12                 massif \
13                 lackey \
14                 none \
15                 helgrind \
16                 drd
17
18 EXP_TOOLS =     exp-ptrcheck \
19                 exp-bbv
20 endif
21
22 # DDD: once all tools work on Darwin, TEST_TOOLS and TEST_EXP_TOOLS can be
23 # replaced with TOOLS and EXP_TOOLS.
24 TEST_TOOLS = $(TOOLS)
25 if !VGCONF_OS_IS_DARWIN
26   TEST_EXP_TOOLS = $(EXP_TOOLS)
27 else
28   TEST_EXP_TOOLS = exp-bbv
29 endif
30
31 # Put docs last because building the HTML is slow and we want to get
32 # everything else working before we try it.
33 if VGCONF_OS_IS_L4RE
34 SUBDIRS = \
35         include \
36         VEX \
37         coregrind \
38         . \
39         $(TOOLS) \
40         $(EXP_TOOLS)
41 else
42 SUBDIRS = \
43         include \
44         VEX \
45         coregrind \
46         . \
47         $(TOOLS) \
48         $(EXP_TOOLS) \
49         tests \
50         perf \
51         auxprogs \
52         mpi \
53         docs
54 endif
55
56 DIST_SUBDIRS  = $(SUBDIRS)
57
58 SUPP_FILES = \
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 \
64         glibc-2.X-drd.supp \
65         exp-ptrcheck.supp \
66         darwin9.supp darwin9-drd.supp
67
68 DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
69 GENERATED_SUPP_FILES = @GENERATED_SUPP@
70
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)
74
75 pkglib_DATA = default.supp
76
77 pkgconfigdir = $(libdir)/pkgconfig
78 pkgconfig_DATA = valgrind.pc
79
80 BUILT_SOURCES  = default.supp valgrind.pc
81 CLEANFILES     = default.supp
82
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
89
90 ## Preprend @PERL@ because tests/vg_regtest isn't executable
91 regtest: check
92         @PERL@ tests/vg_regtest $(TEST_TOOLS) $(TEST_EXP_TOOLS)
93 nonexp-regtest: check
94         @PERL@ tests/vg_regtest $(TEST_TOOLS)
95 exp-regtest: check
96         @PERL@ tests/vg_regtest $(TEST_EXP_TOOLS)
97
98 ## Preprend @PERL@ because tests/vg_perf isn't executable
99 perf: check
100         @PERL@ perf/vg_perf perf
101
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_PACKAGERS \
111         README_MISSING_SYSCALL_OR_IOCTL \
112         valgrind.pc.in \
113         valgrind.spec.in \
114         valgrind.spec
115
116 dist_noinst_SCRIPTS = \
117         vg-in-place
118
119 all-local: default.supp
120         mkdir -p $(inplacedir)
121         rm -f $(inplacedir)/default.supp
122         ln -s ../default.supp $(inplacedir)
123
124 clean-local:
125         rm -rf $(inplacedir)
126
127