nethercote | 4388a40 | 2004-09-01 23:20:49 +0000 | [diff] [blame^] | 1 | include $(top_srcdir)/Makefile.tool.am |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 2 | |
nethercote | 4388a40 | 2004-09-01 23:20:49 +0000 | [diff] [blame^] | 3 | ## Build Memcheck at a higher optimisation level |
4 | AM_CFLAGS += -O2 | ||||
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 5 | |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 6 | val_PROGRAMS = vgskin_memcheck.so vgpreload_memcheck.so |
7 | |||||
8 | vgpreload_memcheck_so_SOURCES = \ | ||||
9 | mac_replace_strmem.c | ||||
fitzhardinge | e3c6b6f | 2004-03-12 10:51:39 +0000 | [diff] [blame] | 10 | vgpreload_memcheck_so_LDADD = $(top_builddir)/coregrind/vg_replace_malloc.o |
11 | vgpreload_memcheck_so_DEPENDENCIES = $(top_builddir)/coregrind/vg_replace_malloc.o | ||||
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 12 | vgpreload_memcheck_so_LDFLAGS = -shared -Wl,-z,interpose,-z,initfirst |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 13 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 14 | vgskin_memcheck_so_SOURCES = \ |
njn | 43c799e | 2003-04-08 00:08:52 +0000 | [diff] [blame] | 15 | mac_leakcheck.c \ |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 16 | mac_malloc_wrappers.c \ |
njn | 43c799e | 2003-04-08 00:08:52 +0000 | [diff] [blame] | 17 | mac_needs.c \ |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 18 | mc_main.c \ |
19 | mc_clientreqs.c \ | ||||
20 | mc_errcontext.c \ | ||||
21 | mc_from_ucode.c \ | ||||
22 | mc_translate.c \ | ||||
23 | mc_helpers.S | ||||
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 24 | vgskin_memcheck_so_LDFLAGS = -shared |
25 | |||||
njn | 683c6ee | 2002-11-12 10:53:31 +0000 | [diff] [blame] | 26 | mcincludedir = $(includedir)/valgrind |
27 | |||||
28 | mcinclude_HEADERS = \ | ||||
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 29 | memcheck.h |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 30 | |
sewardj | b4db402 | 2002-12-08 22:19:04 +0000 | [diff] [blame] | 31 | noinst_HEADERS = \ |
njn | 43c799e | 2003-04-08 00:08:52 +0000 | [diff] [blame] | 32 | mac_shared.h \ |
sewardj | b4db402 | 2002-12-08 22:19:04 +0000 | [diff] [blame] | 33 | mc_constants.h \ |
njn | 683c6ee | 2002-11-12 10:53:31 +0000 | [diff] [blame] | 34 | mc_include.h |
35 | |||||
njn | 66fe05a | 2003-07-22 09:12:33 +0000 | [diff] [blame] | 36 | mac_replace_strmem.o: CFLAGS += -fno-omit-frame-pointer |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 37 |