1 2include $(top_srcdir)/Makefile.tool-tests.am 3 4dist_noinst_SCRIPTS = filter_stderr filter_add filter_suppgen 5 6EXTRA_DIST = \ 7 is_arch_supported \ 8 bad_percentify.vgtest bad_percentify.c \ 9 bad_percentify.stdout.exp bad_percentify.stderr.exp-glibc28-amd64 \ 10 globalerr.vgtest globalerr.stdout.exp \ 11 globalerr.stderr.exp-glibc28-amd64 \ 12 globalerr.stderr.exp-gcc491-amd64 \ 13 hackedbz2.vgtest hackedbz2.stdout.exp \ 14 hackedbz2.stderr.exp-glibc28-amd64 \ 15 hsg.vgtest hsg.stdout.exp hsg.stderr.exp \ 16 preen_invars.vgtest preen_invars.stdout.exp \ 17 preen_invars.stderr.exp-glibc28-amd64 \ 18 stackerr.vgtest stackerr.stdout.exp \ 19 stackerr.stderr.exp-glibc28-amd64 stackerr.stderr.exp-glibc27-x86 20 21check_PROGRAMS = \ 22 bad_percentify \ 23 globalerr hackedbz2 \ 24 hsg \ 25 preen_invars preen_invars_so.so \ 26 stackerr 27 28# DDD: not sure if these ones should work on Darwin or not... if not, should 29# be moved into x86-linux/. 30#if ! VGCONF_OS_IS_DARWIN 31# check_PROGRAMS += \ 32# ccc 33#endif 34 35 36AM_CFLAGS += $(AM_FLAG_M3264_PRI) 37AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) 38 39# To make it a bit more realistic, build hackedbz2.c with at 40# least some optimisation. 41hackedbz2_CFLAGS = $(AM_CFLAGS) -O -Wno-inline 42 43globalerr_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ 44# C ones 45#pth_create_LDADD = -lpthread 46 47# C++ ones 48#ccc_SOURCES = ccc.cpp 49 50# Build shared object for preen_invars 51preen_invars_DEPENDENCIES = preen_invars_so.so 52if VGCONF_OS_IS_DARWIN 53 preen_invars_LDADD = -ldl 54 preen_invars_LDFLAGS = $(AM_FLAG_M3264_PRI) 55else 56 preen_invars_LDADD = -ldl 57 preen_invars_LDFLAGS = $(AM_FLAG_M3264_PRI) \ 58 -Wl,-rpath,$(top_builddir)/memcheck/tests 59endif 60 61preen_invars_so_so_CFLAGS = $(AM_CFLAGS) -fpic 62if VGCONF_OS_IS_DARWIN 63 preen_invars_so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \ 64 -dynamiclib -all_load 65else 66 preen_invars_so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \ 67 -Wl,-soname -Wl,preen_invars_so.so 68endif 69 70