1 2 include $(top_srcdir)/Makefile.tool-tests.am 3 4 dist_noinst_SCRIPTS = filter_stderr filter_add filter_suppgen 5 6 EXTRA_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 21 check_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 36 AM_CFLAGS += $(AM_FLAG_M3264_PRI) 37 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) 38 39 # To make it a bit more realistic, build hackedbz2.c with at 40 # least some optimisation. 41 hackedbz2_CFLAGS = $(AM_CFLAGS) -O -Wno-inline 42 43 globalerr_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 51 preen_invars_DEPENDENCIES = preen_invars_so.so 52 if VGCONF_OS_IS_DARWIN 53 preen_invars_LDADD = -ldl 54 preen_invars_LDFLAGS = $(AM_FLAG_M3264_PRI) 55 else 56 preen_invars_LDADD = -ldl 57 preen_invars_LDFLAGS = $(AM_FLAG_M3264_PRI) \ 58 -Wl,-rpath,$(top_builddir)/memcheck/tests 59 endif 60 61 preen_invars_so_so_CFLAGS = $(AM_CFLAGS) -fpic 62 if VGCONF_OS_IS_DARWIN 63 preen_invars_so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \ 64 -dynamiclib -all_load 65 else 66 preen_invars_so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \ 67 -Wl,-soname -Wl,preen_invars_so.so 68 endif 69 70