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 -DVGA_@VGCONF_ARCH_PRI@=1 \
10 -DVGP_@VGCONF_ARCH_PRI@_@VGCONF_OS@=1 \
11 -DVGPV_@VGCONF_ARCH_PRI@_@VGCONF_OS@_@VGCONF_PLATVARIANT@=1
13 if VGCONF_HAVE_PLATFORM_SEC
14 AM_CPPFLAGS += -DVGA_SEC_@VGCONF_ARCH_SEC@=1 \
15 -DVGP_SEC_@VGCONF_ARCH_PRI@_@VGCONF_OS@=1
18 # Nb: Tools need to augment these flags with an arch-selection option, such
19 # as $(AM_FLAG_M3264_PRI).
20 AM_CFLAGS = -Winline -Wall -Wshadow -g
21 AM_CXXFLAGS = -Winline -Wall -Wshadow -g
22 # Include AM_CPPFLAGS in AM_CCASFLAGS to allow for older versions of
23 # automake; see comments in Makefile.all.am for more detail.
24 AM_CCASFLAGS = $(AM_CPPFLAGS)
26 if VGCONF_OS_IS_DARWIN
27 noinst_DSYMS = $(check_PROGRAMS)
30 if HAS_WRITE_STRINGS_WARNING
31 CFLAGS += -Wno-write-strings
35 CFLAGS += -Wno-format-extra-args # perf/tinycc.c
36 CFLAGS += -Wno-literal-range # none/tests/amd64/fxtract.c
37 CFLAGS += -Wno-string-plus-int # drd/tests/annotate_ignore_rw.c
38 CXXFLAGS += -Wno-unused-private-field # drd/tests/tsan_unittest.cpp
41 check-local: build-noinst_DSYMS
43 clean-local: clean-noinst_DSYMS