blob: 6521afb4ac78ae0b73cec874b79c08fd8bf4ffb4 [file] [log] [blame]
njn83b62cb2009-04-15 03:12:43 +00001# This file is used for tool tests, and also in perf/Makefile.am.
2
njn8b68b642009-06-24 00:37:09 +00003include $(top_srcdir)/Makefile.all.am
njn53044572009-02-19 09:52:05 +00004
5AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include \
6 -I$(top_srcdir)/coregrind -I$(top_builddir)/include \
njn8b68b642009-06-24 00:37:09 +00007 -I$(top_srcdir)/VEX/pub \
mjwe2990202014-05-09 13:34:13 +00008 -I$(top_builddir)/VEX/pub \
sewardjc6444592011-07-11 22:10:14 +00009 -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
florian5bdb9ec2012-05-06 03:51:00 +000013
14if VGCONF_HAVE_PLATFORM_SEC
15AM_CPPFLAGS += -DVGA_SEC_@VGCONF_ARCH_SEC@=1 \
16 -DVGP_SEC_@VGCONF_ARCH_PRI@_@VGCONF_OS@=1
17endif
18
njn07891f92009-02-22 23:38:10 +000019# Nb: Tools need to augment these flags with an arch-selection option, such
20# as $(AM_FLAG_M3264_PRI).
njn8d1181d2009-02-25 23:19:46 +000021AM_CFLAGS = -Winline -Wall -Wshadow -g
22AM_CXXFLAGS = -Winline -Wall -Wshadow -g
njnc9a6f4b2009-04-24 20:17:07 +000023# Include AM_CPPFLAGS in AM_CCASFLAGS to allow for older versions of
njn8b68b642009-06-24 00:37:09 +000024# automake; see comments in Makefile.all.am for more detail.
njnc9a6f4b2009-04-24 20:17:07 +000025AM_CCASFLAGS = $(AM_CPPFLAGS)
njn53044572009-02-19 09:52:05 +000026
njnf76d27a2009-05-28 01:53:07 +000027if VGCONF_OS_IS_DARWIN
njn8b68b642009-06-24 00:37:09 +000028noinst_DSYMS = $(check_PROGRAMS)
29endif
njnf76d27a2009-05-28 01:53:07 +000030
florian6bd9dc12012-11-23 16:17:43 +000031if HAS_WRITE_STRINGS_WARNING
32CFLAGS += -Wno-write-strings
33endif
34
florian3d9368e2013-10-04 21:12:17 +000035if 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
njn8b68b642009-06-24 00:37:09 +000042check-local: build-noinst_DSYMS
43
44clean-local: clean-noinst_DSYMS