mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
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
39 lines
1.7 KiB
Makefile
39 lines
1.7 KiB
Makefile
|
|
# Baseline flags for all compilations
|
|
AM_CFLAGS_BASE = -O -g -Wmissing-prototypes -Winline -Wall -Wshadow \
|
|
-Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
|
|
|
|
AM_CFLAGS_PIC = -fpic -fno-omit-frame-pointer
|
|
|
|
# Flags for specific targets
|
|
AM_FLAG_M3264_X86_LINUX = @FLAG_M32@
|
|
AM_CPPFLAGS_X86_LINUX = $(add_includes_x86_linux)
|
|
AM_CFLAGS_X86_LINUX = $(WERROR) @FLAG_M32@ @PREFERRED_STACK_BOUNDARY@ \
|
|
$(AM_CFLAGS_BASE)
|
|
AM_CCASFLAGS_X86_LINUX = $(add_includes_x86_linux) @FLAG_M32@ -g
|
|
|
|
AM_FLAG_M3264_AMD64_LINUX = @FLAG_M64@
|
|
AM_CPPFLAGS_AMD64_LINUX = $(add_includes_amd64_linux)
|
|
AM_CFLAGS_AMD64_LINUX = $(WERROR) @FLAG_M64@ -fomit-frame-pointer \
|
|
@PREFERRED_STACK_BOUNDARY@ $(AM_CFLAGS_BASE)
|
|
AM_CCASFLAGS_AMD64_LINUX = $(add_includes_amd64_linux) -m64 -g
|
|
|
|
AM_FLAG_M3264_PPC32_LINUX = @FLAG_M32@
|
|
AM_CPPFLAGS_PPC32_LINUX = $(add_includes_ppc32_linux)
|
|
AM_CFLAGS_PPC32_LINUX = $(WERROR) @FLAG_M32@ $(AM_CFLAGS_BASE)
|
|
AM_CCASFLAGS_PPC32_LINUX = $(add_includes_ppc32_linux) -Wa,-maltivec @FLAG_M32@ -g
|
|
|
|
AM_FLAG_M3264_PPC64_LINUX = @FLAG_M64@
|
|
AM_CPPFLAGS_PPC64_LINUX = $(add_includes_ppc64_linux)
|
|
AM_CFLAGS_PPC64_LINUX = $(WERROR) @FLAG_M64@ $(AM_CFLAGS_BASE)
|
|
AM_CCASFLAGS_PPC64_LINUX = $(add_includes_ppc64_linux) -Wa,-maltivec -m64 -g
|
|
|
|
# Flags for the primary target. These must be used to build the
|
|
# regtests and performance tests. In fact, these must be used to
|
|
# build anything which is built only once on a dual-arch build.
|
|
#
|
|
AM_FLAG_M3264_PRI = $(AM_FLAG_M3264_@VG_PLATFORM_PRI@)
|
|
AM_CPPFLAGS_PRI = $(AM_CPPFLAGS_@VG_PLATFORM_PRI@)
|
|
AM_CFLAGS_PRI = $(AM_CFLAGS_@VG_PLATFORM_PRI@)
|
|
AM_CCASFLAGS_PRI = $(AM_CCASFLAGS_@VG_PLATFORM_PRI@)
|