ftmemsim-valgrind/Makefile.am
Nicholas Nethercote dc0fe27537 Changed things so that the regression test script (vg_regtest) is no longer
installed, as it was silly since the reg tests themselves aren't installed.
Updated the "make regtest" target to use the uninstalled version in tests/.

Also, vg_regtest now no longer uses the installed version of Valgrind to do the
testing, but instead coregrind/valgrind.  This means that you don't have to do
make install with your buggy changes before running the regtests on them :)

I even updated the RPM package .spec file!

Thanks to Dirk M�ller for the suggestion.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1551
2003-04-23 21:48:20 +00:00

50 lines
1.2 KiB
Makefile

AUTOMAKE_OPTIONS = 1.5
## 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_CFLAGS = $(WERROR) -DVG_LIBDIR="\"$(libdir)"\" \
-Winline -Wall -Wshadow -O -fomit-frame-pointer @PREFERRED_STACK_BOUNDARY@ -g
valdir = $(libdir)/valgrind
SUPP_FILES = glibc-2.1.supp glibc-2.2.supp xfree-3.supp xfree-4.supp
val_DATA = $(SUPP_FILES) default.supp
BUILT_SOURCES = default.supp
DISTCLEANFILES = default.supp
default.supp: $(SUPP_FILES)
bzdist: dist
gunzip -c $(PACKAGE)-$(VERSION).tar.gz | bzip2 > $(PACKAGE)-$(VERSION).tar.bz2
## 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