]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/Makefile.am
7f98e9d799815be65aadb3913b1d71a072379ea1
[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-sgcheck \
19                 exp-bbv \
20                 exp-dhat
21 endif
22
23 # DDD: once all tools work on Darwin, TEST_TOOLS and TEST_EXP_TOOLS can be
24 # replaced with TOOLS and EXP_TOOLS.
25 TEST_TOOLS = $(TOOLS)
26 if !VGCONF_OS_IS_DARWIN
27   TEST_EXP_TOOLS = $(EXP_TOOLS)
28 else
29   TEST_EXP_TOOLS = exp-bbv
30 endif
31
32
33 # Put docs last because building the HTML is slow and we want to get
34 # everything else working before we try it.
35 if VGCONF_OS_IS_L4RE
36 SUBDIRS = \
37         include \
38         VEX \
39         coregrind \
40         . \
41         $(TOOLS) \
42         $(EXP_TOOLS)
43 else
44 SUBDIRS = \
45         include \
46         VEX \
47         coregrind \
48         . \
49         $(TOOLS) \
50         $(EXP_TOOLS) \
51         tests \
52         perf \
53         gdbserver_tests \
54         auxprogs \
55         mpi \
56         docs
57 endif
58
59 DIST_SUBDIRS  = $(SUBDIRS)
60
61 SUPP_FILES = \
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 \
67         glibc-2.X-drd.supp \
68         exp-sgcheck.supp \
69         darwin9.supp darwin9-drd.supp \
70         darwin10.supp darwin10-drd.supp
71
72 if VGCONF_OS_IS_L4RE
73 SUPP_FILES += pthread_l4re.supp
74 endif
75
76 DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
77 GENERATED_SUPP_FILES = @GENERATED_SUPP@
78
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)
82
83 pkglib_DATA = default.supp
84
85 pkgconfigdir = $(libdir)/pkgconfig
86 pkgconfig_DATA = valgrind.pc
87
88 BUILT_SOURCES  = default.supp valgrind.pc
89 CLEANFILES     = default.supp
90
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
97
98 ## Preprend @PERL@ because tests/vg_regtest isn't executable
99 regtest: check
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)
104 exp-regtest: check
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.
109
110 ## Preprend @PERL@ because tests/vg_perf isn't executable
111 perf: check
112         @PERL@ perf/vg_perf perf
113
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
116 # or NEWS.
117 # We include valgrind.spec as well as valgrind.spec.in to save packagers
118 # from having to run configure (bug 188560).
119 EXTRA_DIST = \
120         COPYING.DOCS \
121         README_DEVELOPERS \
122         README_PACKAGERS \
123         README_MISSING_SYSCALL_OR_IOCTL \
124         README.s390 \
125         valgrind.pc.in \
126         valgrind.spec.in \
127         valgrind.spec
128
129 dist_noinst_SCRIPTS = \
130         vg-in-place
131
132 all-local: default.supp
133         mkdir -p $(inplacedir)
134         rm -f $(inplacedir)/default.supp
135         ln -s ../default.supp $(inplacedir)
136
137 clean-local:
138         rm -rf $(inplacedir)
139
140