blob: 3463d2cf3a3029e91324985bfb0eef35f5014f9e [file] [log] [blame]
njn25e49d8e72002-09-23 09:36:25 +00001
njn25cac76cb2002-09-23 11:21:57 +00002SUBDIRS = . tests docs
njn25e49d8e72002-09-23 09:36:25 +00003
njna63e2d72003-06-12 14:13:05 +00004all_includes = -I$(top_srcdir)/include
sewardjde4a1d02002-03-22 01:27:54 +00005
njna63e2d72003-06-12 14:13:05 +00006AM_CPPFLAGS = $(all_includes) -DVG_LIBDIR="\"$(libdir)"\"
7AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -O -fomit-frame-pointer \
daywalkerf5ef1852003-02-25 01:48:15 +00008 @PREFERRED_STACK_BOUNDARY@ -g
njna63e2d72003-06-12 14:13:05 +00009AM_CCASFLAGS = $(all_includes)
daywalkera0d3ab62002-04-21 13:32:28 +000010
sewardjde4a1d02002-03-22 01:27:54 +000011valdir = $(libdir)/valgrind
12
njn25cac76cb2002-09-23 11:21:57 +000013val_PROGRAMS = vgskin_memcheck.so
sewardjde4a1d02002-03-22 01:27:54 +000014
njn25e49d8e72002-09-23 09:36:25 +000015vgskin_memcheck_so_SOURCES = \
njn43c799e2003-04-08 00:08:52 +000016 mac_leakcheck.c \
njn3e884182003-04-15 13:03:23 +000017 mac_malloc_wrappers.c \
njn43c799e2003-04-08 00:08:52 +000018 mac_needs.c \
njn66fe05a2003-07-22 09:12:33 +000019 mac_replace_strmem.c \
njn25cac76cb2002-09-23 11:21:57 +000020 mc_main.c \
21 mc_clientreqs.c \
22 mc_errcontext.c \
23 mc_from_ucode.c \
24 mc_translate.c \
25 mc_helpers.S
njn25e49d8e72002-09-23 09:36:25 +000026vgskin_memcheck_so_LDFLAGS = -shared
njn3e884182003-04-15 13:03:23 +000027vgskin_memcheck_so_LDADD = ../coregrind/vg_replace_malloc.o
njn25e49d8e72002-09-23 09:36:25 +000028
njn683c6ee2002-11-12 10:53:31 +000029mcincludedir = $(includedir)/valgrind
30
31mcinclude_HEADERS = \
njn25cac76cb2002-09-23 11:21:57 +000032 memcheck.h
sewardjde4a1d02002-03-22 01:27:54 +000033
sewardjb4db4022002-12-08 22:19:04 +000034noinst_HEADERS = \
njn43c799e2003-04-08 00:08:52 +000035 mac_shared.h \
sewardjb4db4022002-12-08 22:19:04 +000036 mc_constants.h \
njn683c6ee2002-11-12 10:53:31 +000037 mc_include.h
38
njn66fe05a2003-07-22 09:12:33 +000039mac_replace_strmem.o: CFLAGS += -fno-omit-frame-pointer
njn3e884182003-04-15 13:03:23 +000040