2002-04-03 08:51:34 +02:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include
|
|
|
|
|
2004-10-15 15:48:38 +02:00
|
|
|
EXTRA_DIST = run-ia64-test-dyn1 run-ptrace-mapper run-ptrace-misc \
|
2010-08-05 00:11:19 +02:00
|
|
|
run-check-namespace check-namespace.sh.in Gtest-nomalloc.c
|
2003-03-06 07:14:36 +01:00
|
|
|
|
2002-04-03 08:51:34 +02:00
|
|
|
noinst_PROGRAMS_common =
|
2004-08-19 16:03:54 +02:00
|
|
|
check_PROGRAMS_common = test-proc-info test-static-link \
|
2004-08-18 17:16:46 +02:00
|
|
|
test-strerror
|
2004-05-05 03:58:44 +02:00
|
|
|
check_SCRIPTS_common = run-check-namespace
|
2002-04-03 08:51:34 +02:00
|
|
|
|
|
|
|
if REMOTE_ONLY
|
2003-02-27 10:58:57 +01:00
|
|
|
check_SCRIPTS_cdep =
|
|
|
|
check_PROGRAMS_cdep =
|
2003-01-23 19:47:51 +01:00
|
|
|
noinst_PROGRAMS_cdep = $(noinst_PROGRAMS_common)
|
2004-01-21 07:36:35 +01:00
|
|
|
|
|
|
|
perf:
|
|
|
|
|
2002-04-03 08:51:34 +02:00
|
|
|
else
|
2005-05-03 11:13:17 +02:00
|
|
|
LIBUNWIND_local = ../src/libunwind.la
|
2002-04-25 08:47:29 +02:00
|
|
|
if ARCH_IA64
|
2004-08-31 15:59:10 +02:00
|
|
|
noinst_PROGRAMS_arch = ia64-test-dyn1
|
2003-02-27 10:58:57 +01:00
|
|
|
check_SCRIPTS_arch = run-ia64-test-dyn1
|
2004-05-06 22:26:29 +02:00
|
|
|
check_PROGRAMS_arch = Gia64-test-stack Lia64-test-stack \
|
|
|
|
Gia64-test-nat Lia64-test-nat \
|
|
|
|
Gia64-test-rbs Lia64-test-rbs \
|
2004-08-31 15:59:10 +02:00
|
|
|
Gia64-test-readonly Lia64-test-readonly \
|
|
|
|
ia64-test-setjmp ia64-test-sig
|
2007-08-02 17:59:43 +02:00
|
|
|
else
|
|
|
|
if ARCH_PPC64
|
2007-08-07 04:23:42 +02:00
|
|
|
if USE_ALTIVEC
|
|
|
|
noinst_PROGRAMS_arch_altivec = ppc64-test-altivec ppc64-test-wchar
|
|
|
|
endif #USE_ALTIVEC
|
|
|
|
noinst_PROGRAMS_arch = $(noinst_PROGRAMS_arch_altivec) ppc64-test-wchar
|
2007-08-02 17:59:43 +02:00
|
|
|
endif #ARCH_PPC64
|
|
|
|
endif #ARCH_IA64
|
2004-10-15 15:48:38 +02:00
|
|
|
check_SCRIPTS_cdep = run-ptrace-mapper run-ptrace-misc
|
2004-09-15 13:37:04 +02:00
|
|
|
check_PROGRAMS_cdep = Gtest-bt Ltest-bt Gtest-exc Ltest-exc \
|
|
|
|
Gtest-init Ltest-init \
|
|
|
|
Gtest-concurrent Ltest-concurrent \
|
|
|
|
Gtest-resume-sig Ltest-resume-sig \
|
|
|
|
Gtest-dyn1 Ltest-dyn1 \
|
|
|
|
test-async-sig test-flush-cache test-init-remote \
|
2009-03-15 19:24:43 +01:00
|
|
|
test-mem test-setjmp test-ptrace \
|
2009-11-25 00:18:48 +01:00
|
|
|
Ltest-nomalloc rs-race
|
2004-10-15 15:48:38 +02:00
|
|
|
noinst_PROGRAMS_cdep = forker mapper test-ptrace-misc test-varargs \
|
|
|
|
Gperf-simple Lperf-simple
|
2004-01-21 07:36:35 +01:00
|
|
|
|
2010-04-12 21:08:21 +02:00
|
|
|
if SUPPORT_CXX_EXCEPTIONS
|
|
|
|
check_PROGRAMS_cdep += Ltest-cxx-exceptions
|
|
|
|
endif
|
|
|
|
|
2004-01-21 07:36:35 +01:00
|
|
|
perf: perf-startup Gperf-simple Lperf-simple
|
|
|
|
@echo "########## Basic performance of generic libunwind:"
|
|
|
|
@./Gperf-simple
|
|
|
|
@echo "########## Basic performance of local-only libunwind:"
|
|
|
|
@./Lperf-simple
|
|
|
|
@echo "########## Startup overhead:"
|
|
|
|
@$(srcdir)/perf-startup @arch@
|
|
|
|
|
2002-04-03 08:51:34 +02:00
|
|
|
endif
|
|
|
|
|
2003-02-27 10:58:57 +01:00
|
|
|
check_PROGRAMS = $(check_PROGRAMS_common) $(check_PROGRAMS_cdep) \
|
|
|
|
$(check_PROGRAMS_arch)
|
|
|
|
check_SCRIPTS = $(check_SCRIPTS_common) $(check_SCRIPTS_cdep) \
|
|
|
|
$(check_SCRIPTS_arch)
|
2003-01-23 19:47:51 +01:00
|
|
|
|
2003-02-27 10:58:57 +01:00
|
|
|
|
|
|
|
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
|
2003-01-23 19:47:51 +01:00
|
|
|
|
|
|
|
noinst_PROGRAMS = $(noinst_PROGRAMS_common) $(noinst_PROGRAMS_cdep) \
|
|
|
|
$(noinst_PROGRAMS_arch)
|
|
|
|
|
2004-05-06 22:26:29 +02:00
|
|
|
Lia64_test_readonly_SOURCES = Lia64-test-readonly.c ia64-test-readonly-asm.S
|
|
|
|
Gia64_test_readonly_SOURCES = Gia64-test-readonly.c ia64-test-readonly-asm.S
|
2003-03-06 07:14:36 +01:00
|
|
|
Lia64_test_stack_SOURCES = Lia64-test-stack.c ia64-test-stack-asm.S \
|
|
|
|
ia64-test-stack.h
|
|
|
|
Gia64_test_stack_SOURCES = Gia64-test-stack.c ia64-test-stack-asm.S \
|
|
|
|
ia64-test-stack.h
|
|
|
|
Lia64_test_rbs_SOURCES = Lia64-test-rbs.c ia64-test-rbs-asm.S ia64-test-rbs.h
|
|
|
|
Gia64_test_rbs_SOURCES = Gia64-test-rbs.c ia64-test-rbs-asm.S ia64-test-rbs.h
|
2004-02-14 08:53:31 +01:00
|
|
|
Lia64_test_nat_SOURCES = Lia64-test-nat.c ia64-test-nat-asm.S
|
|
|
|
Gia64_test_nat_SOURCES = Gia64-test-nat.c ia64-test-nat-asm.S
|
2003-03-27 05:29:07 +01:00
|
|
|
ia64_test_dyn1_SOURCES = ia64-test-dyn1.c ia64-dyn-asm.S flush-cache.S
|
2007-08-02 17:59:43 +02:00
|
|
|
ppc64_test_altivec_SOURCES = ppc64-test-altivec.c ppc64-test-altivec-utils.c
|
|
|
|
ppc64_test_wchar_SOURCES = ppc64-test-wchar.c
|
2003-03-28 08:43:22 +01:00
|
|
|
Gtest_init_SOURCES = Gtest-init.cxx
|
|
|
|
Ltest_init_SOURCES = Ltest-init.cxx
|
2010-04-12 21:08:21 +02:00
|
|
|
Ltest_cxx_exceptions_SOURCES = Ltest-cxx-exceptions.cxx
|
|
|
|
|
2003-03-27 05:29:07 +01:00
|
|
|
Gtest_dyn1_SOURCES = Gtest-dyn1.c flush-cache.S
|
|
|
|
Ltest_dyn1_SOURCES = Ltest-dyn1.c flush-cache.S
|
2004-01-21 07:36:35 +01:00
|
|
|
test_static_link_SOURCES = test-static-link-loc.c test-static-link-gen.c
|
2004-05-05 00:24:50 +02:00
|
|
|
test_static_link_LDFLAGS = -static
|
|
|
|
forker_LDFLAGS = -static
|
2004-10-15 15:48:38 +02:00
|
|
|
Gtest_bt_SOURCES = Gtest-bt.c ident.c
|
|
|
|
Ltest_bt_SOURCES = Ltest-bt.c ident.c
|
|
|
|
test_ptrace_misc_SOURCES = test-ptrace-misc.c ident.c
|
2003-01-23 11:04:09 +01:00
|
|
|
|
2005-05-03 11:13:17 +02:00
|
|
|
LIBUNWIND = ../src/libunwind-$(arch).la $(LIBUNWIND_local)
|
2003-11-20 02:10:03 +01:00
|
|
|
LDADD = $(LIBUNWIND)
|
2003-02-08 11:10:59 +01:00
|
|
|
|
2005-05-03 11:13:17 +02:00
|
|
|
test_setjmp_LDADD = ../src/libunwind-setjmp.la $(LIBUNWIND_local)
|
|
|
|
ia64_test_setjmp_LDADD = ../src/libunwind-setjmp.la $(LIBUNWIND_local)
|
2004-01-03 11:50:24 +01:00
|
|
|
test_ptrace_LDADD = ../src/libunwind-ptrace.a $(LIBUNWIND)
|
2003-11-20 02:10:03 +01:00
|
|
|
Ltest_concurrent_LDADD = $(LIBUNWIND) -lpthread
|
|
|
|
Gtest_concurrent_LDADD = $(LIBUNWIND) -lpthread
|
2004-04-01 10:11:21 +02:00
|
|
|
test_async_sig_LDADD = $(LIBUNWIND) -lpthread
|
2009-11-25 00:18:48 +01:00
|
|
|
rs_race_LDADD = $(LIBUNWIND) -lpthread
|
2009-03-15 19:24:43 +01:00
|
|
|
|
2010-03-07 11:46:05 +01:00
|
|
|
LDADD += @DLLIB@
|
2009-03-15 19:24:43 +01:00
|
|
|
Ltest_nomalloc_SOURCES = Ltest-nomalloc.c
|
|
|
|
|