Somewhat rehash the biarch-build machinery so as to (1) formalise the
distinction between primary and secondary build targets, and (2) make
it independent of the default behaviour of gcc (iow, what gcc does
when you specify neither -m32 nor -m64).

As a result, an out-of-the-box build on ppc64-linux now builds a
system which is basically for 64-bit PowerPC, but also has the ability
to run 32-bit ppc-linux binaries (exactly the same arrangement as you
get when building on amd64-linux).

There are various twists and turns.  multiple-architectures.txt is
updated all the gory details.

This will break amd64 builds until such time as
<tool>/tests/{amd64,x86}/Makefile.am are fixed up (shortly).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5493 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/perf/Makefile.am b/perf/Makefile.am
index ba8d322..669de45 100644
--- a/perf/Makefile.am
+++ b/perf/Makefile.am
@@ -1,4 +1,7 @@
 
+# For AM_FLAG_M3264_PRI
+include $(top_srcdir)/Makefile.flags.am
+
 noinst_SCRIPTS = vg_perf
 
 noinst_HEADERS = stdarg.h stddef.h
@@ -16,11 +19,11 @@
 check_PROGRAMS = \
 	bigcode bz2 fbench ffbench heap sarp tinycc
 
-AM_CFLAGS   = $(WERROR) -Winline -Wall -Wshadow -g -O
+AM_CFLAGS   = $(WERROR) -Winline -Wall -Wshadow -g -O $(AM_FLAG_M3264_PRI)
 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir)/include
 AM_CXXFLAGS = $(AM_CFLAGS)
 
 # Extra stuff
-fbench_CFLAGS   = -g -O2
+fbench_CFLAGS   = $(AM_FLAG_M3264_PRI) -g -O2
 fbench_LDADD	= 
 ffbench_LDADD	= -lm