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