include $(top_srcdir)/Makefile.tool-tests.am

dist_noinst_SCRIPTS = filter_stderr

EXTRA_DIST = \
	blockfault.stderr.exp blockfault.vgtest \
	brk-overflow1.stderr.exp brk-overflow1.vgtest \
	brk-overflow2.stderr.exp brk-overflow2.vgtest \
	mremap.stderr.exp mremap.stderr.exp-glibc27 mremap.stdout.exp \
	    mremap.vgtest \
	mremap2.stderr.exp mremap2.stdout.exp mremap2.vgtest \
	mremap3.stderr.exp mremap3.stdout.exp mremap3.vgtest \
	mremap4.stderr.exp mremap4.vgtest \
	mremap5.stderr.exp mremap5.vgtest \
	mremap6.stderr.exp mremap6.vgtest \
	pthread-stack.stderr.exp pthread-stack.vgtest \
	stack-overflow.stderr.exp stack-overflow.vgtest

check_PROGRAMS = \
	blockfault \
	brk-overflow1 \
	brk-overflow2 \
	mremap \
	mremap2 \
	mremap3 \
	mremap4 \
	mremap5 \
	mremap6 \
	pthread-stack \
	stack-overflow


AM_CFLAGS   += $(AM_FLAG_M3264_PRI)
AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)

# Special needs
pthread_stack_LDADD = -lpthread