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 | |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 6 | val_PROGRAMS = vgskin_addrcheck.so vgpreload_addrcheck.so |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 7 | |
njn | 9b007f6 | 2003-04-07 14:40:25 +0000 | [diff] [blame] | 8 | vgskin_addrcheck_so_SOURCES = ac_main.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 9 | vgskin_addrcheck_so_LDFLAGS = -shared |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 10 | vgskin_addrcheck_so_LDADD = \ |
| 11 | ../memcheck/mac_leakcheck.o \ |
| 12 | ../memcheck/mac_malloc_wrappers.o \ |
nethercote | e3a5372 | 2004-05-05 10:46:22 +0000 | [diff] [blame] | 13 | ../memcheck/mac_needs.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 = \ |
nethercote | 799fb80 | 2004-10-20 18:40:40 +0000 | [diff] [blame] | 19 | $(top_builddir)/coregrind/lib_replace_malloc.a \ |
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 \ |
| 23 | $(top_builddir)/coregrind/lib_replace_malloc.a \ |
| 24 | -Wl,--no-whole-archive |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 25 | |