DRD: Eliminate a temporary variable
[valgrind.git] / exp-sgcheck / tests / Makefile.am
blob74a0e57edebeea5079edf2c2b571430afd239cb5
2 include $(top_srcdir)/Makefile.tool-tests.am
4 dist_noinst_SCRIPTS = filter_stderr filter_add filter_suppgen
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         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
20 check_PROGRAMS = \
21         bad_percentify \
22         globalerr hackedbz2 \
23         hsg \
24         preen_invars preen_invars_so.so \
25         stackerr
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
35 AM_CFLAGS   += $(AM_FLAG_M3264_PRI)
36 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
38 # To make it a bit more realistic, build hackedbz2.c with at 
39 # least some optimisation.
40 hackedbz2_CFLAGS        = $(AM_CFLAGS) -O -Wno-inline
42 # C ones
43 #pth_create_LDADD       = -lpthread
45 # C++ ones
46 #ccc_SOURCES            = ccc.cpp
48 # Build shared object for preen_invars
49 preen_invars_DEPENDENCIES      = preen_invars_so.so
50 if VGCONF_OS_IS_DARWIN
51  preen_invars_LDADD            = -ldl
52  preen_invars_LDFLAGS          = $(AM_FLAG_M3264_PRI)
53 else
54  preen_invars_LDADD            = -ldl
55  preen_invars_LDFLAGS          = $(AM_FLAG_M3264_PRI) \
56                                 -Wl,-rpath,$(top_builddir)/memcheck/tests
57 endif
59 preen_invars_so_so_SOURCES      = preen_invars_so.c     # For automake-1.7.
60 preen_invars_so_so_CFLAGS       = $(AM_CFLAGS) -fpic
61 if VGCONF_OS_IS_DARWIN
62  preen_invars_so_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
63                                         -dynamiclib -all_load
64 else
65  preen_invars_so_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -shared \
66                                         -Wl,-soname -Wl,preen_invars_so.so
67 endif