blob: da07ec7338a161b30ee8c3953eeb4ab5e98df262 [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 \
sewardjc6444592011-07-11 22:10:14 +00008 -DVGA_@VGCONF_ARCH_PRI@=1 \
9 -DVGO_@VGCONF_OS@=1 \
10 -DVGP_@VGCONF_ARCH_PRI@_@VGCONF_OS@=1 \
11 -DVGPV_@VGCONF_ARCH_PRI@_@VGCONF_OS@_@VGCONF_PLATVARIANT@=1
florian5bdb9ec2012-05-06 03:51:00 +000012
13if VGCONF_HAVE_PLATFORM_SEC
14AM_CPPFLAGS += -DVGA_SEC_@VGCONF_ARCH_SEC@=1 \
15 -DVGP_SEC_@VGCONF_ARCH_PRI@_@VGCONF_OS@=1
16endif
17
njn07891f92009-02-22 23:38:10 +000018# Nb: Tools need to augment these flags with an arch-selection option, such
19# as $(AM_FLAG_M3264_PRI).
njn8d1181d2009-02-25 23:19:46 +000020AM_CFLAGS = -Winline -Wall -Wshadow -g
21AM_CXXFLAGS = -Winline -Wall -Wshadow -g
njnc9a6f4b2009-04-24 20:17:07 +000022# Include AM_CPPFLAGS in AM_CCASFLAGS to allow for older versions of
njn8b68b642009-06-24 00:37:09 +000023# automake; see comments in Makefile.all.am for more detail.
njnc9a6f4b2009-04-24 20:17:07 +000024AM_CCASFLAGS = $(AM_CPPFLAGS)
njn53044572009-02-19 09:52:05 +000025
njnf76d27a2009-05-28 01:53:07 +000026if VGCONF_OS_IS_DARWIN
njn8b68b642009-06-24 00:37:09 +000027noinst_DSYMS = $(check_PROGRAMS)
28endif
njnf76d27a2009-05-28 01:53:07 +000029
njn8b68b642009-06-24 00:37:09 +000030check-local: build-noinst_DSYMS
31
32clean-local: clean-noinst_DSYMS