blob: 51526ec8647bfd564033511654e252f98e4f1335 [file] [log] [blame]
AUTOMAKE_OPTIONS = 1.6 dist-bzip2
## coregrind must come before memcheck, addrcheck, helgrind, for
## vg_replace_malloc.o.
## addrcheck must come after memcheck, for mac_*.o
SUBDIRS = coregrind . docs tests include auxprogs \
memcheck \
addrcheck \
cachegrind \
corecheck \
helgrind \
lackey \
none
AM_CPPFLAGS = -DVG_LIBDIR="\"$(libdir)"\"
AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -O -fomit-frame-pointer \
@PREFERRED_STACK_BOUNDARY@ -g
valdir = $(libdir)/valgrind
SUPP_FILES = \
glibc-2.1.supp glibc-2.2.supp glibc-2.3.supp \
xfree-3.supp xfree-4.supp
val_DATA = $(SUPP_FILES) default.supp
BUILT_SOURCES = default.supp
DISTCLEANFILES = default.supp
default.supp: $(SUPP_FILES)
## Preprend @PERL@ because tests/vg_regtest isn't executable
regtest: check
@PERL@ tests/vg_regtest --all
EXTRA_DIST = $(val_DATA) \
FAQ.txt \
PATCHES_APPLIED ACKNOWLEDGEMENTS \
README_KDE3_FOLKS README_PACKAGERS \
README_MISSING_SYSCALL_OR_IOCTL TODO \
valgrind.spec valgrind.spec.in
install-exec-hook:
$(mkinstalldirs) $(DESTDIR)$(valdir)
rm -f $(DESTDIR)$(valdir)/libpthread.so.0
$(LN_S) libpthread.so $(DESTDIR)$(valdir)/libpthread.so.0