blob: 676903e874bce3d401e4d8baa5c4f1ce973a5f57 [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
njn063c5402004-11-22 16:58:05 +00006val_PROGRAMS = vgtool_addrcheck.so vgpreload_addrcheck.so
sewardjde4a1d02002-03-22 01:27:54 +00007
njn063c5402004-11-22 16:58:05 +00008vgtool_addrcheck_so_SOURCES = ac_main.c
9vgtool_addrcheck_so_LDFLAGS = -shared
10vgtool_addrcheck_so_LDADD = \
njn3e884182003-04-15 13:03:23 +000011 ../memcheck/mac_leakcheck.o \
12 ../memcheck/mac_malloc_wrappers.o \
njn5db32122005-08-12 15:23:57 +000013 ../memcheck/mac_shared.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 = \
njn717cde52005-05-10 02:47:21 +000019 $(LIBREPLACEMALLOC) \
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 \
njn717cde52005-05-10 02:47:21 +000023 $(LIBREPLACEMALLOC) \
nethercote799fb802004-10-20 18:40:40 +000024 -Wl,--no-whole-archive
fitzhardinge98abfc72003-12-16 02:05:15 +000025