Nicholas Nethercote a551dd690a Reinstate Addrcheck. Some of the tests fail -- some of the leak ones
because the added VG_(find_root_memory)() is just a stub.  And there's a
problem with overlap checking that I haven't worked out yet.  Still it's a
start.  The commit also brings Memcheck back into the build process,
although mc_main.c is entirely commented out at the moment.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3352
2005-03-14 01:16:05 +00:00

37 lines
843 B
Makefile

include $(top_srcdir)/Makefile.tool.am
## Build Memcheck at a higher optimisation level
AM_CFLAGS += -O2
val_PROGRAMS = vgtool_memcheck.so vgpreload_memcheck.so
vgpreload_memcheck_so_SOURCES = \
mac_replace_strmem.c
vgpreload_memcheck_so_DEPENDENCIES = $(top_builddir)/coregrind/lib_replace_malloc.a
vgpreload_memcheck_so_LDFLAGS = -shared -Wl,-z,interpose,-z,initfirst \
-Wl,--whole-archive \
$(top_builddir)/coregrind/lib_replace_malloc.a \
-Wl,--no-whole-archive
vgtool_memcheck_so_SOURCES = \
mac_leakcheck.c \
mac_malloc_wrappers.c \
mac_needs.c \
mc_errcontext.c \
mc_main.c \
mc_translate.c
vgtool_memcheck_so_LDFLAGS = -shared
mcincludedir = $(includedir)/valgrind
mcinclude_HEADERS = \
memcheck.h
noinst_HEADERS = \
mac_shared.h \
mc_asm.h \
mc_include.h
mac_replace_strmem.o: CFLAGS += -fno-omit-frame-pointer