nethercote | 4388a40 | 2004-09-01 23:20:49 +0000 | [diff] [blame] | 1 | include $(top_srcdir)/Makefile.tool.am |
njn | 782eb00 | 2002-09-30 10:48:07 +0000 | [diff] [blame] | 2 | |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 3 | # include memcheck/ for mac_shared.h |
nethercote | 4388a40 | 2004-09-01 23:20:49 +0000 | [diff] [blame] | 4 | AM_CPPFLAGS += -I$(top_srcdir)/memcheck |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 5 | |
njn | 063c540 | 2004-11-22 16:58:05 +0000 | [diff] [blame] | 6 | val_PROGRAMS = vgtool_addrcheck.so vgpreload_addrcheck.so |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 7 | |
njn | 063c540 | 2004-11-22 16:58:05 +0000 | [diff] [blame] | 8 | vgtool_addrcheck_so_SOURCES = ac_main.c |
9 | vgtool_addrcheck_so_LDFLAGS = -shared | ||||
10 | vgtool_addrcheck_so_LDADD = \ | ||||
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 11 | ../memcheck/mac_leakcheck.o \ |
12 | ../memcheck/mac_malloc_wrappers.o \ | ||||
njn | 5db3212 | 2005-08-12 15:23:57 +0000 | [diff] [blame] | 13 | ../memcheck/mac_shared.o |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 14 | |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 15 | vgpreload_addrcheck_so_SOURCES = |
nethercote | e3a5372 | 2004-05-05 10:46:22 +0000 | [diff] [blame] | 16 | vgpreload_addrcheck_so_LDADD = \ |
nethercote | e3a5372 | 2004-05-05 10:46:22 +0000 | [diff] [blame] | 17 | ../memcheck/mac_replace_strmem.o |
18 | vgpreload_addrcheck_so_DEPENDENCIES = \ | ||||
njn | 717cde5 | 2005-05-10 02:47:21 +0000 | [diff] [blame] | 19 | $(LIBREPLACEMALLOC) \ |
nethercote | e3a5372 | 2004-05-05 10:46:22 +0000 | [diff] [blame] | 20 | ../memcheck/mac_replace_strmem.o |
nethercote | 799fb80 | 2004-10-20 18:40:40 +0000 | [diff] [blame] | 21 | vgpreload_addrcheck_so_LDFLAGS = -shared -Wl,-z,interpose,-z,initfirst \ |
22 | -Wl,--whole-archive \ | ||||
njn | 717cde5 | 2005-05-10 02:47:21 +0000 | [diff] [blame] | 23 | $(LIBREPLACEMALLOC) \ |
nethercote | 799fb80 | 2004-10-20 18:40:40 +0000 | [diff] [blame] | 24 | -Wl,--no-whole-archive |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 25 |