Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git] / Makefile.tool-tests.am
blob752b9678e4e6a527a667b0dc9b49c187bc7f5938
1 # This file is used for tool tests, and also in perf/Makefile.am.
3 include $(top_srcdir)/Makefile.all.am
5 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include \
6                 -I$(top_srcdir)/coregrind -I$(top_builddir)/include \
7                 -I$(top_srcdir)/VEX/pub \
8                 -I$(top_builddir)/VEX/pub \
9                 -DVGA_@VGCONF_ARCH_PRI@=1 \
10                 -DVGO_@VGCONF_OS@=1 \
11                 -DVGP_@VGCONF_ARCH_PRI@_@VGCONF_OS@=1 \
12                 -DVGPV_@VGCONF_ARCH_PRI@_@VGCONF_OS@_@VGCONF_PLATVARIANT@=1
14 if VGCONF_HAVE_PLATFORM_SEC
15 AM_CPPFLAGS +=  -DVGA_SEC_@VGCONF_ARCH_SEC@=1  \
16                 -DVGP_SEC_@VGCONF_ARCH_PRI@_@VGCONF_OS@=1
17 endif
19 if VGCONF_HAVE_ABI
20 AM_CPPFLAGS += -DVGABI_@VGCONF_ABI@
21 endif
23 # Nb: Tools need to augment these flags with an arch-selection option, such
24 # as $(AM_FLAG_M3264_PRI).
25 AM_CFLAGS   = -Winline -Wall -Wshadow -Wno-long-long -g \
26               @FLAG_FNO_STACK_PROTECTOR@
27 AM_CXXFLAGS = -Winline -Wall -Wshadow -Wno-long-long -g \
28               @FLAG_FNO_STACK_PROTECTOR@
29 # Include AM_CPPFLAGS in AM_CCASFLAGS to allow for older versions of
30 # automake;  see comments in Makefile.all.am for more detail.
31 AM_CCASFLAGS = $(AM_CPPFLAGS)
33 if VGCONF_OS_IS_SOLARIS
34 # Make sure that all test programs have threaded errno.
35 # Disable largefile support as there are test cases explicitly enabling it.
36 AM_CFLAGS  += -D_REENTRANT @SOLARIS_UNDEF_LARGESOURCE@
37 endif
39 if VGCONF_OS_IS_DARWIN
40 noinst_DSYMS = $(check_PROGRAMS)
41 endif
43 if COMPILER_IS_CLANG
44 AM_CFLAGS   += -Wno-format-extra-args       # perf/tinycc.c
45 AM_CFLAGS   += -Wno-literal-range           # none/tests/amd64/fxtract.c
46 AM_CFLAGS   += -Wno-tautological-constant-out-of-range-compare # ...../aes.c
47 AM_CFLAGS   += -Wno-self-assign             # memcheck/tests/unit_libcbase.c
48 AM_CFLAGS   += -Wno-string-plus-int         # drd/tests/annotate_ignore_rw.c
49 AM_CFLAGS   += -Wno-uninitialized           # clang 3.4.2 and earlier
50 AM_CFLAGS   += -Wno-unused-value            # clang 3.0.0
51 AM_CXXFLAGS += -Wno-unused-private-field    # drd/tests/tsan_unittest.cpp
52 endif
54 check-local: build-noinst_DSYMS
56 clean-local: clean-noinst_DSYMS