blob: a19a9062d8879027463e1a8c6e6683312cdd06a5 [file] [log] [blame]
nethercote4388a402004-09-01 23:20:49 +00001include $(top_srcdir)/Makefile.tool.am
njn25e49d8e72002-09-23 09:36:25 +00002
nethercote4388a402004-09-01 23:20:49 +00003## Build Memcheck at a higher optimisation level
4AM_CFLAGS += -O2
sewardjde4a1d02002-03-22 01:27:54 +00005
fitzhardinge98abfc72003-12-16 02:05:15 +00006val_PROGRAMS = vgskin_memcheck.so vgpreload_memcheck.so
7
8vgpreload_memcheck_so_SOURCES = \
9 mac_replace_strmem.c
fitzhardingee3c6b6f2004-03-12 10:51:39 +000010vgpreload_memcheck_so_LDADD = $(top_builddir)/coregrind/vg_replace_malloc.o
11vgpreload_memcheck_so_DEPENDENCIES = $(top_builddir)/coregrind/vg_replace_malloc.o
fitzhardinge98abfc72003-12-16 02:05:15 +000012vgpreload_memcheck_so_LDFLAGS = -shared -Wl,-z,interpose,-z,initfirst
sewardjde4a1d02002-03-22 01:27:54 +000013
njn25e49d8e72002-09-23 09:36:25 +000014vgskin_memcheck_so_SOURCES = \
njn43c799e2003-04-08 00:08:52 +000015 mac_leakcheck.c \
njn3e884182003-04-15 13:03:23 +000016 mac_malloc_wrappers.c \
njn43c799e2003-04-08 00:08:52 +000017 mac_needs.c \
njn25cac76cb2002-09-23 11:21:57 +000018 mc_main.c \
19 mc_clientreqs.c \
20 mc_errcontext.c \
21 mc_from_ucode.c \
22 mc_translate.c \
23 mc_helpers.S
njn25e49d8e72002-09-23 09:36:25 +000024vgskin_memcheck_so_LDFLAGS = -shared
25
njn683c6ee2002-11-12 10:53:31 +000026mcincludedir = $(includedir)/valgrind
27
28mcinclude_HEADERS = \
njn25cac76cb2002-09-23 11:21:57 +000029 memcheck.h
sewardjde4a1d02002-03-22 01:27:54 +000030
sewardjb4db4022002-12-08 22:19:04 +000031noinst_HEADERS = \
njn43c799e2003-04-08 00:08:52 +000032 mac_shared.h \
sewardjb4db4022002-12-08 22:19:04 +000033 mc_constants.h \
njn683c6ee2002-11-12 10:53:31 +000034 mc_include.h
35
njn66fe05a2003-07-22 09:12:33 +000036mac_replace_strmem.o: CFLAGS += -fno-omit-frame-pointer
njn3e884182003-04-15 13:03:23 +000037