Files
ftmemsim-valgrind/memcheck/Makefile.am
Nicholas Nethercote eb32bc7045 Modularised the malloc/free stuff into two modules: m_mallocfree for the
malloc/free implementation, and m_replacemalloc with the stuff for the tools
that replace malloc with their own version.  Previously these two areas of
functionality were mixed up somewhat.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3648
2005-05-10 02:47:21 +00:00

38 lines
816 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 = \
$(LIBREPLACEMALLOC)
vgpreload_memcheck_so_LDFLAGS = -shared -Wl,-z,interpose,-z,initfirst \
-Wl,--whole-archive \
$(LIBREPLACEMALLOC) \
-Wl,--no-whole-archive
vgtool_memcheck_so_SOURCES = \
mac_leakcheck.c \
mac_malloc_wrappers.c \
mc_main.c \
mac_shared.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
mc_main.o: CFLAGS += -fomit-frame-pointer