blob: 9f04de2f94d3018fd56d5b544660aa538e53ad1e [file] [log] [blame]
nethercote4388a402004-09-01 23:20:49 +00001include $(top_srcdir)/Makefile.tool.am
njn782eb002002-09-30 10:48:07 +00002
njn3e884182003-04-15 13:03:23 +00003# include memcheck/ for mac_shared.h
nethercote4388a402004-09-01 23:20:49 +00004AM_CPPFLAGS += -I$(top_srcdir)/memcheck
sewardjde4a1d02002-03-22 01:27:54 +00005
fitzhardinge98abfc72003-12-16 02:05:15 +00006val_PROGRAMS = vgskin_addrcheck.so vgpreload_addrcheck.so
sewardjde4a1d02002-03-22 01:27:54 +00007
njn9b007f62003-04-07 14:40:25 +00008vgskin_addrcheck_so_SOURCES = ac_main.c
njn25e49d8e72002-09-23 09:36:25 +00009vgskin_addrcheck_so_LDFLAGS = -shared
njn3e884182003-04-15 13:03:23 +000010vgskin_addrcheck_so_LDADD = \
11 ../memcheck/mac_leakcheck.o \
12 ../memcheck/mac_malloc_wrappers.o \
nethercotee3a53722004-05-05 10:46:22 +000013 ../memcheck/mac_needs.o
njn25e49d8e72002-09-23 09:36:25 +000014
fitzhardinge98abfc72003-12-16 02:05:15 +000015vgpreload_addrcheck_so_SOURCES =
nethercotee3a53722004-05-05 10:46:22 +000016vgpreload_addrcheck_so_LDADD = \
nethercotee3a53722004-05-05 10:46:22 +000017 ../memcheck/mac_replace_strmem.o
18vgpreload_addrcheck_so_DEPENDENCIES = \
nethercote799fb802004-10-20 18:40:40 +000019 $(top_builddir)/coregrind/lib_replace_malloc.a \
nethercotee3a53722004-05-05 10:46:22 +000020 ../memcheck/mac_replace_strmem.o
nethercote799fb802004-10-20 18:40:40 +000021vgpreload_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
fitzhardinge98abfc72003-12-16 02:05:15 +000025