mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-11 22:08:14 +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
38 lines
773 B
Makefile
38 lines
773 B
Makefile
|
|
# For AM_FLAG_M3264_PRI
|
|
include $(top_srcdir)/Makefile.flags.am
|
|
|
|
SUBDIRS = .
|
|
if VG_X86_LINUX
|
|
SUBDIRS += x86
|
|
endif
|
|
if VG_AMD64_LINUX
|
|
SUBDIRS += amd64
|
|
endif
|
|
if VG_PPC32_LINUX
|
|
SUBDIRS += ppc32
|
|
endif
|
|
if VG_PPC64_LINUX
|
|
SUBDIRS += ppc64
|
|
endif
|
|
|
|
DIST_SUBDIRS = ${VG_ARCH_ALL} .
|
|
|
|
noinst_SCRIPTS = filter_stderr filter_cachesim_discards
|
|
|
|
EXTRA_DIST = $(noinst_SCRIPTS) \
|
|
chdir.vgtest chdir.stderr.exp \
|
|
clreq.vgtest clreq.stderr.exp \
|
|
dlclose.vgtest dlclose.stderr.exp dlclose.stdout.exp
|
|
|
|
check_PROGRAMS = \
|
|
chdir clreq dlclose myprint.so
|
|
|
|
AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g $(AM_FLAG_M3264_PRI)
|
|
|
|
# C ones
|
|
dlclose_LDADD = -ldl
|
|
myprint_so_SOURCES = myprint.c
|
|
myprint_so_LDFLAGS = $(AM_FLAG_M3264_PRI) -shared -fPIC
|
|
myprint_so_CFLAGS = $(AM_FLAG_M3264_PRI) -fPIC
|