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 \
|
2011-04-06 05:46:24 +02:00
|
|
|
run-check-namespace check-namespace.sh.in Gtest-nomalloc.c \
|
|
|
|
Gtest-nocalloc.c
|
2003-03-06 07:14:36 +01:00
|
|
|
|
2010-10-29 01:25:51 +02:00
|
|
|
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
|
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
|
2010-11-09 02:16:34 +01:00
|
|
|
LIBUNWIND_local = $(top_builddir)/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
|
2011-03-22 16:40:49 +01:00
|
|
|
if USE_ALTIVEC
|
2007-08-07 04:23:42 +02:00
|
|
|
noinst_PROGRAMS_arch_altivec = ppc64-test-altivec ppc64-test-wchar
|
|
|
|
endif #USE_ALTIVEC
|
2011-03-22 16:40:49 +01:00
|
|
|
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 \
|
2011-03-19 10:00:48 +01:00
|
|
|
Gtest-trace Ltest-trace \
|
2004-09-15 13:37:04 +02:00
|
|
|
test-async-sig test-flush-cache test-init-remote \
|
2009-03-15 19:24:43 +01:00
|
|
|
test-mem test-setjmp test-ptrace \
|
2011-04-06 05:46:24 +02:00
|
|
|
Ltest-nomalloc Ltest-nocalloc rs-race
|
2004-10-15 15:48:38 +02:00
|
|
|
noinst_PROGRAMS_cdep = forker mapper test-ptrace-misc test-varargs \
|
2011-03-25 07:47:25 +01:00
|
|
|
Gperf-simple Lperf-simple \
|
|
|
|
Gperf-trace Lperf-trace
|
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
|
|
|
|
|
2011-03-25 07:47:25 +01:00
|
|
|
perf: perf-startup Gperf-simple Lperf-simple Lperf-trace
|
2004-01-21 07:36:35 +01:00
|
|
|
@echo "########## Basic performance of generic libunwind:"
|
|
|
|
@./Gperf-simple
|
|
|
|
@echo "########## Basic performance of local-only libunwind:"
|
|
|
|
@./Lperf-simple
|
2011-03-25 07:47:25 +01:00
|
|
|
@echo "########## Performance of fast unwind:"
|
|
|
|
@./Lperf-trace
|
2004-01-21 07:36:35 +01:00
|
|
|
@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
|
2009-03-15 19:24:43 +01:00
|
|
|
Ltest_nomalloc_SOURCES = Ltest-nomalloc.c
|
2011-04-06 05:46:24 +02:00
|
|
|
Ltest_nocalloc_SOURCES = Ltest-nocalloc.c
|
2011-03-19 10:00:48 +01:00
|
|
|
Gtest_trace_SOURCES = Gtest-trace.c ident.c
|
|
|
|
Ltest_trace_SOURCES = Ltest-trace.c ident.c
|
2009-03-15 19:24:43 +01:00
|
|
|
|
2011-04-06 10:27:51 +02:00
|
|
|
LIBUNWIND = $(top_builddir)/src/libunwind-$(arch).la
|
2010-11-09 02:16:34 +01:00
|
|
|
LIBUNWIND_ptrace = $(top_builddir)/src/libunwind-ptrace.a
|
2011-03-22 16:34:33 +01:00
|
|
|
|
|
|
|
if USE_ELF32
|
|
|
|
LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elf32.la
|
|
|
|
endif
|
|
|
|
if USE_ELF64
|
|
|
|
LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elf64.la
|
|
|
|
endif
|
|
|
|
if USE_ELFXX
|
|
|
|
LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elfxx.la
|
|
|
|
endif
|
|
|
|
|
2011-03-02 17:40:06 +01:00
|
|
|
LIBUNWIND_setjmp = $(top_builddir)/src/libunwind-setjmp.la \
|
2011-03-22 16:34:33 +01:00
|
|
|
$(LIBUNWIND_ELF) $(LIBUNWIND)
|
2011-03-02 17:40:06 +01:00
|
|
|
|
2011-04-06 10:27:51 +02:00
|
|
|
test_async_sig_LDADD = $(LIBUNWIND_local) -lpthread
|
|
|
|
test_flush_cache_LDADD = $(LIBUNWIND_local)
|
2011-03-02 17:40:06 +01:00
|
|
|
test_init_remote_LDADD = $(LIBUNWIND)
|
|
|
|
test_mem_LDADD = $(LIBUNWIND)
|
|
|
|
test_ptrace_LDADD = $(LIBUNWIND_ptrace) $(LIBUNWIND)
|
|
|
|
test_proc_info_LDADD = $(LIBUNWIND)
|
|
|
|
test_static_link_LDADD = $(LIBUNWIND)
|
|
|
|
test_strerror_LDADD = $(LIBUNWIND)
|
|
|
|
rs_race_LDADD = $(LIBUNWIND) -lpthread
|
2011-03-22 20:29:40 +01:00
|
|
|
test_varargs_LDADD = @BACKTRACELIB@
|
2011-03-02 17:40:06 +01:00
|
|
|
|
|
|
|
Gtest_bt_LDADD = $(LIBUNWIND)
|
|
|
|
Gtest_concurrent_LDADD = $(LIBUNWIND) -lpthread
|
2011-04-06 10:27:51 +02:00
|
|
|
Gtest_dyn1_LDADD = $(LIBUNWIND) $(LIBUNWIND_local)
|
2011-03-02 17:40:06 +01:00
|
|
|
Gtest_exc_LDADD = $(LIBUNWIND)
|
|
|
|
Gtest_init_LDADD = $(LIBUNWIND)
|
|
|
|
Gtest_resume_sig_LDADD = $(LIBUNWIND)
|
|
|
|
Gperf_simple_LDADD = $(LIBUNWIND)
|
2011-04-06 10:27:51 +02:00
|
|
|
Gtest_trace_LDADD=$(LIBUNWIND) $(LIBUNWIND_local)
|
2011-03-25 07:47:25 +01:00
|
|
|
Gperf_trace_LDADD = $(LIBUNWIND)
|
2010-11-09 02:16:34 +01:00
|
|
|
|
|
|
|
Ltest_bt_LDADD = $(LIBUNWIND_local)
|
|
|
|
Ltest_concurrent_LDADD = $(LIBUNWIND_local) -lpthread
|
|
|
|
Ltest_dyn1_LDADD = $(LIBUNWIND_local)
|
|
|
|
Ltest_exc_LDADD = $(LIBUNWIND_local)
|
|
|
|
Ltest_init_LDADD = $(LIBUNWIND_local)
|
|
|
|
Ltest_nomalloc_LDADD = $(LIBUNWIND_local) @DLLIB@
|
2011-04-06 05:46:24 +02:00
|
|
|
Ltest_nocalloc_LDADD = $(LIBUNWIND_local) @DLLIB@ -lpthread
|
2011-04-06 10:27:51 +02:00
|
|
|
Ltest_resume_sig_LDADD = $(LIBUNWIND_local)
|
2010-11-09 02:16:34 +01:00
|
|
|
Lperf_simple_LDADD = $(LIBUNWIND_local)
|
2011-03-25 07:25:43 +01:00
|
|
|
Ltest_trace_LDADD = $(LIBUNWIND_local)
|
2011-03-25 07:47:25 +01:00
|
|
|
Lperf_trace_LDADD = $(LIBUNWIND_local)
|
2010-11-09 02:16:34 +01:00
|
|
|
|
2011-03-02 17:40:06 +01:00
|
|
|
test_setjmp_LDADD = $(LIBUNWIND_setjmp)
|
|
|
|
ia64_test_setjmp_LDADD = $(LIBUNWIND_setjmp)
|
2011-03-25 07:25:43 +01:00
|
|
|
|