• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file is used for tool tests, and also in perf/Makefile.am.
2
3include $(top_srcdir)/Makefile.all.am
4
5AM_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
13
14if VGCONF_HAVE_PLATFORM_SEC
15AM_CPPFLAGS +=	-DVGA_SEC_@VGCONF_ARCH_SEC@=1  \
16		-DVGP_SEC_@VGCONF_ARCH_PRI@_@VGCONF_OS@=1
17endif
18
19# Nb: Tools need to augment these flags with an arch-selection option, such
20# as $(AM_FLAG_M3264_PRI).
21AM_CFLAGS   = -Winline -Wall -Wshadow -g
22AM_CXXFLAGS = -Winline -Wall -Wshadow -g
23# Include AM_CPPFLAGS in AM_CCASFLAGS to allow for older versions of
24# automake;  see comments in Makefile.all.am for more detail.
25AM_CCASFLAGS = $(AM_CPPFLAGS)
26
27if VGCONF_OS_IS_DARWIN
28noinst_DSYMS = $(check_PROGRAMS)
29endif
30
31if HAS_WRITE_STRINGS_WARNING
32CFLAGS += -Wno-write-strings
33endif
34
35if COMPILER_IS_CLANG
36CFLAGS   += -Wno-format-extra-args       # perf/tinycc.c
37CFLAGS   += -Wno-literal-range           # none/tests/amd64/fxtract.c
38CFLAGS   += -Wno-string-plus-int         # drd/tests/annotate_ignore_rw.c
39CXXFLAGS += -Wno-unused-private-field    # drd/tests/tsan_unittest.cpp
40endif
41
42check-local: build-noinst_DSYMS
43
44clean-local: clean-noinst_DSYMS
45