mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-09 21:28:19 +00:00
upon unmapping of a shared object, in sg_main.c. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8681
171 lines
5.1 KiB
Makefile
171 lines
5.1 KiB
Makefile
|
|
# For AM_FLAG_M3264_PRI
|
|
include $(top_srcdir)/Makefile.flags.am
|
|
|
|
#SUBDIRS = .
|
|
#if VGP_X86_LINUX
|
|
#SUBDIRS += x86
|
|
#endif
|
|
#if VGP_AMD64_LINUX
|
|
#SUBDIRS += amd64
|
|
#endif
|
|
#if VGP_PPC32_LINUX
|
|
#SUBDIRS += ppc32
|
|
#endif
|
|
#if VGP_PPC64_LINUX
|
|
#SUBDIRS += ppc64
|
|
#endif
|
|
|
|
#DIST_SUBDIRS = ${VG_ARCH_ALL} .
|
|
|
|
noinst_SCRIPTS = filter_stderr filter_add filter_suppgen \
|
|
sh_script
|
|
|
|
EXTRA_DIST = $(noinst_SCRIPTS) \
|
|
add.vgtest-disabled add.stderr.exp \
|
|
and.vgtest-disabled and.stderr.exp \
|
|
arith.vgtest-disabled arith.stderr.exp \
|
|
arith_include1.c arith_include2.c \
|
|
bad_percentify.vgtest bad_percentify.c \
|
|
bad_percentify.stdout.exp bad_percentify.stderr.exp-glibc28-amd64 \
|
|
base.vgtest \
|
|
base.stderr.exp-glibc25-amd64 base.stderr.exp-glibc25-x86 \
|
|
ccc.vgtest \
|
|
ccc.stderr.exp-glibc25-x86 ccc.stderr.exp-glibc25-amd64 \
|
|
ccc.stderr.exp-glibc27-x86 ccc.stderr.exp-glibc28-amd64 \
|
|
cmp.vgtest-disabled cmp.stderr.exp \
|
|
globalerr.vgtest globalerr.stdout.exp \
|
|
globalerr.stderr.exp-glibc28-amd64 \
|
|
fp.vgtest fp.stderr.exp \
|
|
hackedbz2.vgtest hackedbz2.stdout.exp \
|
|
hackedbz2.stderr.exp-glibc28-amd64 \
|
|
hp_bounds.vgtest hp_bounds.stderr.exp \
|
|
hp_dangle.vgtest hp_dangle.stderr.exp \
|
|
idiv.vgtest-disabled idiv.stderr.exp \
|
|
imul.vgtest-disabled imul.stderr.exp \
|
|
justify.vgtest justify.stderr.exp \
|
|
mm.vgtest-disabled mm.stderr.exp \
|
|
neg.vgtest-disabled neg.stderr.exp \
|
|
not.vgtest-disabled not.stderr.exp \
|
|
or.vgtest-disabled or.stderr.exp \
|
|
partial_bad.vgtest \
|
|
partial_bad.stderr.exp-glibc25-x86 \
|
|
partial_bad.stderr.exp-glibc25-amd64 \
|
|
partial_good.vgtest \
|
|
partial_good.stderr.exp-glibc25-x86 \
|
|
partial_good.stderr.exp-glibc25-amd64 \
|
|
preen_invars.vgtest preen_invars.stdout.exp \
|
|
preen_invars.stderr.exp-glibc28-amd64 \
|
|
pth_create.vgtest pth_create.stderr.exp \
|
|
pth_specific.vgtest pth_specific.stderr.exp \
|
|
realloc.vgtest \
|
|
realloc.stderr.exp-glibc25-x86 realloc.stderr.exp-glibc25-amd64 \
|
|
sh_script.vgtest-disabled sh_script.stderr.exp \
|
|
stackerr.vgtest stackerr.stdout.exp \
|
|
stackerr.stderr.exp-glibc28-amd64 stackerr.stderr.exp-glibc27-x86 \
|
|
strcpy.vgtest strcpy.stderr.exp \
|
|
strlen_bad.vgtest-disabled strlen_bad.stderr.exp \
|
|
strlen_good.vgtest-disabled strlen_good.stderr.exp \
|
|
sub.vgtest-disabled sub.stderr.exp \
|
|
supp.vgtest supp.stderr.exp supp.supp \
|
|
suppgen.vgtest-disabled suppgen.stderr.exp suppgen.stdin \
|
|
syscall.vgtest-disabled syscall.stderr.exp \
|
|
tricky.vgtest tricky.stderr.exp \
|
|
unaligned.vgtest \
|
|
unaligned.stderr.exp-glibc25-x86 unaligned.stderr.exp-glibc25-amd64 \
|
|
xor.vgtest-disabled xor.stderr.exp \
|
|
zero.vgtest zero.stderr.exp
|
|
|
|
check_PROGRAMS = \
|
|
add and arith bad_percentify base ccc cmp fp \
|
|
globalerr hackedbz2 \
|
|
hp_bounds hp_dangle idiv imul \
|
|
justify mm not neg or partial \
|
|
preen_invars preen_invars_so.so \
|
|
pth_create pth_specific realloc \
|
|
stackerr \
|
|
strcpy strlen sub supp syscall tricky unaligned xor zero
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include \
|
|
-I$(top_srcdir)/coregrind -I$(top_builddir)/include \
|
|
-I@VEX_DIR@/pub
|
|
AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g $(AM_FLAG_M3264_PRI)
|
|
AM_CXXFLAGS = $(AM_CFLAGS)
|
|
|
|
# To make it a bit more realistic, build hackedbz2.c with at
|
|
# least some optimisation.
|
|
hackedbz2_CFLAGS = $(AM_FLAG_M3264_PRI) $(AM_CFLAGS) -O -g
|
|
|
|
# C ones
|
|
add_SOURCES = add.c
|
|
and_SOURCES = and.c
|
|
arith_SOURCES = arith.c
|
|
bad_percentify_SOURCES = bad_percentify.c
|
|
base_SOURCES = base.c
|
|
cmp_SOURCES = cmp.c
|
|
fp_SOURCES = fp.c
|
|
globalerr_SOURCE = globalerr.c
|
|
hackedbz2_SOURCES = hackedbz2.c
|
|
hp_bounds_SOURCES = hp_bounds.c
|
|
hp_dangle_SOURCES = hp_dangle.c
|
|
idiv_SOURCES = idiv.c
|
|
imul_SOURCES = imul.c
|
|
justify_SOURCES = justify.c
|
|
mm_SOURCES = mm.c
|
|
neg_SOURCES = neg.c
|
|
not_SOURCES = not.c
|
|
or_SOURCES = or.c
|
|
partial_SOURCES = partial.c
|
|
pth_create_SOURCES = pth_create.c
|
|
pth_create_LDADD = -lpthread
|
|
pth_specific_SOURCES = pth_specific.c
|
|
pth_specific_LDADD = -lpthread
|
|
realloc_SOURCES = realloc.c
|
|
stackerr_SOURCES = stackerr.c
|
|
strcpy_SOURCES = strcpy.c
|
|
strlen_SOURCES = strlen.c
|
|
sub_SOURCES = sub.c
|
|
supp_SOURCES = supp.c
|
|
syscall_SOURCES = syscall.c
|
|
tricky_SOURCES = tricky.c
|
|
unaligned_SOURCES = unaligned.c
|
|
xor_SOURCES = xor.c
|
|
zero_SOURCES = zero.c
|
|
|
|
# C++ ones
|
|
ccc_SOURCES = ccc.cpp
|
|
|
|
# Build shared object for preen_invars
|
|
preen_invars_SOURCES = preen_invars.c
|
|
preen_invars_DEPENDENCIES = preen_invars_so.so
|
|
if VGP_PPC64_AIX5
|
|
preen_invars_LDADD = -ldl
|
|
preen_invars_LDFLAGS = $(AM_FLAG_M3264_PRI)
|
|
else
|
|
if VGP_PPC32_AIX5
|
|
preen_invars_LDADD = -ldl
|
|
preen_invars_LDFLAGS = $(AM_FLAG_M3264_PRI) -Wl,-G -Wl,-bnogc
|
|
else
|
|
preen_invars_LDADD = -ldl
|
|
preen_invars_LDFLAGS = $(AM_FLAG_M3264_PRI) \
|
|
-Wl,-rpath,$(top_builddir)/memcheck/tests
|
|
endif
|
|
endif
|
|
|
|
preen_invars_so_so_SOURCES = preen_invars_so.c
|
|
preen_invars_so_so_LDADD =
|
|
preen_invars_so_so_DEPENDENCIES =
|
|
preen_invars_so_so_CFLAGS = -fpic $(AM_FLAG_M3264_PRI) -g
|
|
if VGP_PPC64_AIX5
|
|
preen_invars_so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared
|
|
else
|
|
if VGP_PPC32_AIX5
|
|
preen_invars_so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
|
|
-Wl,-G -Wl,-bnogc
|
|
else
|
|
preen_invars_so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
|
|
-Wl,-soname -Wl,preen_invars_so.so
|
|
endif
|
|
endif
|
|
|