njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 1 | |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 2 | SUBDIRS = . tests docs |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 3 | |
njn | a63e2d7 | 2003-06-12 14:13:05 +0000 | [diff] [blame] | 4 | all_includes = -I$(top_srcdir)/include |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 5 | |
njn | a63e2d7 | 2003-06-12 14:13:05 +0000 | [diff] [blame] | 6 | AM_CPPFLAGS = $(all_includes) -DVG_LIBDIR="\"$(libdir)"\" |
7 | AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -O -fomit-frame-pointer \ | ||||
daywalker | f5ef185 | 2003-02-25 01:48:15 +0000 | [diff] [blame] | 8 | @PREFERRED_STACK_BOUNDARY@ -g |
njn | a63e2d7 | 2003-06-12 14:13:05 +0000 | [diff] [blame] | 9 | AM_CCASFLAGS = $(all_includes) |
daywalker | a0d3ab6 | 2002-04-21 13:32:28 +0000 | [diff] [blame] | 10 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 11 | valdir = $(libdir)/valgrind |
12 | |||||
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 13 | val_PROGRAMS = vgskin_memcheck.so |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 14 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 15 | vgskin_memcheck_so_SOURCES = \ |
njn | 43c799e | 2003-04-08 00:08:52 +0000 | [diff] [blame] | 16 | mac_leakcheck.c \ |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 17 | mac_malloc_wrappers.c \ |
njn | 43c799e | 2003-04-08 00:08:52 +0000 | [diff] [blame] | 18 | mac_needs.c \ |
njn | 66fe05a | 2003-07-22 09:12:33 +0000 | [diff] [blame] | 19 | mac_replace_strmem.c \ |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 20 | mc_main.c \ |
21 | mc_clientreqs.c \ | ||||
22 | mc_errcontext.c \ | ||||
23 | mc_from_ucode.c \ | ||||
24 | mc_translate.c \ | ||||
25 | mc_helpers.S | ||||
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 26 | vgskin_memcheck_so_LDFLAGS = -shared |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 27 | vgskin_memcheck_so_LDADD = ../coregrind/vg_replace_malloc.o |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 28 | |
njn | 683c6ee | 2002-11-12 10:53:31 +0000 | [diff] [blame] | 29 | mcincludedir = $(includedir)/valgrind |
30 | |||||
31 | mcinclude_HEADERS = \ | ||||
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 32 | memcheck.h |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 33 | |
sewardj | b4db402 | 2002-12-08 22:19:04 +0000 | [diff] [blame] | 34 | noinst_HEADERS = \ |
njn | 43c799e | 2003-04-08 00:08:52 +0000 | [diff] [blame] | 35 | mac_shared.h \ |
sewardj | b4db402 | 2002-12-08 22:19:04 +0000 | [diff] [blame] | 36 | mc_constants.h \ |
njn | 683c6ee | 2002-11-12 10:53:31 +0000 | [diff] [blame] | 37 | mc_include.h |
38 | |||||
njn | 66fe05a | 2003-07-22 09:12:33 +0000 | [diff] [blame] | 39 | mac_replace_strmem.o: CFLAGS += -fno-omit-frame-pointer |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 40 |