njn | 83b62cb | 2009-04-15 03:12:43 +0000 | [diff] [blame] | 1 | # This file is used for tool tests, and also in perf/Makefile.am. |
| 2 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 3 | include $(top_srcdir)/Makefile.all.am |
njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame] | 4 | |
| 5 | AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include \ |
| 6 | -I$(top_srcdir)/coregrind -I$(top_builddir)/include \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 7 | -I$(top_srcdir)/VEX/pub \ |
sewardj | c644459 | 2011-07-11 22:10:14 +0000 | [diff] [blame] | 8 | -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 |
florian | 5bdb9ec | 2012-05-06 03:51:00 +0000 | [diff] [blame] | 12 | |
| 13 | if VGCONF_HAVE_PLATFORM_SEC |
| 14 | AM_CPPFLAGS += -DVGA_SEC_@VGCONF_ARCH_SEC@=1 \ |
| 15 | -DVGP_SEC_@VGCONF_ARCH_PRI@_@VGCONF_OS@=1 |
| 16 | endif |
| 17 | |
njn | 07891f9 | 2009-02-22 23:38:10 +0000 | [diff] [blame] | 18 | # Nb: Tools need to augment these flags with an arch-selection option, such |
| 19 | # as $(AM_FLAG_M3264_PRI). |
njn | 8d1181d | 2009-02-25 23:19:46 +0000 | [diff] [blame] | 20 | AM_CFLAGS = -Winline -Wall -Wshadow -g |
| 21 | AM_CXXFLAGS = -Winline -Wall -Wshadow -g |
njn | c9a6f4b | 2009-04-24 20:17:07 +0000 | [diff] [blame] | 22 | # Include AM_CPPFLAGS in AM_CCASFLAGS to allow for older versions of |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 23 | # automake; see comments in Makefile.all.am for more detail. |
njn | c9a6f4b | 2009-04-24 20:17:07 +0000 | [diff] [blame] | 24 | AM_CCASFLAGS = $(AM_CPPFLAGS) |
njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame] | 25 | |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 26 | if VGCONF_OS_IS_DARWIN |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 27 | noinst_DSYMS = $(check_PROGRAMS) |
| 28 | endif |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 29 | |
florian | 6bd9dc1 | 2012-11-23 16:17:43 +0000 | [diff] [blame^] | 30 | if HAS_WRITE_STRINGS_WARNING |
| 31 | CFLAGS += -Wno-write-strings |
| 32 | endif |
| 33 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 34 | check-local: build-noinst_DSYMS |
| 35 | |
| 36 | clean-local: clean-noinst_DSYMS |