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 \ |
Arun Sharma | 982d590 | 2010-08-04 15:11:19 -0700 | [diff] [blame] | 4 | run-check-namespace check-namespace.sh.in Gtest-nomalloc.c |
mostang.com!davidm | 623c4cb | 2003-03-06 06:14:36 +0000 | [diff] [blame] | 5 | |
Zachary T Welch | 651e9bb | 2010-10-28 16:25:51 -0700 | [diff] [blame] | 6 | MAINTAINERCLEANFILES = Makefile.in |
| 7 | |
hp.com!davidm | 0f1a0c4 | 2002-04-03 06:51:34 +0000 | [diff] [blame] | 8 | noinst_PROGRAMS_common = |
homeip.net!davidm | 3eb739d | 2004-08-19 14:03:54 +0000 | [diff] [blame] | 9 | check_PROGRAMS_common = test-proc-info test-static-link \ |
bea.com!thallgre | 42a90f1 | 2004-08-18 15:16:46 +0000 | [diff] [blame] | 10 | test-strerror |
mostang.com!davidm | 5a468e3 | 2004-05-05 01:58:44 +0000 | [diff] [blame] | 11 | check_SCRIPTS_common = run-check-namespace |
hp.com!davidm | 0f1a0c4 | 2002-04-03 06:51:34 +0000 | [diff] [blame] | 12 | |
| 13 | if REMOTE_ONLY |
mostang.com!davidm | 405a7d8 | 2003-02-27 09:58:57 +0000 | [diff] [blame] | 14 | check_SCRIPTS_cdep = |
| 15 | check_PROGRAMS_cdep = |
mostang.com!davidm | 282413e | 2003-01-23 18:47:51 +0000 | [diff] [blame] | 16 | noinst_PROGRAMS_cdep = $(noinst_PROGRAMS_common) |
mostang.com!davidm | 0378f95 | 2004-01-21 06:36:35 +0000 | [diff] [blame] | 17 | |
| 18 | perf: |
| 19 | |
hp.com!davidm | 0f1a0c4 | 2002-04-03 06:51:34 +0000 | [diff] [blame] | 20 | else |
Zachary T Welch | 7e767a2 | 2010-11-08 17:16:34 -0800 | [diff] [blame] | 21 | LIBUNWIND_local = $(top_builddir)/src/libunwind.la |
mostang.com!davidm | 053cda2 | 2002-04-25 06:47:29 +0000 | [diff] [blame] | 22 | if ARCH_IA64 |
hp.com!davidm | 8f2272c | 2004-08-31 13:59:10 +0000 | [diff] [blame] | 23 | noinst_PROGRAMS_arch = ia64-test-dyn1 |
mostang.com!davidm | 405a7d8 | 2003-02-27 09:58:57 +0000 | [diff] [blame] | 24 | check_SCRIPTS_arch = run-ia64-test-dyn1 |
hp.com!davidm | 86bef15 | 2004-05-06 20:26:29 +0000 | [diff] [blame] | 25 | check_PROGRAMS_arch = Gia64-test-stack Lia64-test-stack \ |
| 26 | Gia64-test-nat Lia64-test-nat \ |
| 27 | Gia64-test-rbs Lia64-test-rbs \ |
hp.com!davidm | 8f2272c | 2004-08-31 13:59:10 +0000 | [diff] [blame] | 28 | Gia64-test-readonly Lia64-test-readonly \ |
| 29 | ia64-test-setjmp ia64-test-sig |
Jose Flavio Aguilar Paulino | b33021e | 2007-08-02 09:59:43 -0600 | [diff] [blame] | 30 | else |
| 31 | if ARCH_PPC64 |
Arun Sharma | 0613d4c | 2011-03-22 08:40:49 -0700 | [diff] [blame] | 32 | if USE_ALTIVEC |
Jose Flavio Aguilar Paulino | a1e7ee4 | 2007-08-06 20:23:42 -0600 | [diff] [blame] | 33 | noinst_PROGRAMS_arch_altivec = ppc64-test-altivec ppc64-test-wchar |
| 34 | endif #USE_ALTIVEC |
Arun Sharma | 0613d4c | 2011-03-22 08:40:49 -0700 | [diff] [blame] | 35 | noinst_PROGRAMS_arch = $(noinst_PROGRAMS_arch_altivec) ppc64-test-wchar |
Jose Flavio Aguilar Paulino | b33021e | 2007-08-02 09:59:43 -0600 | [diff] [blame] | 36 | endif #ARCH_PPC64 |
| 37 | endif #ARCH_IA64 |
hp.com!davidm | b4f1459 | 2004-10-15 13:48:38 +0000 | [diff] [blame] | 38 | check_SCRIPTS_cdep = run-ptrace-mapper run-ptrace-misc |
hp.com!davidm | dfa582a | 2004-09-15 11:37:04 +0000 | [diff] [blame] | 39 | check_PROGRAMS_cdep = Gtest-bt Ltest-bt Gtest-exc Ltest-exc \ |
| 40 | Gtest-init Ltest-init \ |
| 41 | Gtest-concurrent Ltest-concurrent \ |
| 42 | Gtest-resume-sig Ltest-resume-sig \ |
| 43 | Gtest-dyn1 Ltest-dyn1 \ |
Lassi Tuura | 9e98f15 | 2011-03-19 10:00:48 +0100 | [diff] [blame^] | 44 | Gtest-trace Ltest-trace \ |
hp.com!davidm | dfa582a | 2004-09-15 11:37:04 +0000 | [diff] [blame] | 45 | test-async-sig test-flush-cache test-init-remote \ |
Arun Sharma | 576b59e | 2009-03-15 11:24:43 -0700 | [diff] [blame] | 46 | test-mem test-setjmp test-ptrace \ |
Paul Pluzhnikov | 9626d66 | 2009-11-24 15:18:48 -0800 | [diff] [blame] | 47 | Ltest-nomalloc rs-race |
hp.com!davidm | b4f1459 | 2004-10-15 13:48:38 +0000 | [diff] [blame] | 48 | noinst_PROGRAMS_cdep = forker mapper test-ptrace-misc test-varargs \ |
| 49 | Gperf-simple Lperf-simple |
mostang.com!davidm | 0378f95 | 2004-01-21 06:36:35 +0000 | [diff] [blame] | 50 | |
Arun Sharma | c2d7804 | 2010-04-12 12:08:21 -0700 | [diff] [blame] | 51 | if SUPPORT_CXX_EXCEPTIONS |
| 52 | check_PROGRAMS_cdep += Ltest-cxx-exceptions |
| 53 | endif |
| 54 | |
mostang.com!davidm | 0378f95 | 2004-01-21 06:36:35 +0000 | [diff] [blame] | 55 | perf: perf-startup Gperf-simple Lperf-simple |
| 56 | @echo "########## Basic performance of generic libunwind:" |
| 57 | @./Gperf-simple |
| 58 | @echo "########## Basic performance of local-only libunwind:" |
| 59 | @./Lperf-simple |
| 60 | @echo "########## Startup overhead:" |
| 61 | @$(srcdir)/perf-startup @arch@ |
| 62 | |
hp.com!davidm | 0f1a0c4 | 2002-04-03 06:51:34 +0000 | [diff] [blame] | 63 | endif |
| 64 | |
mostang.com!davidm | 405a7d8 | 2003-02-27 09:58:57 +0000 | [diff] [blame] | 65 | check_PROGRAMS = $(check_PROGRAMS_common) $(check_PROGRAMS_cdep) \ |
| 66 | $(check_PROGRAMS_arch) |
| 67 | check_SCRIPTS = $(check_SCRIPTS_common) $(check_SCRIPTS_cdep) \ |
| 68 | $(check_SCRIPTS_arch) |
mostang.com!davidm | 282413e | 2003-01-23 18:47:51 +0000 | [diff] [blame] | 69 | |
mostang.com!davidm | 405a7d8 | 2003-02-27 09:58:57 +0000 | [diff] [blame] | 70 | |
| 71 | TESTS = $(check_PROGRAMS) $(check_SCRIPTS) |
mostang.com!davidm | 282413e | 2003-01-23 18:47:51 +0000 | [diff] [blame] | 72 | |
| 73 | noinst_PROGRAMS = $(noinst_PROGRAMS_common) $(noinst_PROGRAMS_cdep) \ |
| 74 | $(noinst_PROGRAMS_arch) |
| 75 | |
hp.com!davidm | 86bef15 | 2004-05-06 20:26:29 +0000 | [diff] [blame] | 76 | Lia64_test_readonly_SOURCES = Lia64-test-readonly.c ia64-test-readonly-asm.S |
| 77 | 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] | 78 | Lia64_test_stack_SOURCES = Lia64-test-stack.c ia64-test-stack-asm.S \ |
| 79 | ia64-test-stack.h |
| 80 | Gia64_test_stack_SOURCES = Gia64-test-stack.c ia64-test-stack-asm.S \ |
| 81 | ia64-test-stack.h |
| 82 | Lia64_test_rbs_SOURCES = Lia64-test-rbs.c ia64-test-rbs-asm.S ia64-test-rbs.h |
| 83 | 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] | 84 | Lia64_test_nat_SOURCES = Lia64-test-nat.c ia64-test-nat-asm.S |
| 85 | Gia64_test_nat_SOURCES = Gia64-test-nat.c ia64-test-nat-asm.S |
mostang.com!davidm | 0231ae5 | 2003-03-27 04:29:07 +0000 | [diff] [blame] | 86 | ia64_test_dyn1_SOURCES = ia64-test-dyn1.c ia64-dyn-asm.S flush-cache.S |
Jose Flavio Aguilar Paulino | b33021e | 2007-08-02 09:59:43 -0600 | [diff] [blame] | 87 | ppc64_test_altivec_SOURCES = ppc64-test-altivec.c ppc64-test-altivec-utils.c |
| 88 | ppc64_test_wchar_SOURCES = ppc64-test-wchar.c |
mostang.com!davidm | 9fe5e68 | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 89 | Gtest_init_SOURCES = Gtest-init.cxx |
| 90 | Ltest_init_SOURCES = Ltest-init.cxx |
Arun Sharma | c2d7804 | 2010-04-12 12:08:21 -0700 | [diff] [blame] | 91 | Ltest_cxx_exceptions_SOURCES = Ltest-cxx-exceptions.cxx |
| 92 | |
mostang.com!davidm | 0231ae5 | 2003-03-27 04:29:07 +0000 | [diff] [blame] | 93 | Gtest_dyn1_SOURCES = Gtest-dyn1.c flush-cache.S |
| 94 | Ltest_dyn1_SOURCES = Ltest-dyn1.c flush-cache.S |
mostang.com!davidm | 0378f95 | 2004-01-21 06:36:35 +0000 | [diff] [blame] | 95 | 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] | 96 | test_static_link_LDFLAGS = -static |
| 97 | forker_LDFLAGS = -static |
hp.com!davidm | b4f1459 | 2004-10-15 13:48:38 +0000 | [diff] [blame] | 98 | Gtest_bt_SOURCES = Gtest-bt.c ident.c |
| 99 | Ltest_bt_SOURCES = Ltest-bt.c ident.c |
| 100 | test_ptrace_misc_SOURCES = test-ptrace-misc.c ident.c |
Arun Sharma | 576b59e | 2009-03-15 11:24:43 -0700 | [diff] [blame] | 101 | Ltest_nomalloc_SOURCES = Ltest-nomalloc.c |
Lassi Tuura | 9e98f15 | 2011-03-19 10:00:48 +0100 | [diff] [blame^] | 102 | Gtest_trace_SOURCES = Gtest-trace.c ident.c |
| 103 | Ltest_trace_SOURCES = Ltest-trace.c ident.c |
Arun Sharma | 576b59e | 2009-03-15 11:24:43 -0700 | [diff] [blame] | 104 | |
Arun Sharma | 0613d4c | 2011-03-22 08:40:49 -0700 | [diff] [blame] | 105 | LIBUNWIND = $(top_builddir)/src/libunwind-$(arch).la $(LIBUNWIND_local) |
Zachary T Welch | 7e767a2 | 2010-11-08 17:16:34 -0800 | [diff] [blame] | 106 | LIBUNWIND_ptrace = $(top_builddir)/src/libunwind-ptrace.a |
Arun Sharma | 5769551 | 2011-03-22 08:34:33 -0700 | [diff] [blame] | 107 | |
| 108 | if USE_ELF32 |
| 109 | LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elf32.la |
| 110 | endif |
| 111 | if USE_ELF64 |
| 112 | LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elf64.la |
| 113 | endif |
| 114 | if USE_ELFXX |
| 115 | LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elfxx.la |
| 116 | endif |
| 117 | |
Ken Werner | c2cc122 | 2011-03-02 17:40:06 +0100 | [diff] [blame] | 118 | LIBUNWIND_setjmp = $(top_builddir)/src/libunwind-setjmp.la \ |
Arun Sharma | 5769551 | 2011-03-22 08:34:33 -0700 | [diff] [blame] | 119 | $(LIBUNWIND_ELF) $(LIBUNWIND) |
Zachary T Welch | 7e767a2 | 2010-11-08 17:16:34 -0800 | [diff] [blame] | 120 | |
Ken Werner | c2cc122 | 2011-03-02 17:40:06 +0100 | [diff] [blame] | 121 | test_async_sig_LDADD = $(LIBUNWIND) -lpthread |
| 122 | test_flush_cache_LDADD = $(LIBUNWIND) |
| 123 | test_init_remote_LDADD = $(LIBUNWIND) |
| 124 | test_mem_LDADD = $(LIBUNWIND) |
| 125 | test_ptrace_LDADD = $(LIBUNWIND_ptrace) $(LIBUNWIND) |
| 126 | test_proc_info_LDADD = $(LIBUNWIND) |
| 127 | test_static_link_LDADD = $(LIBUNWIND) |
| 128 | test_strerror_LDADD = $(LIBUNWIND) |
| 129 | rs_race_LDADD = $(LIBUNWIND) -lpthread |
Konstantin Belousov | 04fc88f | 2011-03-22 21:29:40 +0200 | [diff] [blame] | 130 | test_varargs_LDADD = @BACKTRACELIB@ |
Zachary T Welch | 7e767a2 | 2010-11-08 17:16:34 -0800 | [diff] [blame] | 131 | |
Ken Werner | c2cc122 | 2011-03-02 17:40:06 +0100 | [diff] [blame] | 132 | Gtest_bt_LDADD = $(LIBUNWIND) |
| 133 | Gtest_concurrent_LDADD = $(LIBUNWIND) -lpthread |
| 134 | Gtest_dyn1_LDADD = $(LIBUNWIND) |
| 135 | Gtest_exc_LDADD = $(LIBUNWIND) |
| 136 | Gtest_init_LDADD = $(LIBUNWIND) |
| 137 | Gtest_resume_sig_LDADD = $(LIBUNWIND) |
| 138 | Gperf_simple_LDADD = $(LIBUNWIND) |
Zachary T Welch | 7e767a2 | 2010-11-08 17:16:34 -0800 | [diff] [blame] | 139 | |
| 140 | Ltest_bt_LDADD = $(LIBUNWIND_local) |
| 141 | Ltest_concurrent_LDADD = $(LIBUNWIND_local) -lpthread |
| 142 | Ltest_dyn1_LDADD = $(LIBUNWIND_local) |
| 143 | Ltest_exc_LDADD = $(LIBUNWIND_local) |
| 144 | Ltest_init_LDADD = $(LIBUNWIND_local) |
| 145 | Ltest_nomalloc_LDADD = $(LIBUNWIND_local) @DLLIB@ |
Ken Werner | c2cc122 | 2011-03-02 17:40:06 +0100 | [diff] [blame] | 146 | Ltest_resume_sig_LDADD = $(LIBUNWIND) |
Zachary T Welch | 7e767a2 | 2010-11-08 17:16:34 -0800 | [diff] [blame] | 147 | Lperf_simple_LDADD = $(LIBUNWIND_local) |
| 148 | |
Ken Werner | c2cc122 | 2011-03-02 17:40:06 +0100 | [diff] [blame] | 149 | test_setjmp_LDADD = $(LIBUNWIND_setjmp) |
| 150 | ia64_test_setjmp_LDADD = $(LIBUNWIND_setjmp) |