hp.com!davidm | 0f1a0c4 | 2002-04-03 06:51:34 +0000 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir)/include |
| 2 | |
hp.com!davidm | b4f1459 | 2004-10-15 13:48:38 +0000 | [diff] [blame] | 3 | EXTRA_DIST = run-ia64-test-dyn1 run-ptrace-mapper run-ptrace-misc \ |
Martin Milata | 0f9a540 | 2012-05-17 17:00:59 +0200 | [diff] [blame] | 4 | run-check-namespace run-coredump-unwind \ |
Martin Milata | 4ab9e5d | 2012-08-08 14:08:49 +0200 | [diff] [blame] | 5 | run-coredump-unwind-mdi check-namespace.sh.in \ |
Tommi Rantala | 7263a97 | 2012-09-17 14:28:46 +0300 | [diff] [blame] | 6 | Gtest-nomalloc.c |
mostang.com!davidm | 623c4cb | 2003-03-06 06:14:36 +0000 | [diff] [blame] | 7 | |
Zachary T Welch | 651e9bb | 2010-10-28 16:25:51 -0700 | [diff] [blame] | 8 | MAINTAINERCLEANFILES = Makefile.in |
| 9 | |
hp.com!davidm | 0f1a0c4 | 2002-04-03 06:51:34 +0000 | [diff] [blame] | 10 | noinst_PROGRAMS_common = |
homeip.net!davidm | 3eb739d | 2004-08-19 14:03:54 +0000 | [diff] [blame] | 11 | check_PROGRAMS_common = test-proc-info test-static-link \ |
bea.com!thallgre | 42a90f1 | 2004-08-18 15:16:46 +0000 | [diff] [blame] | 12 | test-strerror |
mostang.com!davidm | 5a468e3 | 2004-05-05 01:58:44 +0000 | [diff] [blame] | 13 | check_SCRIPTS_common = run-check-namespace |
hp.com!davidm | 0f1a0c4 | 2002-04-03 06:51:34 +0000 | [diff] [blame] | 14 | |
| 15 | if REMOTE_ONLY |
mostang.com!davidm | 405a7d8 | 2003-02-27 09:58:57 +0000 | [diff] [blame] | 16 | check_SCRIPTS_cdep = |
| 17 | check_PROGRAMS_cdep = |
mostang.com!davidm | 282413e | 2003-01-23 18:47:51 +0000 | [diff] [blame] | 18 | noinst_PROGRAMS_cdep = $(noinst_PROGRAMS_common) |
mostang.com!davidm | 0378f95 | 2004-01-21 06:36:35 +0000 | [diff] [blame] | 19 | |
| 20 | perf: |
| 21 | |
hp.com!davidm | 0f1a0c4 | 2002-04-03 06:51:34 +0000 | [diff] [blame] | 22 | else |
Zachary T Welch | 7e767a2 | 2010-11-08 17:16:34 -0800 | [diff] [blame] | 23 | LIBUNWIND_local = $(top_builddir)/src/libunwind.la |
mostang.com!davidm | 053cda2 | 2002-04-25 06:47:29 +0000 | [diff] [blame] | 24 | if ARCH_IA64 |
hp.com!davidm | 8f2272c | 2004-08-31 13:59:10 +0000 | [diff] [blame] | 25 | noinst_PROGRAMS_arch = ia64-test-dyn1 |
mostang.com!davidm | 405a7d8 | 2003-02-27 09:58:57 +0000 | [diff] [blame] | 26 | check_SCRIPTS_arch = run-ia64-test-dyn1 |
hp.com!davidm | 86bef15 | 2004-05-06 20:26:29 +0000 | [diff] [blame] | 27 | check_PROGRAMS_arch = Gia64-test-stack Lia64-test-stack \ |
| 28 | Gia64-test-nat Lia64-test-nat \ |
| 29 | Gia64-test-rbs Lia64-test-rbs \ |
hp.com!davidm | 8f2272c | 2004-08-31 13:59:10 +0000 | [diff] [blame] | 30 | Gia64-test-readonly Lia64-test-readonly \ |
| 31 | ia64-test-setjmp ia64-test-sig |
Cody P Schafer | b45c27b | 2012-09-14 17:11:52 -0700 | [diff] [blame] | 32 | else #!ARCH_IA64 |
Jose Flavio Aguilar Paulino | b33021e | 2007-08-02 09:59:43 -0600 | [diff] [blame] | 33 | if ARCH_PPC64 |
Arun Sharma | 0613d4c | 2011-03-22 08:40:49 -0700 | [diff] [blame] | 34 | if USE_ALTIVEC |
Cody P Schafer | b45c27b | 2012-09-14 17:11:52 -0700 | [diff] [blame] | 35 | noinst_PROGRAMS_arch = ppc64-test-altivec |
Jose Flavio Aguilar Paulino | a1e7ee4 | 2007-08-06 20:23:42 -0600 | [diff] [blame] | 36 | endif #USE_ALTIVEC |
Jose Flavio Aguilar Paulino | b33021e | 2007-08-02 09:59:43 -0600 | [diff] [blame] | 37 | endif #ARCH_PPC64 |
Cody P Schafer | b45c27b | 2012-09-14 17:11:52 -0700 | [diff] [blame] | 38 | endif #!ARCH_IA64 |
hp.com!davidm | b4f1459 | 2004-10-15 13:48:38 +0000 | [diff] [blame] | 39 | check_SCRIPTS_cdep = run-ptrace-mapper run-ptrace-misc |
hp.com!davidm | dfa582a | 2004-09-15 11:37:04 +0000 | [diff] [blame] | 40 | check_PROGRAMS_cdep = Gtest-bt Ltest-bt Gtest-exc Ltest-exc \ |
| 41 | Gtest-init Ltest-init \ |
| 42 | Gtest-concurrent Ltest-concurrent \ |
| 43 | Gtest-resume-sig Ltest-resume-sig \ |
Tommi Rantala | 5b55e55 | 2012-08-10 10:54:09 +0300 | [diff] [blame] | 44 | Gtest-resume-sig-rt Ltest-resume-sig-rt \ |
hp.com!davidm | dfa582a | 2004-09-15 11:37:04 +0000 | [diff] [blame] | 45 | Gtest-dyn1 Ltest-dyn1 \ |
Lassi Tuura | 9e98f15 | 2011-03-19 10:00:48 +0100 | [diff] [blame] | 46 | Gtest-trace Ltest-trace \ |
hp.com!davidm | dfa582a | 2004-09-15 11:37:04 +0000 | [diff] [blame] | 47 | test-async-sig test-flush-cache test-init-remote \ |
Tommi Rantala | be230ad | 2012-09-14 14:29:02 +0300 | [diff] [blame] | 48 | test-mem test-setjmp test-ptrace Ltest-varargs \ |
Tommi Rantala | 643fc92 | 2012-09-17 14:06:05 +0300 | [diff] [blame] | 49 | Ltest-nomalloc Ltest-nocalloc Lrs-race |
Martin Milata | 0f9a540 | 2012-05-17 17:00:59 +0200 | [diff] [blame] | 50 | noinst_PROGRAMS_cdep = forker crasher mapper test-ptrace-misc \ |
Sven Neumann | f195c9a | 2011-08-19 10:16:51 +0200 | [diff] [blame] | 51 | Gperf-simple Lperf-simple |
| 52 | |
Tommi Rantala | 8203c95 | 2012-08-31 11:29:26 +0300 | [diff] [blame] | 53 | noinst_PROGRAMS_cdep += Gperf-trace Lperf-trace |
mostang.com!davidm | 0378f95 | 2004-01-21 06:36:35 +0000 | [diff] [blame] | 54 | |
Arun Sharma | c2d7804 | 2010-04-12 12:08:21 -0700 | [diff] [blame] | 55 | if SUPPORT_CXX_EXCEPTIONS |
| 56 | check_PROGRAMS_cdep += Ltest-cxx-exceptions |
| 57 | endif |
| 58 | |
Martin Milata | 0f9a540 | 2012-05-17 17:00:59 +0200 | [diff] [blame] | 59 | if OS_LINUX |
Cody P Schafer | 3a5d7ff | 2012-09-14 17:11:50 -0700 | [diff] [blame] | 60 | if BUILD_COREDUMP |
Martin Milata | 0f9a540 | 2012-05-17 17:00:59 +0200 | [diff] [blame] | 61 | check_SCRIPTS_cdep += run-coredump-unwind |
| 62 | noinst_PROGRAMS_cdep += test-coredump-unwind |
Martin Milata | 4ab9e5d | 2012-08-08 14:08:49 +0200 | [diff] [blame] | 63 | |
| 64 | if HAVE_LZMA |
| 65 | check_SCRIPTS_cdep += run-coredump-unwind-mdi |
Cody P Schafer | 3a5d7ff | 2012-09-14 17:11:50 -0700 | [diff] [blame] | 66 | endif # HAVE_LZMA |
| 67 | endif # BUILD_COREDUMP |
| 68 | endif # OS_LINUX |
Martin Milata | 0f9a540 | 2012-05-17 17:00:59 +0200 | [diff] [blame] | 69 | |
Arun Sharma | 741a5a2 | 2011-03-24 23:47:25 -0700 | [diff] [blame] | 70 | perf: perf-startup Gperf-simple Lperf-simple Lperf-trace |
mostang.com!davidm | 0378f95 | 2004-01-21 06:36:35 +0000 | [diff] [blame] | 71 | @echo "########## Basic performance of generic libunwind:" |
| 72 | @./Gperf-simple |
| 73 | @echo "########## Basic performance of local-only libunwind:" |
| 74 | @./Lperf-simple |
Arun Sharma | 741a5a2 | 2011-03-24 23:47:25 -0700 | [diff] [blame] | 75 | @echo "########## Performance of fast unwind:" |
| 76 | @./Lperf-trace |
mostang.com!davidm | 0378f95 | 2004-01-21 06:36:35 +0000 | [diff] [blame] | 77 | @echo "########## Startup overhead:" |
| 78 | @$(srcdir)/perf-startup @arch@ |
| 79 | |
hp.com!davidm | 0f1a0c4 | 2002-04-03 06:51:34 +0000 | [diff] [blame] | 80 | endif |
| 81 | |
mostang.com!davidm | 405a7d8 | 2003-02-27 09:58:57 +0000 | [diff] [blame] | 82 | check_PROGRAMS = $(check_PROGRAMS_common) $(check_PROGRAMS_cdep) \ |
| 83 | $(check_PROGRAMS_arch) |
| 84 | check_SCRIPTS = $(check_SCRIPTS_common) $(check_SCRIPTS_cdep) \ |
| 85 | $(check_SCRIPTS_arch) |
mostang.com!davidm | 282413e | 2003-01-23 18:47:51 +0000 | [diff] [blame] | 86 | |
mostang.com!davidm | 405a7d8 | 2003-02-27 09:58:57 +0000 | [diff] [blame] | 87 | |
| 88 | TESTS = $(check_PROGRAMS) $(check_SCRIPTS) |
mostang.com!davidm | 282413e | 2003-01-23 18:47:51 +0000 | [diff] [blame] | 89 | |
| 90 | noinst_PROGRAMS = $(noinst_PROGRAMS_common) $(noinst_PROGRAMS_cdep) \ |
| 91 | $(noinst_PROGRAMS_arch) |
| 92 | |
hp.com!davidm | 86bef15 | 2004-05-06 20:26:29 +0000 | [diff] [blame] | 93 | Lia64_test_readonly_SOURCES = Lia64-test-readonly.c ia64-test-readonly-asm.S |
| 94 | Gia64_test_readonly_SOURCES = Gia64-test-readonly.c ia64-test-readonly-asm.S |
mostang.com!davidm | 623c4cb | 2003-03-06 06:14:36 +0000 | [diff] [blame] | 95 | Lia64_test_stack_SOURCES = Lia64-test-stack.c ia64-test-stack-asm.S \ |
| 96 | ia64-test-stack.h |
| 97 | Gia64_test_stack_SOURCES = Gia64-test-stack.c ia64-test-stack-asm.S \ |
| 98 | ia64-test-stack.h |
| 99 | Lia64_test_rbs_SOURCES = Lia64-test-rbs.c ia64-test-rbs-asm.S ia64-test-rbs.h |
| 100 | Gia64_test_rbs_SOURCES = Gia64-test-rbs.c ia64-test-rbs-asm.S ia64-test-rbs.h |
mostang.com!davidm | 899323c | 2004-02-14 07:53:31 +0000 | [diff] [blame] | 101 | Lia64_test_nat_SOURCES = Lia64-test-nat.c ia64-test-nat-asm.S |
| 102 | Gia64_test_nat_SOURCES = Gia64-test-nat.c ia64-test-nat-asm.S |
Tommi Rantala | aed6c8b | 2012-08-30 14:18:33 +0300 | [diff] [blame] | 103 | ia64_test_dyn1_SOURCES = ia64-test-dyn1.c ia64-dyn-asm.S flush-cache.S \ |
| 104 | flush-cache.h |
Jose Flavio Aguilar Paulino | b33021e | 2007-08-02 09:59:43 -0600 | [diff] [blame] | 105 | ppc64_test_altivec_SOURCES = ppc64-test-altivec.c ppc64-test-altivec-utils.c |
mostang.com!davidm | 9fe5e68 | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 106 | Gtest_init_SOURCES = Gtest-init.cxx |
| 107 | Ltest_init_SOURCES = Ltest-init.cxx |
Arun Sharma | c2d7804 | 2010-04-12 12:08:21 -0700 | [diff] [blame] | 108 | Ltest_cxx_exceptions_SOURCES = Ltest-cxx-exceptions.cxx |
| 109 | |
Tommi Rantala | aed6c8b | 2012-08-30 14:18:33 +0300 | [diff] [blame] | 110 | Gtest_dyn1_SOURCES = Gtest-dyn1.c flush-cache.S flush-cache.h |
| 111 | Ltest_dyn1_SOURCES = Ltest-dyn1.c flush-cache.S flush-cache.h |
mostang.com!davidm | 0378f95 | 2004-01-21 06:36:35 +0000 | [diff] [blame] | 112 | test_static_link_SOURCES = test-static-link-loc.c test-static-link-gen.c |
mostang.com!davidm | 4de259b | 2004-05-04 22:24:50 +0000 | [diff] [blame] | 113 | test_static_link_LDFLAGS = -static |
| 114 | forker_LDFLAGS = -static |
hp.com!davidm | b4f1459 | 2004-10-15 13:48:38 +0000 | [diff] [blame] | 115 | Gtest_bt_SOURCES = Gtest-bt.c ident.c |
| 116 | Ltest_bt_SOURCES = Ltest-bt.c ident.c |
| 117 | test_ptrace_misc_SOURCES = test-ptrace-misc.c ident.c |
Arun Sharma | 576b59e | 2009-03-15 11:24:43 -0700 | [diff] [blame] | 118 | Ltest_nomalloc_SOURCES = Ltest-nomalloc.c |
Arun Sharma | d86155f | 2011-04-05 20:46:24 -0700 | [diff] [blame] | 119 | Ltest_nocalloc_SOURCES = Ltest-nocalloc.c |
Lassi Tuura | 9e98f15 | 2011-03-19 10:00:48 +0100 | [diff] [blame] | 120 | Gtest_trace_SOURCES = Gtest-trace.c ident.c |
| 121 | Ltest_trace_SOURCES = Ltest-trace.c ident.c |
Arun Sharma | 576b59e | 2009-03-15 11:24:43 -0700 | [diff] [blame] | 122 | |
Ken Werner | d589e20 | 2011-04-06 10:27:51 +0200 | [diff] [blame] | 123 | LIBUNWIND = $(top_builddir)/src/libunwind-$(arch).la |
Arun Sharma | 201bb87 | 2012-08-18 12:37:00 -0700 | [diff] [blame] | 124 | LIBUNWIND_ptrace = $(top_builddir)/src/libunwind-ptrace.la |
Martin Milata | de28c51 | 2012-06-29 11:28:29 +0200 | [diff] [blame] | 125 | LIBUNWIND_coredump = $(top_builddir)/src/libunwind-coredump.la |
Arun Sharma | 5769551 | 2011-03-22 08:34:33 -0700 | [diff] [blame] | 126 | |
| 127 | if USE_ELF32 |
| 128 | LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elf32.la |
| 129 | endif |
| 130 | if USE_ELF64 |
| 131 | LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elf64.la |
| 132 | endif |
| 133 | if USE_ELFXX |
| 134 | LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elfxx.la |
| 135 | endif |
| 136 | |
Ken Werner | c2cc122 | 2011-03-02 17:40:06 +0100 | [diff] [blame] | 137 | LIBUNWIND_setjmp = $(top_builddir)/src/libunwind-setjmp.la \ |
Arun Sharma | 5769551 | 2011-03-22 08:34:33 -0700 | [diff] [blame] | 138 | $(LIBUNWIND_ELF) $(LIBUNWIND) |
Zachary T Welch | 7e767a2 | 2010-11-08 17:16:34 -0800 | [diff] [blame] | 139 | |
Ken Werner | d589e20 | 2011-04-06 10:27:51 +0200 | [diff] [blame] | 140 | test_async_sig_LDADD = $(LIBUNWIND_local) -lpthread |
| 141 | test_flush_cache_LDADD = $(LIBUNWIND_local) |
Arun Sharma | 42b6708 | 2011-10-15 22:55:35 -0700 | [diff] [blame] | 142 | test_init_remote_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) |
| 143 | test_mem_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) |
Ken Werner | c2cc122 | 2011-03-02 17:40:06 +0100 | [diff] [blame] | 144 | test_ptrace_LDADD = $(LIBUNWIND_ptrace) $(LIBUNWIND) |
| 145 | test_proc_info_LDADD = $(LIBUNWIND) |
| 146 | test_static_link_LDADD = $(LIBUNWIND) |
| 147 | test_strerror_LDADD = $(LIBUNWIND) |
Tommi Rantala | 643fc92 | 2012-09-17 14:06:05 +0300 | [diff] [blame] | 148 | Lrs_race_LDADD = $(LIBUNWIND_local) -lpthread |
Tommi Rantala | be230ad | 2012-09-14 14:29:02 +0300 | [diff] [blame] | 149 | Ltest_varargs_LDADD = $(LIBUNWIND_local) |
Zachary T Welch | 7e767a2 | 2010-11-08 17:16:34 -0800 | [diff] [blame] | 150 | |
Arun Sharma | 42b6708 | 2011-10-15 22:55:35 -0700 | [diff] [blame] | 151 | Gtest_bt_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) |
| 152 | Gtest_concurrent_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) -lpthread |
Ken Werner | d589e20 | 2011-04-06 10:27:51 +0200 | [diff] [blame] | 153 | Gtest_dyn1_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) |
Arun Sharma | 42b6708 | 2011-10-15 22:55:35 -0700 | [diff] [blame] | 154 | Gtest_exc_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) |
| 155 | Gtest_init_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) |
| 156 | Gtest_resume_sig_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) |
Tommi Rantala | 5b55e55 | 2012-08-10 10:54:09 +0300 | [diff] [blame] | 157 | Gtest_resume_sig_rt_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) |
Arun Sharma | 1d8e2c1 | 2011-09-10 19:56:54 -0700 | [diff] [blame] | 158 | Gperf_simple_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) |
Ken Werner | d589e20 | 2011-04-06 10:27:51 +0200 | [diff] [blame] | 159 | Gtest_trace_LDADD=$(LIBUNWIND) $(LIBUNWIND_local) |
Arun Sharma | 1d8e2c1 | 2011-09-10 19:56:54 -0700 | [diff] [blame] | 160 | Gperf_trace_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) |
Zachary T Welch | 7e767a2 | 2010-11-08 17:16:34 -0800 | [diff] [blame] | 161 | |
| 162 | Ltest_bt_LDADD = $(LIBUNWIND_local) |
| 163 | Ltest_concurrent_LDADD = $(LIBUNWIND_local) -lpthread |
| 164 | Ltest_dyn1_LDADD = $(LIBUNWIND_local) |
| 165 | Ltest_exc_LDADD = $(LIBUNWIND_local) |
| 166 | Ltest_init_LDADD = $(LIBUNWIND_local) |
| 167 | Ltest_nomalloc_LDADD = $(LIBUNWIND_local) @DLLIB@ |
Arun Sharma | d86155f | 2011-04-05 20:46:24 -0700 | [diff] [blame] | 168 | Ltest_nocalloc_LDADD = $(LIBUNWIND_local) @DLLIB@ -lpthread |
Ken Werner | d589e20 | 2011-04-06 10:27:51 +0200 | [diff] [blame] | 169 | Ltest_resume_sig_LDADD = $(LIBUNWIND_local) |
Tommi Rantala | 5b55e55 | 2012-08-10 10:54:09 +0300 | [diff] [blame] | 170 | Ltest_resume_sig_rt_LDADD = $(LIBUNWIND_local) |
Zachary T Welch | 7e767a2 | 2010-11-08 17:16:34 -0800 | [diff] [blame] | 171 | Lperf_simple_LDADD = $(LIBUNWIND_local) |
Arun Sharma | 7ff83c0 | 2011-03-24 23:25:43 -0700 | [diff] [blame] | 172 | Ltest_trace_LDADD = $(LIBUNWIND_local) |
Arun Sharma | 741a5a2 | 2011-03-24 23:47:25 -0700 | [diff] [blame] | 173 | Lperf_trace_LDADD = $(LIBUNWIND_local) |
Zachary T Welch | 7e767a2 | 2010-11-08 17:16:34 -0800 | [diff] [blame] | 174 | |
Ken Werner | c2cc122 | 2011-03-02 17:40:06 +0100 | [diff] [blame] | 175 | test_setjmp_LDADD = $(LIBUNWIND_setjmp) |
| 176 | ia64_test_setjmp_LDADD = $(LIBUNWIND_setjmp) |
Arun Sharma | 7ff83c0 | 2011-03-24 23:25:43 -0700 | [diff] [blame] | 177 | |
Cody P Schafer | 3a5d7ff | 2012-09-14 17:11:50 -0700 | [diff] [blame] | 178 | if BUILD_COREDUMP |
Arun Sharma | f0bb806 | 2012-03-12 19:07:28 -0700 | [diff] [blame] | 179 | test_coredump_unwind_LDADD = $(LIBUNWIND_coredump) $(LIBUNWIND) |
Cody P Schafer | 3a5d7ff | 2012-09-14 17:11:50 -0700 | [diff] [blame] | 180 | endif |
Martin Milata | d93d96a | 2012-05-22 11:51:06 +0200 | [diff] [blame] | 181 | |
| 182 | Gia64_test_nat_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) |
| 183 | Gia64_test_stack_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) |
| 184 | Gia64_test_rbs_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) |
| 185 | Gia64_test_readonly_LDADD = $(LIBUNWIND) $(LIBUNWIND_local) |
| 186 | Lia64_test_nat_LDADD = $(LIBUNWIND_local) |
| 187 | Lia64_test_stack_LDADD = $(LIBUNWIND_local) |
| 188 | Lia64_test_rbs_LDADD = $(LIBUNWIND_local) |
| 189 | Lia64_test_readonly_LDADD = $(LIBUNWIND_local) |
| 190 | ia64_test_dyn1_LDADD = $(LIBUNWIND) |
| 191 | ia64_test_sig_LDADD = $(LIBUNWIND) |