blob: 27ceaae1bdc3579af8fe29693301b04a497f3bb0 [file] [log] [blame]
SUBDIRS = . tests docs hp2ps
AM_CPPFLAGS = -I$(top_srcdir)/include -DVG_LIBDIR="\"$(libdir)"\"
AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -O -fomit-frame-pointer \
@PREFERRED_STACK_BOUNDARY@ -g
valdir = $(libdir)/valgrind
inplacedir = $(top_srcdir)/.in_place
val_PROGRAMS = vgskin_massif.so vgpreload_massif.so
vgskin_massif_so_SOURCES = ms_main.c
vgskin_massif_so_LDFLAGS = -shared
vgpreload_massif_so_SOURCES =
vgpreload_massif_so_LDADD = $(top_srcdir)/coregrind/vg_replace_malloc.o
vgpreload_massif_so_DEPENDENCIES = $(top_srcdir)/coregrind/vg_replace_malloc.o
vgpreload_massif_so_LDFLAGS = -shared -Wl,-z,interpose,-z,initfirst
all-local:
mkdir -p $(inplacedir)
-rm -f $(addprefix $(inplacedir)/,$(val_PROGRAMS))
ln -f -s $(addprefix $(top_srcdir)/$(subdir)/,$(val_PROGRAMS)) $(inplacedir)