]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/Makefile.in
update
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / Makefile.in
1 # Makefile.in generated by automake 1.11.1 from Makefile.am.
2 # @configure_input@
3
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
6 # Inc.
7 # This Makefile.in is free software; the Free Software Foundation
8 # gives unlimited permission to copy and/or distribute it,
9 # with or without modifications, as long as this notice is preserved.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 # PARTICULAR PURPOSE.
15
16 @SET_MAKE@
17
18 # This file should be included (directly or indirectly) by every
19 # Makefile.am that builds programs.  And also the top-level Makefile.am.
20
21 #----------------------------------------------------------------------------
22 # Global stuff
23 #----------------------------------------------------------------------------
24
25
26 VPATH = @srcdir@
27 pkgdatadir = $(datadir)/@PACKAGE@
28 pkgincludedir = $(includedir)/@PACKAGE@
29 pkglibdir = $(libdir)/@PACKAGE@
30 pkglibexecdir = $(libexecdir)/@PACKAGE@
31 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
32 install_sh_DATA = $(install_sh) -c -m 644
33 install_sh_PROGRAM = $(install_sh) -c
34 install_sh_SCRIPT = $(install_sh) -c
35 INSTALL_HEADER = $(INSTALL_DATA)
36 transform = $(program_transform_name)
37 NORMAL_INSTALL = :
38 PRE_INSTALL = :
39 POST_INSTALL = :
40 NORMAL_UNINSTALL = :
41 PRE_UNINSTALL = :
42 POST_UNINSTALL = :
43 build_triplet = @build@
44 host_triplet = @host@
45 DIST_COMMON = README $(am__configure_deps) \
46         $(am__dist_noinst_DATA_DIST) $(dist_noinst_SCRIPTS) \
47         $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
48         $(srcdir)/config.h.in $(srcdir)/glibc-2.X.supp.in \
49         $(srcdir)/valgrind.pc.in $(srcdir)/valgrind.spec.in \
50         $(top_srcdir)/Makefile.all.am $(top_srcdir)/configure \
51         $(top_srcdir)/drd/scripts/download-and-build-splash2.in \
52         AUTHORS COPYING NEWS compile config.guess config.sub depcomp \
53         install-sh missing
54 @VGCONF_OS_IS_L4RE_TRUE@am__append_1 = pthread_l4re.supp
55 subdir = .
56 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
57 am__aclocal_m4_deps = $(top_srcdir)/configure.in
58 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
59         $(ACLOCAL_M4)
60 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
61  configure.lineno config.status.lineno
62 mkinstalldirs = $(install_sh) -d
63 CONFIG_HEADER = config.h
64 CONFIG_CLEAN_FILES = valgrind.spec valgrind.pc glibc-2.X.supp \
65         drd/scripts/download-and-build-splash2
66 CONFIG_CLEAN_VPATH_FILES =
67 SCRIPTS = $(dist_noinst_SCRIPTS)
68 SOURCES =
69 DIST_SOURCES =
70 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
71         html-recursive info-recursive install-data-recursive \
72         install-dvi-recursive install-exec-recursive \
73         install-html-recursive install-info-recursive \
74         install-pdf-recursive install-ps-recursive install-recursive \
75         installcheck-recursive installdirs-recursive pdf-recursive \
76         ps-recursive uninstall-recursive
77 am__dist_noinst_DATA_DIST = glibc-2.2.supp glibc-2.3.supp \
78         glibc-2.4.supp glibc-2.5.supp glibc-2.6.supp glibc-2.7.supp \
79         glibc-2.X.supp.in aix5libc.supp xfree-3.supp xfree-4.supp \
80         glibc-2.34567-NPTL-helgrind.supp \
81         glibc-2.2-LinuxThreads-helgrind.supp glibc-2.X-drd.supp \
82         exp-sgcheck.supp darwin9.supp darwin9-drd.supp darwin10.supp \
83         darwin10-drd.supp pthread_l4re.supp
84 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
85 am__vpath_adj = case $$p in \
86     $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
87     *) f=$$p;; \
88   esac;
89 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
90 am__install_max = 40
91 am__nobase_strip_setup = \
92   srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
93 am__nobase_strip = \
94   for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
95 am__nobase_list = $(am__nobase_strip_setup); \
96   for p in $$list; do echo "$$p $$p"; done | \
97   sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
98   $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
99     if (++n[$$2] == $(am__install_max)) \
100       { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
101     END { for (dir in files) print dir, files[dir] }'
102 am__base_list = \
103   sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
104   sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
105 am__installdirs = "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkglibdir)"
106 DATA = $(dist_noinst_DATA) $(pkgconfig_DATA) $(pkglib_DATA)
107 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
108   distclean-recursive maintainer-clean-recursive
109 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
110         $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
111         distdir dist dist-all distcheck
112 ETAGS = etags
113 CTAGS = ctags
114 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
115 distdir = $(PACKAGE)-$(VERSION)
116 top_distdir = $(distdir)
117 am__remove_distdir = \
118   { test ! -d "$(distdir)" \
119     || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
120          && rm -fr "$(distdir)"; }; }
121 am__relativize = \
122   dir0=`pwd`; \
123   sed_first='s,^\([^/]*\)/.*$$,\1,'; \
124   sed_rest='s,^[^/]*/*,,'; \
125   sed_last='s,^.*/\([^/]*\)$$,\1,'; \
126   sed_butlast='s,/*[^/]*$$,,'; \
127   while test -n "$$dir1"; do \
128     first=`echo "$$dir1" | sed -e "$$sed_first"`; \
129     if test "$$first" != "."; then \
130       if test "$$first" = ".."; then \
131         dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
132         dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
133       else \
134         first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
135         if test "$$first2" = "$$first"; then \
136           dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
137         else \
138           dir2="../$$dir2"; \
139         fi; \
140         dir0="$$dir0"/"$$first"; \
141       fi; \
142     fi; \
143     dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
144   done; \
145   reldir="$$dir2"
146 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
147 GZIP_ENV = --best
148 distuninstallcheck_listfiles = find . -type f -print
149 distcleancheck_listfiles = find . -type f -print
150 ACLOCAL = @ACLOCAL@
151 AMTAR = @AMTAR@
152 AR = @AR@
153 AUTOCONF = @AUTOCONF@
154 AUTOHEADER = @AUTOHEADER@
155 AUTOMAKE = @AUTOMAKE@
156 AWK = @AWK@
157 BOOST_CFLAGS = @BOOST_CFLAGS@
158 BOOST_LIBS = @BOOST_LIBS@
159 CC = @CC@
160 CCAS = @CCAS@
161 CCASDEPMODE = @CCASDEPMODE@
162 CCASFLAGS = @CCASFLAGS@
163 CCDEPMODE = @CCDEPMODE@
164 CFLAGS = @CFLAGS@
165 CPP = @CPP@
166 CPPFLAGS = @CPPFLAGS@
167 CXX = @CXX@
168 CXXDEPMODE = @CXXDEPMODE@
169 CXXFLAGS = @CXXFLAGS@
170 CYGPATH_W = @CYGPATH_W@
171 DEFAULT_SUPP = @DEFAULT_SUPP@
172 DEFS = @DEFS@
173 DEPDIR = @DEPDIR@
174 DIFF = @DIFF@
175 ECHO_C = @ECHO_C@
176 ECHO_N = @ECHO_N@
177 ECHO_T = @ECHO_T@
178 EGREP = @EGREP@
179 EXEEXT = @EXEEXT@
180 FLAG_FNO_STACK_PROTECTOR = @FLAG_FNO_STACK_PROTECTOR@
181 FLAG_M32 = @FLAG_M32@
182 FLAG_M64 = @FLAG_M64@
183 FLAG_MAIX32 = @FLAG_MAIX32@
184 FLAG_MAIX64 = @FLAG_MAIX64@
185 FLAG_MMMX = @FLAG_MMMX@
186 FLAG_MSSE = @FLAG_MSSE@
187 FLAG_NO_BUILD_ID = @FLAG_NO_BUILD_ID@
188 FLAG_UNLIMITED_INLINE_UNIT_GROWTH = @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
189 FLAG_W_EXTRA = @FLAG_W_EXTRA@
190 FLAG_W_NO_EMPTY_BODY = @FLAG_W_NO_EMPTY_BODY@
191 FLAG_W_NO_FORMAT_ZERO_LENGTH = @FLAG_W_NO_FORMAT_ZERO_LENGTH@
192 FLAG_W_NO_NONNULL = @FLAG_W_NO_NONNULL@
193 FLAG_W_NO_OVERFLOW = @FLAG_W_NO_OVERFLOW@
194 FLAG_W_NO_UNINITIALIZED = @FLAG_W_NO_UNINITIALIZED@
195 GDB = @GDB@
196 GENERATED_SUPP = @GENERATED_SUPP@
197 GLIBC_VERSION = @GLIBC_VERSION@
198 GREP = @GREP@
199 INSTALL = @INSTALL@
200 INSTALL_DATA = @INSTALL_DATA@
201 INSTALL_PROGRAM = @INSTALL_PROGRAM@
202 INSTALL_SCRIPT = @INSTALL_SCRIPT@
203 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
204 LDFLAGS = @LDFLAGS@
205 LIBOBJS = @LIBOBJS@
206 LIBS = @LIBS@
207 LN_S = @LN_S@
208 LTLIBOBJS = @LTLIBOBJS@
209 MAINT = @MAINT@
210 MAKEINFO = @MAKEINFO@
211 MKDIR_P = @MKDIR_P@
212 MPI_CC = @MPI_CC@
213 OBJEXT = @OBJEXT@
214 PACKAGE = @PACKAGE@
215 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
216 PACKAGE_NAME = @PACKAGE_NAME@
217 PACKAGE_STRING = @PACKAGE_STRING@
218 PACKAGE_TARNAME = @PACKAGE_TARNAME@
219 PACKAGE_URL = @PACKAGE_URL@
220 PACKAGE_VERSION = @PACKAGE_VERSION@
221 PATH_SEPARATOR = @PATH_SEPARATOR@
222 PERL = @PERL@
223 PREFERRED_STACK_BOUNDARY = @PREFERRED_STACK_BOUNDARY@
224 RANLIB = @RANLIB@
225 SED = @SED@
226 SET_MAKE = @SET_MAKE@
227 SHELL = @SHELL@
228 STRIP = @STRIP@
229 VALT_LOAD_ADDRESS_PRI = @VALT_LOAD_ADDRESS_PRI@
230 VALT_LOAD_ADDRESS_SEC = @VALT_LOAD_ADDRESS_SEC@
231 VERSION = @VERSION@
232 VGCONF_ARCH_PRI = @VGCONF_ARCH_PRI@
233 VGCONF_ARCH_SEC = @VGCONF_ARCH_SEC@
234 VGCONF_OS = @VGCONF_OS@
235 VGCONF_PLATFORM_PRI_CAPS = @VGCONF_PLATFORM_PRI_CAPS@
236 VGCONF_PLATFORM_SEC_CAPS = @VGCONF_PLATFORM_SEC_CAPS@
237 abs_builddir = @abs_builddir@
238 abs_srcdir = @abs_srcdir@
239 abs_top_builddir = @abs_top_builddir@
240 abs_top_srcdir = @abs_top_srcdir@
241 ac_ct_CC = @ac_ct_CC@
242 ac_ct_CXX = @ac_ct_CXX@
243 am__include = @am__include@
244 am__leading_dot = @am__leading_dot@
245 am__quote = @am__quote@
246 am__tar = @am__tar@
247 am__untar = @am__untar@
248 bindir = @bindir@
249 build = @build@
250 build_alias = @build_alias@
251 build_cpu = @build_cpu@
252 build_os = @build_os@
253 build_vendor = @build_vendor@
254 builddir = @builddir@
255 datadir = @datadir@
256 datarootdir = @datarootdir@
257 docdir = @docdir@
258 dvidir = @dvidir@
259 exec_prefix = @exec_prefix@
260 host = @host@
261 host_alias = @host_alias@
262 host_cpu = @host_cpu@
263 host_os = @host_os@
264 host_vendor = @host_vendor@
265 htmldir = @htmldir@
266 includedir = @includedir@
267 infodir = @infodir@
268 install_sh = @install_sh@
269 libdir = @libdir@
270 libexecdir = @libexecdir@
271 localedir = @localedir@
272 localstatedir = @localstatedir@
273 mandir = @mandir@
274 mkdir_p = @mkdir_p@
275 oldincludedir = @oldincludedir@
276 pdfdir = @pdfdir@
277 prefix = @prefix@
278 program_transform_name = @program_transform_name@
279 psdir = @psdir@
280 sbindir = @sbindir@
281 sharedstatedir = @sharedstatedir@
282 srcdir = @srcdir@
283 sysconfdir = @sysconfdir@
284 target_alias = @target_alias@
285 top_build_prefix = @top_build_prefix@
286 top_builddir = @top_builddir@
287 top_srcdir = @top_srcdir@
288 AUTOMAKE_OPTIONS = foreign 1.7 dist-bzip2
289 inplacedir = $(top_builddir)/.in_place
290
291 #----------------------------------------------------------------------------
292 # Flags
293 #----------------------------------------------------------------------------
294
295 # Baseline flags for all compilations.  Aim here is to maximise
296 # performance and get whatever useful warnings we can out of gcc.
297 AM_CFLAGS_BASE = \
298         -O2 -g \
299         -Wall \
300         -Wmissing-prototypes \
301         -Wshadow \
302         -Wpointer-arith \
303         -Wstrict-prototypes \
304         -Wmissing-declarations \
305         @FLAG_W_NO_FORMAT_ZERO_LENGTH@ \
306         -fno-strict-aliasing
307
308 @VGCONF_OS_IS_DARWIN_FALSE@AM_CFLAGS_PIC = -fpic -O -g -fno-omit-frame-pointer -fno-strict-aliasing
309
310 # These flags are used for building the preload shared objects.
311 # The aim is to give reasonable performance but also to have good
312 # stack traces, since users often see stack traces extending 
313 # into (and through) the preloads.
314 @VGCONF_OS_IS_DARWIN_TRUE@AM_CFLAGS_PIC = -dynamic -O -g -fno-omit-frame-pointer -fno-strict-aliasing \
315 @VGCONF_OS_IS_DARWIN_TRUE@              -mno-dynamic-no-pic -fpic -fPIC
316
317 @VGCONF_OS_IS_L4RE_FALSE@AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@ = \
318 @VGCONF_OS_IS_L4RE_FALSE@       -I$(top_srcdir) \
319 @VGCONF_OS_IS_L4RE_FALSE@       -I$(top_srcdir)/include \
320 @VGCONF_OS_IS_L4RE_FALSE@       -I$(top_srcdir)/VEX/pub \
321 @VGCONF_OS_IS_L4RE_FALSE@       -I$(top_builddir)/VEX/pub \
322 @VGCONF_OS_IS_L4RE_FALSE@       -DVGA_@VGCONF_ARCH_PRI@=1 \
323 @VGCONF_OS_IS_L4RE_FALSE@       -DVGO_@VGCONF_OS@=1 \
324 @VGCONF_OS_IS_L4RE_FALSE@       -DVGP_@VGCONF_ARCH_PRI@_@VGCONF_OS@=1
325
326
327 # Flags for specific targets.
328 #
329 # Nb: the AM_CPPFLAGS_* values are suitable for building tools and auxprogs.
330 # For building the core, coregrind/Makefile.am files add some extra things.
331 #
332 # Also: in newer versions of automake (1.10 onwards?) asm files ending with
333 # '.S' are considered "pre-processed" (as opposed to those ending in '.s')
334 # and so the CPPFLAGS are passed to the assembler.  But this is not true for
335 # older automakes (e.g. 1.8.5, 1.9.6), sigh.  So we include
336 # AM_CPPFLAGS_<PLATFORM> in each AM_CCASFLAGS_<PLATFORM> variable.  This
337 # means some of the flags are duplicated on systems with newer versions of
338 # automake, but this does not really matter and seems hard to avoid.
339 @VGCONF_OS_IS_L4RE_TRUE@AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@ = $(L4_CPPFLAGS)\
340 @VGCONF_OS_IS_L4RE_TRUE@        -I$(top_srcdir) \
341 @VGCONF_OS_IS_L4RE_TRUE@        -I$(top_srcdir)/include \
342 @VGCONF_OS_IS_L4RE_TRUE@        -I$(top_srcdir)/VEX/pub \
343 @VGCONF_OS_IS_L4RE_TRUE@        -I$(top_builddir)/VEX/pub \
344 @VGCONF_OS_IS_L4RE_TRUE@        -DVGA_@VGCONF_ARCH_PRI@=1 \
345 @VGCONF_OS_IS_L4RE_TRUE@        -DVGO_@VGCONF_OS@=1 \
346 @VGCONF_OS_IS_L4RE_TRUE@        -DVGP_@VGCONF_ARCH_PRI@_@VGCONF_OS@=1
347
348 @VGCONF_HAVE_PLATFORM_SEC_TRUE@AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@ = \
349 @VGCONF_HAVE_PLATFORM_SEC_TRUE@ -I$(top_srcdir) \
350 @VGCONF_HAVE_PLATFORM_SEC_TRUE@ -I$(top_srcdir)/include \
351 @VGCONF_HAVE_PLATFORM_SEC_TRUE@ -I$(top_srcdir)/VEX/pub \
352 @VGCONF_HAVE_PLATFORM_SEC_TRUE@ -I$(top_builddir)/VEX/pub \
353 @VGCONF_HAVE_PLATFORM_SEC_TRUE@ -DVGA_@VGCONF_ARCH_SEC@=1 \
354 @VGCONF_HAVE_PLATFORM_SEC_TRUE@ -DVGO_@VGCONF_OS@=1 \
355 @VGCONF_HAVE_PLATFORM_SEC_TRUE@ -DVGP_@VGCONF_ARCH_SEC@_@VGCONF_OS@=1
356
357 AM_FLAG_M3264_X86_LINUX = @FLAG_M32@
358 AM_CFLAGS_X86_LINUX = @FLAG_M32@ @PREFERRED_STACK_BOUNDARY@ \
359                                 $(AM_CFLAGS_BASE)
360
361 AM_CCASFLAGS_X86_LINUX = $(AM_CPPFLAGS_X86_LINUX) @FLAG_M32@ -g
362 AM_FLAG_M3264_AMD64_LINUX = @FLAG_M64@
363 AM_CFLAGS_AMD64_LINUX = @FLAG_M64@ -fomit-frame-pointer \
364                                 @PREFERRED_STACK_BOUNDARY@ $(AM_CFLAGS_BASE)
365
366 AM_CCASFLAGS_AMD64_LINUX = $(AM_CPPFLAGS_AMD64_LINUX) @FLAG_M64@ -g
367 AM_FLAG_M3264_PPC32_LINUX = @FLAG_M32@
368 AM_CFLAGS_PPC32_LINUX = @FLAG_M32@ $(AM_CFLAGS_BASE)
369 AM_CCASFLAGS_PPC32_LINUX = $(AM_CPPFLAGS_PPC32_LINUX) @FLAG_M32@ -g
370 AM_FLAG_M3264_PPC64_LINUX = @FLAG_M64@
371 AM_CFLAGS_PPC64_LINUX = @FLAG_M64@ $(AM_CFLAGS_BASE)
372 AM_CCASFLAGS_PPC64_LINUX = $(AM_CPPFLAGS_PPC64_LINUX) @FLAG_M64@ -g
373 AM_FLAG_M3264_ARM_LINUX = @FLAG_M32@
374 AM_CFLAGS_ARM_LINUX = @FLAG_M32@ @PREFERRED_STACK_BOUNDARY@ \
375                                 $(AM_CFLAGS_BASE) -marm
376
377 AM_CCASFLAGS_ARM_LINUX = $(AM_CPPFLAGS_ARM_LINUX) @FLAG_M32@ -marm -g
378 AM_FLAG_M3264_PPC32_AIX5 = @FLAG_MAIX32@
379 AM_CFLAGS_PPC32_AIX5 = @FLAG_MAIX32@ -mcpu=powerpc $(AM_CFLAGS_BASE)
380 AM_CCASFLAGS_PPC32_AIX5 = $(AM_CPPFLAGS_PPC32_AIX5) \
381                             @FLAG_MAIX32@ -mcpu=powerpc -g
382
383 AM_FLAG_M3264_PPC64_AIX5 = @FLAG_MAIX64@
384 AM_CFLAGS_PPC64_AIX5 = @FLAG_MAIX64@ -mcpu=powerpc64 $(AM_CFLAGS_BASE)
385 AM_CCASFLAGS_PPC64_AIX5 = $(AM_CPPFLAGS_PPC64_AIX5) \
386                             @FLAG_MAIX64@ -mcpu=powerpc64 -g
387
388 AM_FLAG_M3264_X86_DARWIN = -arch i386
389 AM_CFLAGS_X86_DARWIN = $(WERROR) -arch i386 $(AM_CFLAGS_BASE) \
390                                 -mmacosx-version-min=10.5 \
391                                 -fno-stack-protector -fno-pic -fno-PIC
392
393 AM_CCASFLAGS_X86_DARWIN = $(AM_CPPFLAGS_X86_DARWIN) -arch i386 -g
394 AM_FLAG_M3264_AMD64_DARWIN = -arch x86_64
395 AM_CFLAGS_AMD64_DARWIN = $(WERROR) -arch x86_64 $(AM_CFLAGS_BASE) \
396                             -mmacosx-version-min=10.5 -fno-stack-protector
397
398 AM_CCASFLAGS_AMD64_DARWIN = $(AM_CPPFLAGS_AMD64_DARWIN) -arch x86_64 -g
399 AM_FLAG_M3264_X86_L4RE = @FLAG_M32@
400 AM_CFLAGS_X86_L4RE = @FLAG_M32@ @PREFERRED_STACK_BOUNDARY@ \
401                                                  $(L4_CFLAGS) $(AM_CFLAGS_BASE)
402
403 AM_CCASFLAGS_X86_L4RE = $(L4_CPPFLAGS) @FLAG_M32@ -g
404 AM_CXXFLAGS_X86_L4RE = $(L4_CXXFLAGS) @FLAG_M32@
405 #AM_CPPFLAGS_X86_L4RE   = $(L4_CPPFLAGS) $(AM_CPPFLAGS_X86_L4RE)
406 AM_FLAG_M3264_S390X_LINUX = @FLAG_M64@
407 AM_CFLAGS_S390X_LINUX = @FLAG_M64@ $(AM_CFLAGS_BASE)
408 AM_CCASFLAGS_S390X_LINUX = $(AM_CPPFLAGS_S390X_LINUX) -mzarch -march=z900 \
409                             @FLAG_M64@ -g
410
411
412 # Flags for the primary target.  These must be used to build the
413 # regtests and performance tests.  In fact, these must be used to
414 # build anything which is built only once on a dual-arch build.
415 #
416 AM_FLAG_M3264_PRI = $(AM_FLAG_M3264_@VGCONF_PLATFORM_PRI_CAPS@)
417 AM_CPPFLAGS_PRI = $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
418 AM_CFLAGS_PRI = $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
419 AM_CCASFLAGS_PRI = $(AM_CCASFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
420 AM_CXXFLAGS_PRI = $(AM_CXXFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
421 @VGCONF_HAVE_PLATFORM_SEC_FALSE@AM_FLAG_M3264_SEC = 
422 @VGCONF_HAVE_PLATFORM_SEC_TRUE@AM_FLAG_M3264_SEC = $(AM_FLAG_M3264_@VGCONF_PLATFORM_SEC_CAPS@)
423
424 # Baseline link flags for making vgpreload shared objects.
425 #
426 PRELOAD_LDFLAGS_COMMON_LINUX = -nodefaultlibs -shared -Wl,-z,interpose,-z,initfirst
427 PRELOAD_LDFLAGS_COMMON_AIX5 = -nodefaultlibs -shared -Wl,-G -Wl,-bnogc
428 PRELOAD_LDFLAGS_COMMON_DARWIN = -dynamic -dynamiclib -all_load
429 PRELOAD_LDFLAGS_COMMON_L4RE = -nodefaultlibs -shared -Wl,-z,interpose,-z,initfirst
430 PRELOAD_LDFLAGS_X86_LINUX = $(PRELOAD_LDFLAGS_COMMON_LINUX) @FLAG_M32@
431 PRELOAD_LDFLAGS_AMD64_LINUX = $(PRELOAD_LDFLAGS_COMMON_LINUX) @FLAG_M64@
432 PRELOAD_LDFLAGS_PPC32_LINUX = $(PRELOAD_LDFLAGS_COMMON_LINUX) @FLAG_M32@
433 PRELOAD_LDFLAGS_PPC64_LINUX = $(PRELOAD_LDFLAGS_COMMON_LINUX) @FLAG_M64@
434 PRELOAD_LDFLAGS_ARM_LINUX = $(PRELOAD_LDFLAGS_COMMON_LINUX) @FLAG_M32@
435 PRELOAD_LDFLAGS_PPC32_AIX5 = $(PRELOAD_LDFLAGS_COMMON_AIX5)  @FLAG_MAIX32@
436 PRELOAD_LDFLAGS_PPC64_AIX5 = $(PRELOAD_LDFLAGS_COMMON_AIX5)  @FLAG_MAIX64@
437 PRELOAD_LDFLAGS_X86_DARWIN = $(PRELOAD_LDFLAGS_COMMON_DARWIN) -arch i386
438 PRELOAD_LDFLAGS_AMD64_DARWIN = $(PRELOAD_LDFLAGS_COMMON_DARWIN) -arch x86_64
439 PRELOAD_LDFLAGS_S390X_LINUX = $(PRELOAD_LDFLAGS_COMMON_LINUX) @FLAG_M64@
440 PRELOAD_LDFLAGS_X86_L4RE = $(PRELOAD_LDFLAGS_COMMON_L4RE) @FLAG_M32@
441 @VGCONF_OS_IS_L4RE_FALSE@TOOLS = memcheck \
442 @VGCONF_OS_IS_L4RE_FALSE@               cachegrind \
443 @VGCONF_OS_IS_L4RE_FALSE@               callgrind \
444 @VGCONF_OS_IS_L4RE_FALSE@               massif \
445 @VGCONF_OS_IS_L4RE_FALSE@               lackey \
446 @VGCONF_OS_IS_L4RE_FALSE@               none \
447 @VGCONF_OS_IS_L4RE_FALSE@               helgrind \
448 @VGCONF_OS_IS_L4RE_FALSE@               drd
449
450 @VGCONF_OS_IS_L4RE_TRUE@TOOLS = none memcheck
451 @VGCONF_OS_IS_L4RE_FALSE@EXP_TOOLS = exp-sgcheck \
452 @VGCONF_OS_IS_L4RE_FALSE@               exp-bbv \
453 @VGCONF_OS_IS_L4RE_FALSE@               exp-dhat
454
455
456 # DDD: once all tools work on Darwin, TEST_TOOLS and TEST_EXP_TOOLS can be
457 # replaced with TOOLS and EXP_TOOLS.
458 TEST_TOOLS = $(TOOLS)
459 @VGCONF_OS_IS_DARWIN_FALSE@TEST_EXP_TOOLS = $(EXP_TOOLS)
460 @VGCONF_OS_IS_DARWIN_TRUE@TEST_EXP_TOOLS = exp-bbv
461 @VGCONF_OS_IS_L4RE_FALSE@SUBDIRS = \
462 @VGCONF_OS_IS_L4RE_FALSE@       include \
463 @VGCONF_OS_IS_L4RE_FALSE@       VEX \
464 @VGCONF_OS_IS_L4RE_FALSE@       coregrind \
465 @VGCONF_OS_IS_L4RE_FALSE@       . \
466 @VGCONF_OS_IS_L4RE_FALSE@       $(TOOLS) \
467 @VGCONF_OS_IS_L4RE_FALSE@       $(EXP_TOOLS) \
468 @VGCONF_OS_IS_L4RE_FALSE@       tests \
469 @VGCONF_OS_IS_L4RE_FALSE@       perf \
470 @VGCONF_OS_IS_L4RE_FALSE@       gdbserver_tests \
471 @VGCONF_OS_IS_L4RE_FALSE@       auxprogs \
472 @VGCONF_OS_IS_L4RE_FALSE@       mpi \
473 @VGCONF_OS_IS_L4RE_FALSE@       docs
474
475
476 # Put docs last because building the HTML is slow and we want to get
477 # everything else working before we try it.
478 @VGCONF_OS_IS_L4RE_TRUE@SUBDIRS = \
479 @VGCONF_OS_IS_L4RE_TRUE@        include \
480 @VGCONF_OS_IS_L4RE_TRUE@        VEX \
481 @VGCONF_OS_IS_L4RE_TRUE@        coregrind \
482 @VGCONF_OS_IS_L4RE_TRUE@        . \
483 @VGCONF_OS_IS_L4RE_TRUE@        $(TOOLS) \
484 @VGCONF_OS_IS_L4RE_TRUE@        $(EXP_TOOLS)
485
486 DIST_SUBDIRS = $(SUBDIRS)
487 SUPP_FILES = glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp \
488         glibc-2.5.supp glibc-2.6.supp glibc-2.7.supp glibc-2.X.supp.in \
489         aix5libc.supp xfree-3.supp xfree-4.supp \
490         glibc-2.34567-NPTL-helgrind.supp \
491         glibc-2.2-LinuxThreads-helgrind.supp glibc-2.X-drd.supp \
492         exp-sgcheck.supp darwin9.supp darwin9-drd.supp darwin10.supp \
493         darwin10-drd.supp $(am__append_1)
494 DEFAULT_SUPP_FILES = @DEFAULT_SUPP@
495 GENERATED_SUPP_FILES = @GENERATED_SUPP@
496
497 # We include all the base .supp files in the distribution, but not
498 # default.supp, as it is built from the base .supp files at compile-time.
499 dist_noinst_DATA = $(SUPP_FILES)
500 pkglib_DATA = default.supp
501 pkgconfigdir = $(libdir)/pkgconfig
502 pkgconfig_DATA = valgrind.pc
503 BUILT_SOURCES = default.supp valgrind.pc
504 CLEANFILES = default.supp
505
506 # Nb: no need to include any Makefile.am files here, or files included from
507 # them, as automake includes them automatically.  Also not COPYING, README
508 # or NEWS.
509 # We include valgrind.spec as well as valgrind.spec.in to save packagers
510 # from having to run configure (bug 188560).
511 EXTRA_DIST = \
512         COPYING.DOCS \
513         README_DEVELOPERS \
514         README_PACKAGERS \
515         README_MISSING_SYSCALL_OR_IOCTL \
516         README.s390 \
517         valgrind.pc.in \
518         valgrind.spec.in \
519         valgrind.spec
520
521 dist_noinst_SCRIPTS = \
522         vg-in-place
523
524 all: $(BUILT_SOURCES) config.h
525         $(MAKE) $(AM_MAKEFLAGS) all-recursive
526
527 .SUFFIXES:
528 am--refresh:
529         @:
530 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.all.am $(am__configure_deps)
531         @for dep in $?; do \
532           case '$(am__configure_deps)' in \
533             *$$dep*) \
534               echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
535               $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
536                 && exit 0; \
537               exit 1;; \
538           esac; \
539         done; \
540         echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
541         $(am__cd) $(top_srcdir) && \
542           $(AUTOMAKE) --foreign Makefile
543 .PRECIOUS: Makefile
544 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
545         @case '$?' in \
546           *config.status*) \
547             echo ' $(SHELL) ./config.status'; \
548             $(SHELL) ./config.status;; \
549           *) \
550             echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
551             cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
552         esac;
553
554 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
555         $(SHELL) ./config.status --recheck
556
557 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
558         $(am__cd) $(srcdir) && $(AUTOCONF)
559 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
560         $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
561 $(am__aclocal_m4_deps):
562
563 config.h: stamp-h1
564         @if test ! -f $@; then \
565           rm -f stamp-h1; \
566           $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
567         else :; fi
568
569 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
570         @rm -f stamp-h1
571         cd $(top_builddir) && $(SHELL) ./config.status config.h
572 $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) 
573         ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
574         rm -f stamp-h1
575         touch $@
576
577 distclean-hdr:
578         -rm -f config.h stamp-h1
579 valgrind.spec: $(top_builddir)/config.status $(srcdir)/valgrind.spec.in
580         cd $(top_builddir) && $(SHELL) ./config.status $@
581 valgrind.pc: $(top_builddir)/config.status $(srcdir)/valgrind.pc.in
582         cd $(top_builddir) && $(SHELL) ./config.status $@
583 glibc-2.X.supp: $(top_builddir)/config.status $(srcdir)/glibc-2.X.supp.in
584         cd $(top_builddir) && $(SHELL) ./config.status $@
585 drd/scripts/download-and-build-splash2: $(top_builddir)/config.status $(top_srcdir)/drd/scripts/download-and-build-splash2.in
586         cd $(top_builddir) && $(SHELL) ./config.status $@
587 install-pkgconfigDATA: $(pkgconfig_DATA)
588         @$(NORMAL_INSTALL)
589         test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
590         @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
591         for p in $$list; do \
592           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
593           echo "$$d$$p"; \
594         done | $(am__base_list) | \
595         while read files; do \
596           echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
597           $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
598         done
599
600 uninstall-pkgconfigDATA:
601         @$(NORMAL_UNINSTALL)
602         @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
603         files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
604         test -n "$$files" || exit 0; \
605         echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
606         cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
607 install-pkglibDATA: $(pkglib_DATA)
608         @$(NORMAL_INSTALL)
609         test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)"
610         @list='$(pkglib_DATA)'; test -n "$(pkglibdir)" || list=; \
611         for p in $$list; do \
612           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
613           echo "$$d$$p"; \
614         done | $(am__base_list) | \
615         while read files; do \
616           echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkglibdir)'"; \
617           $(INSTALL_DATA) $$files "$(DESTDIR)$(pkglibdir)" || exit $$?; \
618         done
619
620 uninstall-pkglibDATA:
621         @$(NORMAL_UNINSTALL)
622         @list='$(pkglib_DATA)'; test -n "$(pkglibdir)" || list=; \
623         files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
624         test -n "$$files" || exit 0; \
625         echo " ( cd '$(DESTDIR)$(pkglibdir)' && rm -f" $$files ")"; \
626         cd "$(DESTDIR)$(pkglibdir)" && rm -f $$files
627
628 # This directory's subdirectories are mostly independent; you can cd
629 # into them and run `make' without going through this Makefile.
630 # To change the values of `make' variables: instead of editing Makefiles,
631 # (1) if the variable is set in `config.status', edit `config.status'
632 #     (which will cause the Makefiles to be regenerated when you run `make');
633 # (2) otherwise, pass the desired values on the `make' command line.
634 $(RECURSIVE_TARGETS):
635         @fail= failcom='exit 1'; \
636         for f in x $$MAKEFLAGS; do \
637           case $$f in \
638             *=* | --[!k]*);; \
639             *k*) failcom='fail=yes';; \
640           esac; \
641         done; \
642         dot_seen=no; \
643         target=`echo $@ | sed s/-recursive//`; \
644         list='$(SUBDIRS)'; for subdir in $$list; do \
645           echo "Making $$target in $$subdir"; \
646           if test "$$subdir" = "."; then \
647             dot_seen=yes; \
648             local_target="$$target-am"; \
649           else \
650             local_target="$$target"; \
651           fi; \
652           ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
653           || eval $$failcom; \
654         done; \
655         if test "$$dot_seen" = "no"; then \
656           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
657         fi; test -z "$$fail"
658
659 $(RECURSIVE_CLEAN_TARGETS):
660         @fail= failcom='exit 1'; \
661         for f in x $$MAKEFLAGS; do \
662           case $$f in \
663             *=* | --[!k]*);; \
664             *k*) failcom='fail=yes';; \
665           esac; \
666         done; \
667         dot_seen=no; \
668         case "$@" in \
669           distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
670           *) list='$(SUBDIRS)' ;; \
671         esac; \
672         rev=''; for subdir in $$list; do \
673           if test "$$subdir" = "."; then :; else \
674             rev="$$subdir $$rev"; \
675           fi; \
676         done; \
677         rev="$$rev ."; \
678         target=`echo $@ | sed s/-recursive//`; \
679         for subdir in $$rev; do \
680           echo "Making $$target in $$subdir"; \
681           if test "$$subdir" = "."; then \
682             local_target="$$target-am"; \
683           else \
684             local_target="$$target"; \
685           fi; \
686           ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
687           || eval $$failcom; \
688         done && test -z "$$fail"
689 tags-recursive:
690         list='$(SUBDIRS)'; for subdir in $$list; do \
691           test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
692         done
693 ctags-recursive:
694         list='$(SUBDIRS)'; for subdir in $$list; do \
695           test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
696         done
697
698 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
699         list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
700         unique=`for i in $$list; do \
701             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
702           done | \
703           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
704               END { if (nonempty) { for (i in files) print i; }; }'`; \
705         mkid -fID $$unique
706 tags: TAGS
707
708 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
709                 $(TAGS_FILES) $(LISP)
710         set x; \
711         here=`pwd`; \
712         if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
713           include_option=--etags-include; \
714           empty_fix=.; \
715         else \
716           include_option=--include; \
717           empty_fix=; \
718         fi; \
719         list='$(SUBDIRS)'; for subdir in $$list; do \
720           if test "$$subdir" = .; then :; else \
721             test ! -f $$subdir/TAGS || \
722               set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
723           fi; \
724         done; \
725         list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
726         unique=`for i in $$list; do \
727             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
728           done | \
729           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
730               END { if (nonempty) { for (i in files) print i; }; }'`; \
731         shift; \
732         if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
733           test -n "$$unique" || unique=$$empty_fix; \
734           if test $$# -gt 0; then \
735             $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
736               "$$@" $$unique; \
737           else \
738             $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
739               $$unique; \
740           fi; \
741         fi
742 ctags: CTAGS
743 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
744                 $(TAGS_FILES) $(LISP)
745         list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
746         unique=`for i in $$list; do \
747             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
748           done | \
749           $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
750               END { if (nonempty) { for (i in files) print i; }; }'`; \
751         test -z "$(CTAGS_ARGS)$$unique" \
752           || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
753              $$unique
754
755 GTAGS:
756         here=`$(am__cd) $(top_builddir) && pwd` \
757           && $(am__cd) $(top_srcdir) \
758           && gtags -i $(GTAGS_ARGS) "$$here"
759
760 distclean-tags:
761         -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
762
763 distdir: $(DISTFILES)
764         $(am__remove_distdir)
765         test -d "$(distdir)" || mkdir "$(distdir)"
766         @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
767         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
768         list='$(DISTFILES)'; \
769           dist_files=`for file in $$list; do echo $$file; done | \
770           sed -e "s|^$$srcdirstrip/||;t" \
771               -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
772         case $$dist_files in \
773           */*) $(MKDIR_P) `echo "$$dist_files" | \
774                            sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
775                            sort -u` ;; \
776         esac; \
777         for file in $$dist_files; do \
778           if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
779           if test -d $$d/$$file; then \
780             dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
781             if test -d "$(distdir)/$$file"; then \
782               find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
783             fi; \
784             if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
785               cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
786               find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
787             fi; \
788             cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
789           else \
790             test -f "$(distdir)/$$file" \
791             || cp -p $$d/$$file "$(distdir)/$$file" \
792             || exit 1; \
793           fi; \
794         done
795         @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
796           if test "$$subdir" = .; then :; else \
797             test -d "$(distdir)/$$subdir" \
798             || $(MKDIR_P) "$(distdir)/$$subdir" \
799             || exit 1; \
800           fi; \
801         done
802         @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
803           if test "$$subdir" = .; then :; else \
804             dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
805             $(am__relativize); \
806             new_distdir=$$reldir; \
807             dir1=$$subdir; dir2="$(top_distdir)"; \
808             $(am__relativize); \
809             new_top_distdir=$$reldir; \
810             echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
811             echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
812             ($(am__cd) $$subdir && \
813               $(MAKE) $(AM_MAKEFLAGS) \
814                 top_distdir="$$new_top_distdir" \
815                 distdir="$$new_distdir" \
816                 am__remove_distdir=: \
817                 am__skip_length_check=: \
818                 am__skip_mode_fix=: \
819                 distdir) \
820               || exit 1; \
821           fi; \
822         done
823         -test -n "$(am__skip_mode_fix)" \
824         || find "$(distdir)" -type d ! -perm -755 \
825                 -exec chmod u+rwx,go+rx {} \; -o \
826           ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
827           ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
828           ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
829         || chmod -R a+r "$(distdir)"
830 dist-gzip: distdir
831         tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
832         $(am__remove_distdir)
833 dist-bzip2: distdir
834         tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
835         $(am__remove_distdir)
836
837 dist-lzma: distdir
838         tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
839         $(am__remove_distdir)
840
841 dist-xz: distdir
842         tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
843         $(am__remove_distdir)
844
845 dist-tarZ: distdir
846         tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
847         $(am__remove_distdir)
848
849 dist-shar: distdir
850         shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
851         $(am__remove_distdir)
852
853 dist-zip: distdir
854         -rm -f $(distdir).zip
855         zip -rq $(distdir).zip $(distdir)
856         $(am__remove_distdir)
857
858 dist dist-all: distdir
859         tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
860         tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
861         $(am__remove_distdir)
862
863 # This target untars the dist file and tries a VPATH configuration.  Then
864 # it guarantees that the distribution is self-contained by making another
865 # tarfile.
866 distcheck: dist
867         case '$(DIST_ARCHIVES)' in \
868         *.tar.gz*) \
869           GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
870         *.tar.bz2*) \
871           bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
872         *.tar.lzma*) \
873           lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
874         *.tar.xz*) \
875           xz -dc $(distdir).tar.xz | $(am__untar) ;;\
876         *.tar.Z*) \
877           uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
878         *.shar.gz*) \
879           GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
880         *.zip*) \
881           unzip $(distdir).zip ;;\
882         esac
883         chmod -R a-w $(distdir); chmod u+w $(distdir)
884         mkdir $(distdir)/_build
885         mkdir $(distdir)/_inst
886         chmod a-w $(distdir)
887         test -d $(distdir)/_build || exit 0; \
888         dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
889           && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
890           && am__cwd=`pwd` \
891           && $(am__cd) $(distdir)/_build \
892           && ../configure --srcdir=.. --prefix="$$dc_install_base" \
893             $(DISTCHECK_CONFIGURE_FLAGS) \
894           && $(MAKE) $(AM_MAKEFLAGS) \
895           && $(MAKE) $(AM_MAKEFLAGS) dvi \
896           && $(MAKE) $(AM_MAKEFLAGS) check \
897           && $(MAKE) $(AM_MAKEFLAGS) install \
898           && $(MAKE) $(AM_MAKEFLAGS) installcheck \
899           && $(MAKE) $(AM_MAKEFLAGS) uninstall \
900           && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
901                 distuninstallcheck \
902           && chmod -R a-w "$$dc_install_base" \
903           && ({ \
904                (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
905                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
906                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
907                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
908                     distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
909               } || { rm -rf "$$dc_destdir"; exit 1; }) \
910           && rm -rf "$$dc_destdir" \
911           && $(MAKE) $(AM_MAKEFLAGS) dist \
912           && rm -rf $(DIST_ARCHIVES) \
913           && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
914           && cd "$$am__cwd" \
915           || exit 1
916         $(am__remove_distdir)
917         @(echo "$(distdir) archives ready for distribution: "; \
918           list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
919           sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
920 distuninstallcheck:
921         @$(am__cd) '$(distuninstallcheck_dir)' \
922         && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
923            || { echo "ERROR: files left after uninstall:" ; \
924                 if test -n "$(DESTDIR)"; then \
925                   echo "  (check DESTDIR support)"; \
926                 fi ; \
927                 $(distuninstallcheck_listfiles) ; \
928                 exit 1; } >&2
929 distcleancheck: distclean
930         @if test '$(srcdir)' = . ; then \
931           echo "ERROR: distcleancheck can only run from a VPATH build" ; \
932           exit 1 ; \
933         fi
934         @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
935           || { echo "ERROR: files left in build directory after distclean:" ; \
936                $(distcleancheck_listfiles) ; \
937                exit 1; } >&2
938 check-am: all-am
939 check: $(BUILT_SOURCES)
940         $(MAKE) $(AM_MAKEFLAGS) check-recursive
941 all-am: Makefile $(SCRIPTS) $(DATA) config.h all-local
942 installdirs: installdirs-recursive
943 installdirs-am:
944         for dir in "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkglibdir)"; do \
945           test -z "$$dir" || $(MKDIR_P) "$$dir"; \
946         done
947 install: $(BUILT_SOURCES)
948         $(MAKE) $(AM_MAKEFLAGS) install-recursive
949 install-exec: install-exec-recursive
950 install-data: install-data-recursive
951 uninstall: uninstall-recursive
952
953 install-am: all-am
954         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
955
956 installcheck: installcheck-recursive
957 install-strip:
958         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
959           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
960           `test -z '$(STRIP)' || \
961             echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
962 mostlyclean-generic:
963
964 clean-generic:
965         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
966
967 distclean-generic:
968         -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
969         -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
970
971 maintainer-clean-generic:
972         @echo "This command is intended for maintainers to use"
973         @echo "it deletes files that may require special tools to rebuild."
974         -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
975 clean: clean-recursive
976
977 clean-am: clean-generic clean-local mostlyclean-am
978
979 distclean: distclean-recursive
980         -rm -f $(am__CONFIG_DISTCLEAN_FILES)
981         -rm -f Makefile
982 distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
983
984 dvi: dvi-recursive
985
986 dvi-am:
987
988 html: html-recursive
989
990 html-am:
991
992 info: info-recursive
993
994 info-am:
995
996 install-data-am: install-pkgconfigDATA
997
998 install-dvi: install-dvi-recursive
999
1000 install-dvi-am:
1001
1002 install-exec-am: install-pkglibDATA
1003
1004 install-html: install-html-recursive
1005
1006 install-html-am:
1007
1008 install-info: install-info-recursive
1009
1010 install-info-am:
1011
1012 install-man:
1013
1014 install-pdf: install-pdf-recursive
1015
1016 install-pdf-am:
1017
1018 install-ps: install-ps-recursive
1019
1020 install-ps-am:
1021
1022 installcheck-am:
1023
1024 maintainer-clean: maintainer-clean-recursive
1025         -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1026         -rm -rf $(top_srcdir)/autom4te.cache
1027         -rm -f Makefile
1028 maintainer-clean-am: distclean-am maintainer-clean-generic
1029
1030 mostlyclean: mostlyclean-recursive
1031
1032 mostlyclean-am: mostlyclean-generic
1033
1034 pdf: pdf-recursive
1035
1036 pdf-am:
1037
1038 ps: ps-recursive
1039
1040 ps-am:
1041
1042 uninstall-am: uninstall-pkgconfigDATA uninstall-pkglibDATA
1043
1044 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \
1045         ctags-recursive install install-am install-strip \
1046         tags-recursive
1047
1048 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
1049         all all-am all-local am--refresh check check-am clean \
1050         clean-generic clean-local ctags ctags-recursive dist dist-all \
1051         dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ dist-xz \
1052         dist-zip distcheck distclean distclean-generic distclean-hdr \
1053         distclean-tags distcleancheck distdir distuninstallcheck dvi \
1054         dvi-am html html-am info info-am install install-am \
1055         install-data install-data-am install-dvi install-dvi-am \
1056         install-exec install-exec-am install-html install-html-am \
1057         install-info install-info-am install-man install-pdf \
1058         install-pdf-am install-pkgconfigDATA install-pkglibDATA \
1059         install-ps install-ps-am install-strip installcheck \
1060         installcheck-am installdirs installdirs-am maintainer-clean \
1061         maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
1062         pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
1063         uninstall-pkgconfigDATA uninstall-pkglibDATA
1064
1065
1066 # This used to be required when Vex had a handwritten Makefile.  It
1067 # shouldn't be needed any more, though.
1068
1069 #----------------------------------------------------------------------------
1070 # noinst_PROGRAMS and noinst_DSYMS targets
1071 #----------------------------------------------------------------------------
1072
1073 # On Darwin, for a program 'p', the DWARF debug info is stored in the
1074 # directory 'p.dSYM'.  This must be generated after the executable is
1075 # created, with 'dsymutil p'.  We could redefine LINK with a script that
1076 # executes 'dsymutil' after linking, but that's a pain.  Instead we use this
1077 # hook so that every time "make check" is run, we subsequently invoke
1078 # 'dsymutil' on all the executables that lack a .dSYM directory, or that are
1079 # newer than their corresponding .dSYM directory.
1080 build-noinst_DSYMS: $(noinst_DSYMS)
1081         for f in $(noinst_DSYMS); do \
1082           if [ ! -e $$f.dSYM  -o  $$f -nt $$f.dSYM ] ; then \
1083               echo "dsymutil $$f"; \
1084               dsymutil $$f; \
1085           fi; \
1086         done
1087
1088 # This is used by coregrind/Makefile.am and Makefile.tool.am for doing
1089 # "in-place" installs.  It copies $(noinst_PROGRAMS) into $inplacedir.
1090 # It needs to be depended on by an 'all-local' rule.
1091 inplace-noinst_PROGRAMS: $(noinst_PROGRAMS)
1092         mkdir -p $(inplacedir); \
1093         for f in $(noinst_PROGRAMS) ; do \
1094           rm -f $(inplacedir)/$$f; \
1095           ln -f -s ../$(subdir)/$$f $(inplacedir); \
1096         done
1097
1098 # Similar to inplace-noinst_PROGRAMS
1099 inplace-noinst_DSYMS: build-noinst_DSYMS
1100         mkdir -p $(inplacedir); \
1101         for f in $(noinst_DSYMS); do \
1102           rm -f $(inplacedir)/$$f.dSYM; \
1103           ln -f -s ../$(subdir)/$$f.dSYM $(inplacedir); \
1104         done
1105
1106 # This is used by coregrind/Makefile.am and by <tool>/Makefile.am for doing
1107 # "make install".  It copies $(noinst_PROGRAMS) into $prefix/lib/valgrind/.
1108 # It needs to be depended on by an 'install-exec-local' rule.
1109 install-noinst_PROGRAMS: $(noinst_PROGRAMS)
1110         $(mkinstalldirs) $(DESTDIR)$(pkglibdir); \
1111         for f in $(noinst_PROGRAMS); do \
1112           $(INSTALL_PROGRAM) $$f $(DESTDIR)$(pkglibdir); \
1113         done
1114
1115 # Similar to install-noinst_PROGRAMS.
1116 # Nb: we don't use $(INSTALL_PROGRAM) here because it doesn't work with
1117 # directories.  XXX: not sure whether the resulting permissions will be
1118 # correct when using 'cp -R'...
1119 install-noinst_DSYMS: build-noinst_DSYMS
1120         $(mkinstalldirs) $(DESTDIR)$(pkglibdir); \
1121         for f in $(noinst_DSYMS); do \
1122           cp -R $$f.dSYM $(DESTDIR)$(pkglibdir); \
1123         done
1124
1125 # This needs to be depended on by a 'clean-local' rule.
1126 clean-noinst_DSYMS:
1127         for f in $(noinst_DSYMS); do \
1128           rm -rf $$f.dSYM; \
1129         done
1130
1131 default.supp: $(DEFAULT_SUPP_FILES) $(GENERATED_SUPP_FILES)
1132         echo "# This is a generated file, composed of the following suppression rules:" > default.supp
1133         echo "# " $(addprefix $(srcdir)/, $(DEFAULT_SUPP_FILES)) >> default.supp
1134         cat $(addprefix $(srcdir)/, $(DEFAULT_SUPP_FILES)) >> default.supp
1135         echo "# " $(GENERATED_SUPP_FILES) >> default.supp
1136         cat $(GENERATED_SUPP_FILES) >> default.supp
1137
1138 regtest: check
1139         gdbserver_tests/make_local_links $(GDB)
1140         @PERL@ tests/vg_regtest gdbserver_tests $(TEST_TOOLS) $(TEST_EXP_TOOLS)
1141 nonexp-regtest: check
1142         @PERL@ tests/vg_regtest $(TEST_TOOLS)
1143 exp-regtest: check
1144         @PERL@ tests/vg_regtest gdbserver_tests $(TEST_EXP_TOOLS)
1145 # Nb: gdbserver_tests are put in exp-regtest rather than nonexp-regtest
1146 # because they are tested with various valgrind tools, so might be using
1147 # an experimental tool.
1148
1149 perf: check
1150         @PERL@ perf/vg_perf perf
1151
1152 all-local: default.supp
1153         mkdir -p $(inplacedir)
1154         rm -f $(inplacedir)/default.supp
1155         ln -s ../default.supp $(inplacedir)
1156
1157 clean-local:
1158         rm -rf $(inplacedir)
1159
1160 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1161 # Otherwise a system limit (for SysV at least) may be exceeded.
1162 .NOEXPORT: