homeip.net!davidm | ccdd644 | 2004-08-19 10:45:23 +0000 | [diff] [blame] | 1 | SOVERSION=7:0:0 # See comments at end of file. |
mostang.com!davidm | ad7f147 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2 | SETJMP_SO_VERSION=0:0:0 |
hp.com!davidm | ed32b99 | 2004-04-20 16:53:44 +0000 | [diff] [blame] | 3 | # |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame] | 4 | # Don't link with start-files since we don't use any constructors/destructors: |
hp.com!davidm | ed32b99 | 2004-04-20 16:53:44 +0000 | [diff] [blame] | 5 | # |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame] | 6 | COMMON_SO_LDFLAGS = -XCClinker -nostartfiles |
mostang.com!davidm | a6d51ee | 2002-04-25 06:47:29 +0000 | [diff] [blame] | 7 | |
Zachary T Welch | b07829b | 2010-11-08 17:16:37 -0800 | [diff] [blame] | 8 | lib_LIBRARIES = |
| 9 | lib_LTLIBRARIES = |
| 10 | if !REMOTE_ONLY |
| 11 | lib_LIBRARIES += libunwind-ptrace.a |
| 12 | lib_LTLIBRARIES += libunwind.la libunwind-setjmp.la |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 13 | endif |
mostang.com!davidm | ad7f147 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 14 | |
Zachary T Welch | 02dd6c4 | 2010-11-08 17:16:39 -0800 | [diff] [blame] | 15 | noinst_HEADERS = |
Zachary T Welch | 9de666d | 2010-11-08 17:16:38 -0800 | [diff] [blame] | 16 | noinst_LTLIBRARIES = |
| 17 | |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 18 | ### libunwind-ptrace: |
hp.com!davidm | 1738b3b | 2004-01-30 00:01:24 +0000 | [diff] [blame] | 19 | libunwind_ptrace_a_SOURCES = \ |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame] | 20 | ptrace/_UPT_elf.c \ |
hp.com!davidm | 1738b3b | 2004-01-30 00:01:24 +0000 | [diff] [blame] | 21 | ptrace/_UPT_accessors.c ptrace/_UPT_access_fpreg.c \ |
| 22 | ptrace/_UPT_access_mem.c ptrace/_UPT_access_reg.c \ |
| 23 | ptrace/_UPT_create.c ptrace/_UPT_destroy.c \ |
| 24 | ptrace/_UPT_find_proc_info.c ptrace/_UPT_get_dyn_info_list_addr.c \ |
| 25 | ptrace/_UPT_put_unwind_info.c ptrace/_UPT_get_proc_name.c \ |
| 26 | ptrace/_UPT_reg_offset.c ptrace/_UPT_resume.c |
Zachary T Welch | 02dd6c4 | 2010-11-08 17:16:39 -0800 | [diff] [blame] | 27 | noinst_HEADERS += ptrace/_UPT_internal.h |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 28 | |
| 29 | ### libunwind-setjmp: |
hp.com!davidm | ed32b99 | 2004-04-20 16:53:44 +0000 | [diff] [blame] | 30 | libunwind_setjmp_la_LDFLAGS = $(COMMON_SO_LDFLAGS) \ |
| 31 | -version-info $(SETJMP_SO_VERSION) |
Ken Werner | 4a89b88 | 2011-03-02 17:40:08 +0100 | [diff] [blame^] | 32 | |
| 33 | if USE_ELF32 |
| 34 | LIBUNWIND_ELF = libunwind-elf32.la |
| 35 | endif |
| 36 | if USE_ELF64 |
| 37 | LIBUNWIND_ELF = libunwind-elf64.la |
| 38 | endif |
| 39 | if USE_ELFXX |
| 40 | LIBUNWIND_ELF = libunwind-elfxx.la |
| 41 | endif |
| 42 | |
| 43 | libunwind_setjmp_la_LIBADD = $(LIBUNWIND_ELF) \ |
| 44 | libunwind-$(arch).la \ |
| 45 | libunwind.la -lc |
Zachary T Welch | 02dd6c4 | 2010-11-08 17:16:39 -0800 | [diff] [blame] | 46 | libunwind_setjmp_la_SOURCES = setjmp/longjmp.c \ |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame] | 47 | setjmp/siglongjmp.c |
Zachary T Welch | 02dd6c4 | 2010-11-08 17:16:39 -0800 | [diff] [blame] | 48 | noinst_HEADERS += setjmp/setjmp_i.h |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 49 | |
| 50 | ### libunwind: |
Zachary T Welch | 9de666d | 2010-11-08 17:16:38 -0800 | [diff] [blame] | 51 | libunwind_la_LIBADD = |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 52 | |
mostang.com!davidm | a6b0ccf | 2004-01-14 06:21:52 +0000 | [diff] [blame] | 53 | # List of arch-independent files needed by both local-only and generic |
| 54 | # libraries: |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 55 | libunwind_la_SOURCES_common = \ |
| 56 | $(libunwind_la_SOURCES_os) \ |
bea.com!thallgre | cb503ba | 2004-08-18 15:16:46 +0000 | [diff] [blame] | 57 | mi/init.c mi/flush_cache.c mi/mempool.c mi/strerror.c |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 58 | |
| 59 | # List of arch-independent files needed by generic library (libunwind-$ARCH): |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 60 | libunwind_la_SOURCES_generic = \ |
hp.com!davidm | 1738b3b | 2004-01-30 00:01:24 +0000 | [diff] [blame] | 61 | mi/Gdyn-extract.c mi/Gdyn-remote.c mi/Gfind_dynamic_proc_info.c \ |
| 62 | mi/Gget_accessors.c \ |
| 63 | mi/Gget_proc_info_by_ip.c mi/Gget_proc_name.c \ |
| 64 | mi/Gput_dynamic_unwind_info.c mi/Gdestroy_addr_space.c \ |
| 65 | mi/Gget_reg.c mi/Gset_reg.c \ |
| 66 | mi/Gget_fpreg.c mi/Gset_fpreg.c \ |
| 67 | mi/Gset_caching_policy.c |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 68 | |
Arun Sharma | 8081e82 | 2008-06-16 14:28:36 -0600 | [diff] [blame] | 69 | if SUPPORT_CXX_EXCEPTIONS |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 70 | libunwind_la_SOURCES_local_unwind = \ |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 71 | unwind/Backtrace.c unwind/DeleteException.c \ |
| 72 | unwind/FindEnclosingFunction.c unwind/ForcedUnwind.c \ |
| 73 | unwind/GetBSP.c unwind/GetCFA.c unwind/GetDataRelBase.c \ |
| 74 | unwind/GetGR.c unwind/GetIP.c unwind/GetLanguageSpecificData.c \ |
| 75 | unwind/GetRegionStart.c unwind/GetTextRelBase.c \ |
| 76 | unwind/RaiseException.c unwind/Resume.c \ |
Arun Sharma | 4b8404d | 2009-04-24 11:10:08 -0700 | [diff] [blame] | 77 | unwind/Resume_or_Rethrow.c unwind/SetGR.c unwind/SetIP.c \ |
| 78 | unwind/GetIPInfo.c |
Arun Sharma | 2fce541 | 2009-04-02 15:49:37 -0700 | [diff] [blame] | 79 | |
Arun Sharma | 5822fca | 2009-03-15 21:14:27 -0700 | [diff] [blame] | 80 | # _ReadULEB()/_ReadSLEB() are needed for Intel C++ 8.0 compatibility |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 81 | libunwind_la_SOURCES_os_linux_local = mi/_ReadULEB.c mi/_ReadSLEB.c |
Arun Sharma | 8081e82 | 2008-06-16 14:28:36 -0600 | [diff] [blame] | 82 | endif |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 83 | |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 84 | # List of arch-independent files needed by local-only library (libunwind): |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 85 | libunwind_la_SOURCES_local_nounwind = \ |
| 86 | $(libunwind_la_SOURCES_os_local) \ |
hp.com!davidm | a50c780 | 2004-03-30 01:56:19 +0000 | [diff] [blame] | 87 | mi/backtrace.c \ |
hp.com!davidm | 1738b3b | 2004-01-30 00:01:24 +0000 | [diff] [blame] | 88 | mi/dyn-cancel.c mi/dyn-info-list.c mi/dyn-register.c \ |
| 89 | mi/Ldyn-extract.c mi/Lfind_dynamic_proc_info.c \ |
| 90 | mi/Lget_accessors.c \ |
| 91 | mi/Lget_proc_info_by_ip.c mi/Lget_proc_name.c \ |
| 92 | mi/Lput_dynamic_unwind_info.c mi/Ldestroy_addr_space.c \ |
| 93 | mi/Lget_reg.c mi/Lset_reg.c \ |
| 94 | mi/Lget_fpreg.c mi/Lset_fpreg.c \ |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 95 | mi/Lset_caching_policy.c |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 96 | |
| 97 | libunwind_la_SOURCES_local = \ |
| 98 | $(libunwind_la_SOURCES_local_nounwind) \ |
| 99 | $(libunwind_la_SOURCES_local_unwind) |
hp.com!davidm | 0240946 | 2003-12-04 07:44:21 +0000 | [diff] [blame] | 100 | |
Zachary T Welch | 02dd6c4 | 2010-11-08 17:16:39 -0800 | [diff] [blame] | 101 | noinst_HEADERS += os-linux.h |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 102 | libunwind_la_SOURCES_os_linux = os-linux.c |
| 103 | |
| 104 | libunwind_la_SOURCES_os_hpux = os-hpux.c |
| 105 | |
| 106 | libunwind_la_SOURCES_os_freebsd = os-freebsd.c |
Konstantin Belousov | 2646e0f | 2010-03-06 17:47:52 +0200 | [diff] [blame] | 107 | |
Zachary T Welch | 9de666d | 2010-11-08 17:16:38 -0800 | [diff] [blame] | 108 | libunwind_dwarf_common_la_SOURCES = dwarf/global.c |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 109 | |
Zachary T Welch | 9de666d | 2010-11-08 17:16:38 -0800 | [diff] [blame] | 110 | libunwind_dwarf_local_la_SOURCES = \ |
| 111 | dwarf/Lexpr.c dwarf/Lfde.c dwarf/Lparser.c dwarf/Lpe.c dwarf/Lstep.c \ |
| 112 | dwarf/Lfind_proc_info-lsb.c |
| 113 | libunwind_dwarf_local_la_LIBADD = libunwind-dwarf-common.la |
hp.com!davidm | 2376081 | 2003-12-20 11:50:00 +0000 | [diff] [blame] | 114 | |
Zachary T Welch | 9de666d | 2010-11-08 17:16:38 -0800 | [diff] [blame] | 115 | libunwind_dwarf_generic_la_SOURCES = \ |
| 116 | dwarf/Gexpr.c dwarf/Gfde.c dwarf/Gparser.c dwarf/Gpe.c dwarf/Gstep.c \ |
| 117 | dwarf/Gfind_proc_info-lsb.c |
| 118 | libunwind_dwarf_generic_la_LIBADD = libunwind-dwarf-common.la |
| 119 | |
| 120 | if USE_DWARF |
| 121 | noinst_LTLIBRARIES += libunwind-dwarf-common.la libunwind-dwarf-generic.la |
| 122 | if !REMOTE_ONLY |
| 123 | noinst_LTLIBRARIES += libunwind-dwarf-local.la |
| 124 | endif |
| 125 | libunwind_la_LIBADD += libunwind-dwarf-local.la |
| 126 | endif |
mostang.com!davidm | 3ae9b81 | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 127 | |
Zachary T Welch | 02dd6c4 | 2010-11-08 17:16:39 -0800 | [diff] [blame] | 128 | noinst_HEADERS += elf32.h elf64.h elfxx.h |
| 129 | |
Zachary T Welch | ce847af | 2010-11-08 17:16:40 -0800 | [diff] [blame] | 130 | libunwind_elf32_la_SOURCES = elf32.c |
| 131 | libunwind_elf64_la_SOURCES = elf64.c |
| 132 | libunwind_elfxx_la_SOURCES = elfxx.c |
| 133 | |
Ken Werner | 4a89b88 | 2011-03-02 17:40:08 +0100 | [diff] [blame^] | 134 | noinst_LTLIBRARIES += $(LIBUNWIND_ELF) |
| 135 | libunwind_la_LIBADD += $(LIBUNWIND_ELF) |
Zachary T Welch | ce847af | 2010-11-08 17:16:40 -0800 | [diff] [blame] | 136 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 137 | # The list of files that go into libunwind and libunwind-arm: |
Zachary T Welch | af88cab | 2010-11-08 17:16:41 -0800 | [diff] [blame] | 138 | noinst_HEADERS += arm/init.h arm/offsets.h arm/unwind_i.h |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 139 | libunwind_la_SOURCES_arm_common = $(libunwind_la_SOURCES_common) \ |
| 140 | arm/is_fpreg.c arm/regname.c |
Zachary T Welch | af88cab | 2010-11-08 17:16:41 -0800 | [diff] [blame] | 141 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 142 | # The list of files that go into libunwind: |
| 143 | libunwind_la_SOURCES_arm = $(libunwind_la_SOURCES_arm_common) \ |
| 144 | $(libunwind_la_SOURCES_local) \ |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 145 | arm/getcontext.S \ |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 146 | arm/Lcreate_addr_space.c arm/Lget_proc_info.c arm/Lget_save_loc.c \ |
| 147 | arm/Lglobal.c arm/Linit.c arm/Linit_local.c arm/Linit_remote.c \ |
| 148 | arm/Lis_signal_frame.c arm/Lregs.c arm/Lresume.c arm/Lstep.c |
| 149 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 150 | libunwind_arm_la_SOURCES_arm = $(libunwind_la_SOURCES_arm_common) \ |
| 151 | $(libunwind_la_SOURCES_generic) \ |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 152 | arm/Gcreate_addr_space.c arm/Gget_proc_info.c arm/Gget_save_loc.c \ |
| 153 | arm/Gglobal.c arm/Ginit.c arm/Ginit_local.c arm/Ginit_remote.c \ |
| 154 | arm/Gis_signal_frame.c arm/Gregs.c arm/Gresume.c arm/Gstep.c |
| 155 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 156 | # The list of files that go both into libunwind and libunwind-ia64: |
Zachary T Welch | 02dd6c4 | 2010-11-08 17:16:39 -0800 | [diff] [blame] | 157 | noinst_HEADERS += ia64/init.h ia64/offsets.h ia64/regs.h \ |
| 158 | ia64/ucontext_i.h ia64/unwind_decoder.h ia64/unwind_i.h |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 159 | libunwind_la_SOURCES_ia64_common = $(libunwind_la_SOURCES_common) \ |
| 160 | ia64/regname.c |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 161 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 162 | # The list of files that go into libunwind: |
| 163 | libunwind_la_SOURCES_ia64 = $(libunwind_la_SOURCES_ia64_common) \ |
| 164 | $(libunwind_la_SOURCES_local) \ |
| 165 | \ |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 166 | ia64/dyn_info_list.S ia64/getcontext.S \ |
| 167 | \ |
| 168 | ia64/Lcreate_addr_space.c ia64/Lget_proc_info.c ia64/Lget_save_loc.c \ |
| 169 | ia64/Lglobal.c ia64/Linit.c ia64/Linit_local.c ia64/Linit_remote.c \ |
| 170 | ia64/Linstall_cursor.S ia64/Lis_signal_frame.c ia64/Lparser.c \ |
| 171 | ia64/Lrbs.c ia64/Lregs.c ia64/Lresume.c ia64/Lscript.c ia64/Lstep.c \ |
| 172 | ia64/Ltables.c |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 173 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 174 | # The list of files that go into libunwind-ia64: |
| 175 | libunwind_ia64_la_SOURCES_ia64 = $(libunwind_la_SOURCES_ia64_common) \ |
| 176 | $(libunwind_la_SOURCES_generic) \ |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 177 | ia64/Gcreate_addr_space.c ia64/Gget_proc_info.c ia64/Gget_save_loc.c \ |
| 178 | ia64/Gglobal.c ia64/Ginit.c ia64/Ginit_local.c ia64/Ginit_remote.c \ |
| 179 | ia64/Ginstall_cursor.S ia64/Gis_signal_frame.c ia64/Gparser.c \ |
| 180 | ia64/Grbs.c ia64/Gregs.c ia64/Gresume.c ia64/Gscript.c ia64/Gstep.c \ |
| 181 | ia64/Gtables.c |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 182 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 183 | # The list of files that go both into libunwind and libunwind-hppa: |
Zachary T Welch | 02dd6c4 | 2010-11-08 17:16:39 -0800 | [diff] [blame] | 184 | noinst_HEADERS += hppa/init.h hppa/offsets.h hppa/unwind_i.h |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 185 | libunwind_la_SOURCES_hppa_common = $(libunwind_la_SOURCES_common) \ |
| 186 | hppa/regname.c |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame] | 187 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 188 | # The list of files that go into libunwind: |
| 189 | libunwind_la_SOURCES_hppa = $(libunwind_la_SOURCES_hppa_common) \ |
| 190 | $(libunwind_la_SOURCES_local) \ |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame] | 191 | hppa/getcontext.S hppa/setcontext.S \ |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame] | 192 | hppa/Lcreate_addr_space.c hppa/Lget_save_loc.c hppa/Lglobal.c \ |
| 193 | hppa/Linit.c hppa/Linit_local.c hppa/Linit_remote.c \ |
| 194 | hppa/Lis_signal_frame.c hppa/Lget_proc_info.c hppa/Lregs.c \ |
| 195 | hppa/Lresume.c hppa/Lstep.c |
| 196 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 197 | # The list of files that go into libunwind-hppa: |
| 198 | libunwind_hppa_la_SOURCES_hppa = $(libunwind_la_SOURCES_hppa_common) \ |
| 199 | $(libunwind_la_SOURCES_generic) \ |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame] | 200 | hppa/Gcreate_addr_space.c hppa/Gget_save_loc.c hppa/Gglobal.c \ |
| 201 | hppa/Ginit.c hppa/Ginit_local.c hppa/Ginit_remote.c \ |
| 202 | hppa/Gis_signal_frame.c hppa/Gget_proc_info.c hppa/Gregs.c \ |
| 203 | hppa/Gresume.c hppa/Gstep.c |
mostang.com!davidm | f6c7a65 | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 204 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 205 | # The list of files that go info libunwind and libunwind-mips: |
Zachary T Welch | 02dd6c4 | 2010-11-08 17:16:39 -0800 | [diff] [blame] | 206 | noinst_HEADERS += mips/init.h mips/offsets.h |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 207 | libunwind_la_SOURCES_mips_common = $(libunwind_la_SOURCES_common) \ |
| 208 | mips/is_fpreg.c mips/regname.c |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 209 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 210 | # The list of files that go into libunwind: |
| 211 | libunwind_la_SOURCES_mips = $(libunwind_la_SOURCES_mips_common) \ |
| 212 | $(libunwind_la_SOURCES_local) \ |
| 213 | mips/getcontext.S \ |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 214 | mips/Lcreate_addr_space.c mips/Lget_proc_info.c mips/Lget_save_loc.c \ |
| 215 | mips/Lglobal.c mips/Linit.c mips/Linit_local.c mips/Linit_remote.c \ |
| 216 | mips/Lis_signal_frame.c mips/Lregs.c mips/Lresume.c mips/Lstep.c |
| 217 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 218 | libunwind_mips_la_SOURCES_mips = $(libunwind_la_SOURCES_mips_common) \ |
| 219 | $(libunwind_la_SOURCES_generic) \ |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 220 | mips/Gcreate_addr_space.c mips/Gget_proc_info.c mips/Gget_save_loc.c \ |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 221 | mips/Gglobal.c mips/Ginit.c mips/Ginit_local.c mips/Ginit_remote.c \ |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 222 | mips/Gis_signal_frame.c mips/Gregs.c mips/Gresume.c mips/Gstep.c |
| 223 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 224 | # The list of files that go both into libunwind and libunwind-x86: |
Zachary T Welch | 02dd6c4 | 2010-11-08 17:16:39 -0800 | [diff] [blame] | 225 | noinst_HEADERS += x86/init.h x86/offsets.h x86/unwind_i.h |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 226 | libunwind_la_SOURCES_x86_common = $(libunwind_la_SOURCES_common) \ |
| 227 | x86/is_fpreg.c x86/regname.c |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 228 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 229 | # The list of files that go into libunwind: |
| 230 | libunwind_la_SOURCES_x86 = $(libunwind_la_SOURCES_x86_common) \ |
| 231 | $(libunwind_la_SOURCES_x86_os_local) \ |
| 232 | $(libunwind_la_SOURCES_local) \ |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 233 | x86/Lcreate_addr_space.c x86/Lget_save_loc.c x86/Lglobal.c \ |
| 234 | x86/Linit.c x86/Linit_local.c x86/Linit_remote.c \ |
Arun Sharma | 8e53e62 | 2010-04-04 16:17:32 -0700 | [diff] [blame] | 235 | x86/Lget_proc_info.c x86/Lregs.c \ |
Konstantin Belousov | ae7eebb | 2010-04-13 14:11:39 +0300 | [diff] [blame] | 236 | x86/Lresume.c x86/Lstep.c |
mostang.com!davidm | f6c7a65 | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 237 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 238 | # The list of files that go into libunwind-x86: |
| 239 | libunwind_x86_la_SOURCES_x86 = $(libunwind_la_SOURCES_x86_common) \ |
| 240 | $(libunwind_la_SOURCES_x86_os) \ |
| 241 | $(libunwind_la_SOURCES_generic) \ |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 242 | x86/Gcreate_addr_space.c x86/Gget_save_loc.c x86/Gglobal.c \ |
| 243 | x86/Ginit.c x86/Ginit_local.c x86/Ginit_remote.c \ |
Arun Sharma | 8e53e62 | 2010-04-04 16:17:32 -0700 | [diff] [blame] | 244 | x86/Gget_proc_info.c x86/Gregs.c \ |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 245 | x86/Gresume.c x86/Gstep.c |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 246 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 247 | # The list of files that go both into libunwind and libunwind-x86_64: |
Zachary T Welch | 02dd6c4 | 2010-11-08 17:16:39 -0800 | [diff] [blame] | 248 | noinst_HEADERS += x86_64/offsets.h \ |
| 249 | x86_64/init.h x86_64/unwind_i.h x86_64/ucontext_i.h |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 250 | libunwind_la_SOURCES_x86_64_common = $(libunwind_la_SOURCES_common) \ |
| 251 | x86_64/is_fpreg.c x86_64/regname.c |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 252 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 253 | # The list of files that go into libunwind: |
| 254 | libunwind_la_SOURCES_x86_64 = $(libunwind_la_SOURCES_x86_64_common) \ |
| 255 | $(libunwind_la_SOURCES_x86_64_os_local) \ |
| 256 | $(libunwind_la_SOURCES_local) \ |
| 257 | x86_64/setcontext.S \ |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 258 | x86_64/Lcreate_addr_space.c x86_64/Lget_save_loc.c x86_64/Lglobal.c \ |
| 259 | x86_64/Linit.c x86_64/Linit_local.c x86_64/Linit_remote.c \ |
Arun Sharma | 8e53e62 | 2010-04-04 16:17:32 -0700 | [diff] [blame] | 260 | x86_64/Lget_proc_info.c x86_64/Lregs.c \ |
Arun Sharma | ef29ead | 2008-06-16 14:42:16 -0600 | [diff] [blame] | 261 | x86_64/Lresume.c x86_64/Lstep.c x86_64/getcontext.S |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 262 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 263 | # The list of files that go into libunwind-x86_64: |
| 264 | libunwind_x86_64_la_SOURCES_x86_64 = $(libunwind_la_SOURCES_x86_64_common) \ |
| 265 | $(libunwind_la_SOURCES_x86_64_os) \ |
| 266 | $(libunwind_la_SOURCES_generic) \ |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 267 | x86_64/Gcreate_addr_space.c x86_64/Gget_save_loc.c x86_64/Gglobal.c \ |
| 268 | x86_64/Ginit.c x86_64/Ginit_local.c x86_64/Ginit_remote.c \ |
Arun Sharma | 8e53e62 | 2010-04-04 16:17:32 -0700 | [diff] [blame] | 269 | x86_64/Gget_proc_info.c x86_64/Gregs.c \ |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 270 | x86_64/Gresume.c x86_64/Gstep.c |
| 271 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 272 | # The list of local files that go to Power 64 and 32: |
| 273 | libunwind_la_SOURCES_ppc = ppc/Lcreate_addr_space.c \ |
Jose Flavio Aguilar Paulino | 4499bb2 | 2007-09-12 21:52:25 -0600 | [diff] [blame] | 274 | ppc/Lget_proc_info.c ppc/Lget_save_loc.c ppc/Linit_local.c \ |
| 275 | ppc/Linit_remote.c ppc/Lis_signal_frame.c |
| 276 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 277 | # The list of generic files that go to Power 64 and 32: |
| 278 | libunwind_ppc_la_SOURCES_ppc_generic = ppc/Gcreate_addr_space.c \ |
Jose Flavio Aguilar Paulino | 4499bb2 | 2007-09-12 21:52:25 -0600 | [diff] [blame] | 279 | ppc/Gget_proc_info.c ppc/Gget_save_loc.c ppc/Ginit_local.c \ |
| 280 | ppc/Ginit_remote.c ppc/Gis_signal_frame.c |
| 281 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 282 | # The list of files that go both into libunwind and libunwind-ppc32: |
Zachary T Welch | 02dd6c4 | 2010-11-08 17:16:39 -0800 | [diff] [blame] | 283 | noinst_HEADERS += ppc32/init.h ppc32/unwind_i.h ppc32/ucontext_i.h |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 284 | libunwind_la_SOURCES_ppc32_common = $(libunwind_la_SOURCES_common) \ |
Zachary T Welch | ce847af | 2010-11-08 17:16:40 -0800 | [diff] [blame] | 285 | ppc32/is_fpreg.c ppc32/regname.c ppc32/get_func_addr.c |
Jose Flavio Aguilar Paulino | 4499bb2 | 2007-09-12 21:52:25 -0600 | [diff] [blame] | 286 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 287 | # The list of files that go into libunwind: |
| 288 | libunwind_la_SOURCES_ppc32 = $(libunwind_la_SOURCES_ppc32_common) \ |
| 289 | $(libunwind_la_SOURCES_local) \ |
| 290 | $(libunwind_la_SOURCES_ppc) \ |
| 291 | ppc32/Lglobal.c ppc32/Linit.c \ |
Jose Flavio Aguilar Paulino | 4499bb2 | 2007-09-12 21:52:25 -0600 | [diff] [blame] | 292 | ppc32/Lregs.c ppc32/Lresume.c ppc32/Lstep.c |
| 293 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 294 | # The list of files that go into libunwind-ppc32: |
| 295 | libunwind_ppc32_la_SOURCES_ppc32 = $(libunwind_la_SOURCES_ppc32_common) \ |
| 296 | $(libunwind_la_SOURCES_generic) \ |
| 297 | $(libunwind_ppc_la_SOURCES_ppc_generic) \ |
| 298 | ppc32/Gglobal.c ppc32/Ginit.c \ |
Jose Flavio Aguilar Paulino | 4499bb2 | 2007-09-12 21:52:25 -0600 | [diff] [blame] | 299 | ppc32/Gregs.c ppc32/Gresume.c ppc32/Gstep.c |
| 300 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 301 | # The list of files that go both into libunwind and libunwind-ppc64: |
Zachary T Welch | 02dd6c4 | 2010-11-08 17:16:39 -0800 | [diff] [blame] | 302 | noinst_HEADERS += ppc64/init.h ppc64/unwind_i.h ppc64/ucontext_i.h |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 303 | libunwind_la_SOURCES_ppc64_common = $(libunwind_la_SOURCES_common) \ |
Zachary T Welch | ce847af | 2010-11-08 17:16:40 -0800 | [diff] [blame] | 304 | ppc64/is_fpreg.c ppc64/regname.c ppc64/get_func_addr.c |
Jose Flavio Aguilar Paulino | b33021e | 2007-08-02 09:59:43 -0600 | [diff] [blame] | 305 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 306 | # The list of files that go into libunwind: |
| 307 | libunwind_la_SOURCES_ppc64 = $(libunwind_la_SOURCES_ppc64_common) \ |
| 308 | $(libunwind_la_SOURCES_local) \ |
| 309 | $(libunwind_la_SOURCES_ppc) \ |
| 310 | ppc64/Lglobal.c ppc64/Linit.c \ |
Jose Flavio Aguilar Paulino | 4499bb2 | 2007-09-12 21:52:25 -0600 | [diff] [blame] | 311 | ppc64/Lregs.c ppc64/Lresume.c ppc64/Lstep.c |
Jose Flavio Aguilar Paulino | b33021e | 2007-08-02 09:59:43 -0600 | [diff] [blame] | 312 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 313 | # The list of files that go into libunwind-ppc64: |
| 314 | libunwind_ppc64_la_SOURCES_ppc64 = $(libunwind_la_SOURCES_ppc64_common) \ |
| 315 | $(libunwind_la_SOURCES_generic) \ |
| 316 | $(libunwind_ppc_la_SOURCES_ppc_generic) \ |
| 317 | ppc64/Gglobal.c ppc64/Ginit.c \ |
Jose Flavio Aguilar Paulino | 4499bb2 | 2007-09-12 21:52:25 -0600 | [diff] [blame] | 318 | ppc64/Gregs.c ppc64/Gresume.c ppc64/Gstep.c |
Jose Flavio Aguilar Paulino | b33021e | 2007-08-02 09:59:43 -0600 | [diff] [blame] | 319 | |
mostang.com!davidm | 0adb97c | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 320 | if REMOTE_ONLY |
mostang.com!davidm | 0adb97c | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 321 | install-exec-hook: |
| 322 | # Nothing to do here.... |
| 323 | else |
mostang.com!davidm | 0adb97c | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 324 | # |
| 325 | # This is not ideal, but I know of no other way to install an |
| 326 | # alias for a library. |
| 327 | # |
| 328 | install-exec-hook: |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 329 | $(LN_S) -f libunwind-$(arch).a $(DESTDIR)$(libdir)/libunwind-generic.a |
| 330 | $(LN_S) -f libunwind-$(arch).so \ |
| 331 | $(DESTDIR)$(libdir)/libunwind-generic.so |
mostang.com!davidm | 0adb97c | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 332 | endif |
| 333 | |
| 334 | if OS_LINUX |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 335 | libunwind_la_SOURCES_os = $(libunwind_la_SOURCES_os_linux) |
| 336 | libunwind_la_SOURCES_os_local = $(libunwind_la_SOURCES_os_linux_local) |
| 337 | libunwind_la_SOURCES_x86_os = x86/Gos-linux.c |
| 338 | libunwind_x86_la_SOURCES_os = x86/getcontext-linux.S |
| 339 | libunwind_la_SOURCES_x86_os_local = x86/Los-linux.c |
| 340 | libunwind_la_SOURCES_x86_64_os = x86_64/Gos-linux.c |
| 341 | libunwind_la_SOURCES_x86_64_os_local = x86_64/Los-linux.c |
mostang.com!davidm | 0adb97c | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 342 | endif |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 343 | |
| 344 | if OS_HPUX |
| 345 | libunwind_la_SOURCES_os = $(libunwind_la_SOURCES_os_hpux) |
| 346 | libunwind_la_SOURCES_os_local = $(libunwind_la_SOURCES_os_hpux_local) |
mostang.com!davidm | 5929f8e | 2003-04-03 07:59:15 +0000 | [diff] [blame] | 347 | endif |
| 348 | |
Konstantin Belousov | 905034c | 2010-03-06 00:41:37 +0200 | [diff] [blame] | 349 | if OS_FREEBSD |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 350 | libunwind_la_SOURCES_os = $(libunwind_la_SOURCES_os_freebsd) |
| 351 | libunwind_la_SOURCES_os_local = $(libunwind_la_SOURCES_os_freebsd_local) |
| 352 | libunwind_la_SOURCES_x86_os = x86/Gos-freebsd.c |
| 353 | libunwind_x86_la_SOURCES_os = x86/getcontext-freebsd.S |
| 354 | libunwind_la_SOURCES_x86_os_local = x86/Los-freebsd.c |
| 355 | libunwind_la_SOURCES_x86_64_os = x86_64/Gos-freebsd.c |
| 356 | libunwind_la_SOURCES_x86_64_os_local = x86_64/Los-freebsd.c |
Konstantin Belousov | 905034c | 2010-03-06 00:41:37 +0200 | [diff] [blame] | 357 | endif |
| 358 | |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 359 | if ARCH_ARM |
Zachary T Welch | b07829b | 2010-11-08 17:16:37 -0800 | [diff] [blame] | 360 | lib_LTLIBRARIES += libunwind-arm.la |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 361 | libunwind_la_SOURCES = $(libunwind_la_SOURCES_arm) |
| 362 | libunwind_arm_la_SOURCES = $(libunwind_arm_la_SOURCES_arm) |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 363 | libunwind_arm_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION) |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 364 | libunwind_arm_la_LIBADD = libunwind-dwarf-generic.la |
Zachary T Welch | ce847af | 2010-11-08 17:16:40 -0800 | [diff] [blame] | 365 | libunwind_arm_la_LIBADD += libunwind-elf32.la |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 366 | if !REMOTE_ONLY |
Zachary T Welch | 9de666d | 2010-11-08 17:16:38 -0800 | [diff] [blame] | 367 | libunwind_arm_la_LIBADD += libunwind.la -lc |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 368 | endif |
Zachary T Welch | 64a8276 | 2010-11-08 17:16:36 -0800 | [diff] [blame] | 369 | libunwind_setjmp_la_SOURCES += arm/siglongjmp.S |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 370 | else |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 371 | if ARCH_IA64 |
hp.com!davidm | f9c59cd | 2004-08-18 10:43:50 +0000 | [diff] [blame] | 372 | ia64_mk_Gcursor_i_SOURCES = ia64/mk_Gcursor_i.c |
| 373 | ia64_mk_Lcursor_i_SOURCES = ia64/mk_Lcursor_i.c |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 374 | noinst_PROGRAMS = ia64/mk_Gcursor_i ia64/mk_Lcursor_i |
mostang.com!davidm | 8e85e81 | 2003-04-23 19:22:42 +0000 | [diff] [blame] | 375 | BUILT_SOURCES = Gcursor_i.h Lcursor_i.h |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 376 | Gcursor_i.h: ia64/mk_Gcursor_i |
| 377 | ia64/mk_Gcursor_i > $@ |
| 378 | Lcursor_i.h: ia64/mk_Lcursor_i |
| 379 | ia64/mk_Lcursor_i > $@ |
Zachary T Welch | b07829b | 2010-11-08 17:16:37 -0800 | [diff] [blame] | 380 | |
| 381 | lib_LTLIBRARIES += libunwind-ia64.la |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 382 | libunwind_la_SOURCES = $(libunwind_la_SOURCES_ia64) |
| 383 | libunwind_ia64_la_SOURCES = $(libunwind_ia64_la_SOURCES_ia64) |
hp.com!davidm | ed32b99 | 2004-04-20 16:53:44 +0000 | [diff] [blame] | 384 | libunwind_ia64_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION) |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 385 | libunwind_ia64_la_LIBADD = libunwind-elf64.la |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 386 | if !REMOTE_ONLY |
Zachary T Welch | ce847af | 2010-11-08 17:16:40 -0800 | [diff] [blame] | 387 | libunwind_ia64_la_LIBADD += libunwind.la -lc |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 388 | endif |
Zachary T Welch | 64a8276 | 2010-11-08 17:16:36 -0800 | [diff] [blame] | 389 | libunwind_setjmp_la_SOURCES += ia64/setjmp.S ia64/sigsetjmp.S \ |
| 390 | ia64/longjmp.S ia64/siglongjmp.S |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 391 | else |
mostang.com!davidm | f6c7a65 | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 392 | if ARCH_HPPA |
Zachary T Welch | b07829b | 2010-11-08 17:16:37 -0800 | [diff] [blame] | 393 | lib_LTLIBRARIES += libunwind-hppa.la |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 394 | libunwind_la_SOURCES = $(libunwind_la_SOURCES_hppa) |
| 395 | libunwind_hppa_la_SOURCES = $(libunwind_hppa_la_SOURCES_hppa) |
hp.com!davidm | ed32b99 | 2004-04-20 16:53:44 +0000 | [diff] [blame] | 396 | libunwind_hppa_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION) |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 397 | libunwind_hppa_la_LIBADD = libunwind-dwarf-generic.la |
Zachary T Welch | ce847af | 2010-11-08 17:16:40 -0800 | [diff] [blame] | 398 | libunwind_hppa_la_LIBADD += libunwind-elf32.la |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 399 | if !REMOTE_ONLY |
Zachary T Welch | 9de666d | 2010-11-08 17:16:38 -0800 | [diff] [blame] | 400 | libunwind_hppa_la_LIBADD += libunwind.la -lc |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 401 | endif |
Zachary T Welch | 64a8276 | 2010-11-08 17:16:36 -0800 | [diff] [blame] | 402 | libunwind_setjmp_la_SOURCES += hppa/siglongjmp.S |
mostang.com!davidm | f6c7a65 | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 403 | else |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 404 | if ARCH_MIPS |
Zachary T Welch | b07829b | 2010-11-08 17:16:37 -0800 | [diff] [blame] | 405 | lib_LTLIBRARIES += libunwind-mips.la |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 406 | libunwind_la_SOURCES = $(libunwind_la_SOURCES_mips) |
| 407 | libunwind_mips_la_SOURCES = $(libunwind_mips_la_SOURCES_mips) |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 408 | libunwind_mips_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION) |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 409 | libunwind_mips_la_LIBADD = libunwind-dwarf-generic.la |
Zachary T Welch | ce847af | 2010-11-08 17:16:40 -0800 | [diff] [blame] | 410 | libunwind_mips_la_LIBADD += libunwind-elfxx.la |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 411 | if !REMOTE_ONLY |
Zachary T Welch | 9de666d | 2010-11-08 17:16:38 -0800 | [diff] [blame] | 412 | libunwind_mips_la_LIBADD += libunwind.la -lc |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 413 | endif |
Zachary T Welch | 64a8276 | 2010-11-08 17:16:36 -0800 | [diff] [blame] | 414 | libunwind_setjmp_la_SOURCES += mips/siglongjmp.S |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 415 | else |
mostang.com!davidm | 3ae9b81 | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 416 | if ARCH_X86 |
Zachary T Welch | b07829b | 2010-11-08 17:16:37 -0800 | [diff] [blame] | 417 | lib_LTLIBRARIES += libunwind-x86.la |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 418 | libunwind_la_SOURCES = $(libunwind_la_SOURCES_x86) $(libunwind_x86_la_SOURCES_os) |
| 419 | libunwind_x86_la_SOURCES = $(libunwind_x86_la_SOURCES_x86) |
hp.com!davidm | ed32b99 | 2004-04-20 16:53:44 +0000 | [diff] [blame] | 420 | libunwind_x86_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION) |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 421 | libunwind_x86_la_LIBADD = libunwind-dwarf-generic.la |
Zachary T Welch | ce847af | 2010-11-08 17:16:40 -0800 | [diff] [blame] | 422 | libunwind_x86_la_LIBADD += libunwind-elf32.la |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 423 | if !REMOTE_ONLY |
Zachary T Welch | 9de666d | 2010-11-08 17:16:38 -0800 | [diff] [blame] | 424 | libunwind_x86_la_LIBADD += libunwind.la -lc |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 425 | endif |
Zachary T Welch | 64a8276 | 2010-11-08 17:16:36 -0800 | [diff] [blame] | 426 | libunwind_setjmp_la_SOURCES += x86/longjmp.S x86/siglongjmp.S |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 427 | else |
| 428 | if ARCH_X86_64 |
Zachary T Welch | b07829b | 2010-11-08 17:16:37 -0800 | [diff] [blame] | 429 | lib_LTLIBRARIES += libunwind-x86_64.la |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 430 | libunwind_la_SOURCES = $(libunwind_la_SOURCES_x86_64) |
| 431 | libunwind_x86_64_la_SOURCES = $(libunwind_x86_64_la_SOURCES_x86_64) |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 432 | libunwind_x86_64_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION) |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 433 | libunwind_x86_64_la_LIBADD = libunwind-dwarf-generic.la |
Zachary T Welch | ce847af | 2010-11-08 17:16:40 -0800 | [diff] [blame] | 434 | libunwind_x86_64_la_LIBADD += libunwind-elf64.la |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 435 | if !REMOTE_ONLY |
Zachary T Welch | 9de666d | 2010-11-08 17:16:38 -0800 | [diff] [blame] | 436 | libunwind_x86_64_la_LIBADD += libunwind.la -lc |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 437 | endif |
Zachary T Welch | 64a8276 | 2010-11-08 17:16:36 -0800 | [diff] [blame] | 438 | libunwind_setjmp_la_SOURCES += x86_64/longjmp.S x86_64/siglongjmp.S |
Jose Flavio Aguilar Paulino | 4499bb2 | 2007-09-12 21:52:25 -0600 | [diff] [blame] | 439 | else |
| 440 | if ARCH_PPC32 |
Zachary T Welch | b07829b | 2010-11-08 17:16:37 -0800 | [diff] [blame] | 441 | lib_LTLIBRARIES += libunwind-ppc32.la |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 442 | libunwind_la_SOURCES = $(libunwind_la_SOURCES_ppc32) |
| 443 | libunwind_ppc32_la_SOURCES = $(libunwind_ppc32_la_SOURCES_ppc32) |
Jose Flavio Aguilar Paulino | 4499bb2 | 2007-09-12 21:52:25 -0600 | [diff] [blame] | 444 | libunwind_ppc32_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION) |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 445 | libunwind_ppc32_la_LIBADD = libunwind-dwarf-generic.la |
Zachary T Welch | ce847af | 2010-11-08 17:16:40 -0800 | [diff] [blame] | 446 | libunwind_ppc32_la_LIBADD += libunwind-elf32.la |
Jose Flavio Aguilar Paulino | 4499bb2 | 2007-09-12 21:52:25 -0600 | [diff] [blame] | 447 | if !REMOTE_ONLY |
Zachary T Welch | 9de666d | 2010-11-08 17:16:38 -0800 | [diff] [blame] | 448 | libunwind_ppc32_la_LIBADD += libunwind.la -lc |
Jose Flavio Aguilar Paulino | 4499bb2 | 2007-09-12 21:52:25 -0600 | [diff] [blame] | 449 | endif |
Zachary T Welch | 64a8276 | 2010-11-08 17:16:36 -0800 | [diff] [blame] | 450 | libunwind_setjmp_la_SOURCES += ppc/longjmp.S ppc/siglongjmp.S |
Jose Flavio Aguilar Paulino | b33021e | 2007-08-02 09:59:43 -0600 | [diff] [blame] | 451 | else |
| 452 | if ARCH_PPC64 |
Zachary T Welch | b07829b | 2010-11-08 17:16:37 -0800 | [diff] [blame] | 453 | lib_LTLIBRARIES += libunwind-ppc64.la |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 454 | libunwind_la_SOURCES = $(libunwind_la_SOURCES_ppc64) |
| 455 | libunwind_ppc64_la_SOURCES = $(libunwind_ppc64_la_SOURCES_ppc64) |
Jose Flavio Aguilar Paulino | b33021e | 2007-08-02 09:59:43 -0600 | [diff] [blame] | 456 | libunwind_ppc64_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION) |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 457 | libunwind_ppc64_la_LIBADD = libunwind-dwarf-generic.la |
Zachary T Welch | ce847af | 2010-11-08 17:16:40 -0800 | [diff] [blame] | 458 | libunwind_ppc64_la_LIBADD += libunwind-elf64.la |
Jose Flavio Aguilar Paulino | b33021e | 2007-08-02 09:59:43 -0600 | [diff] [blame] | 459 | if !REMOTE_ONLY |
Zachary T Welch | 9de666d | 2010-11-08 17:16:38 -0800 | [diff] [blame] | 460 | libunwind_ppc64_la_LIBADD += libunwind.la -lc |
Jose Flavio Aguilar Paulino | b33021e | 2007-08-02 09:59:43 -0600 | [diff] [blame] | 461 | endif |
Zachary T Welch | 64a8276 | 2010-11-08 17:16:36 -0800 | [diff] [blame] | 462 | libunwind_setjmp_la_SOURCES += ppc/longjmp.S ppc/siglongjmp.S |
Jose Flavio Aguilar Paulino | b33021e | 2007-08-02 09:59:43 -0600 | [diff] [blame] | 463 | |
| 464 | endif # ARCH_PPC64 |
Jose Flavio Aguilar Paulino | 4499bb2 | 2007-09-12 21:52:25 -0600 | [diff] [blame] | 465 | endif # ARCH_PPC32 |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 466 | endif # ARCH_X86_64 |
mostang.com!davidm | f6c7a65 | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 467 | endif # ARCH_X86 |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 468 | endif # ARCH_MIPS |
mostang.com!davidm | f6c7a65 | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 469 | endif # ARCH_HPPA |
| 470 | endif # ARCH_IA64 |
Daniel Jacobowitz | 3842dac | 2008-02-04 17:16:37 -0700 | [diff] [blame] | 471 | endif # ARCH_ARM |
mostang.com!davidm | 00abcc6 | 2002-04-19 05:35:46 +0000 | [diff] [blame] | 472 | |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame] | 473 | # |
| 474 | # Don't link with standard libraries, because those may mention |
| 475 | # libunwind already. |
| 476 | # |
| 477 | libunwind_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -XCClinker -nostdlib \ |
| 478 | $(LDFLAGS_STATIC_LIBCXA) -version-info $(SOVERSION) |
Zachary T Welch | 9de666d | 2010-11-08 17:16:38 -0800 | [diff] [blame] | 479 | libunwind_la_LIBADD += -lc $(LIBCRTS) |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 480 | |
hp.com!davidm | 3e8a502 | 2005-05-20 09:48:08 +0000 | [diff] [blame] | 481 | AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/include/tdep-$(arch) -I. |
mostang.com!davidm | ad7f147 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 482 | AM_CCASFLAGS = $(AM_CPPFLAGS) |
Zachary T Welch | 02dd6c4 | 2010-11-08 17:16:39 -0800 | [diff] [blame] | 483 | noinst_HEADERS += unwind/unwind-internal.h |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 484 | |
Arun Sharma | 516304a | 2011-02-01 20:35:59 -0800 | [diff] [blame] | 485 | EXTRA_DIST = $(libunwind_la_SOURCES_arm) \ |
| 486 | $(libunwind_la_SOURCES_hppa) \ |
| 487 | $(libunwind_la_SOURCES_ia64) \ |
| 488 | $(libunwind_la_SOURCES_mips) \ |
| 489 | $(libunwind_la_SOURCES_x86) \ |
| 490 | $(libunwind_la_SOURCES_os_linux) \ |
| 491 | $(libunwind_la_SOURCES_os_hpux) \ |
| 492 | $(libunwind_la_SOURCES_common) \ |
| 493 | $(libunwind_la_SOURCES_local) \ |
| 494 | $(libunwind_la_SOURCES_generic) \ |
| 495 | $(libunwind_arm_la_SOURCES_arm) \ |
| 496 | $(libunwind_hppa_la_SOURCES_hppa) \ |
| 497 | $(libunwind_ia64_la_SOURCES_ia64) \ |
| 498 | $(libunwind_mips_la_SOURCES_mips) \ |
| 499 | $(libunwind_x86_la_SOURCES_x86) \ |
| 500 | $(libunwind_x86_64_la_SOURCES_x86_64) |
| 501 | |
Zachary T Welch | 651e9bb | 2010-10-28 16:25:51 -0700 | [diff] [blame] | 502 | MAINTAINERCLEANFILES = Makefile.in |
mostang.com!davidm | 0adb97c | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 503 | |
mostang.com!davidm | 83b038d | 2002-02-28 16:24:48 +0000 | [diff] [blame] | 504 | # The -version-info flag accepts an argument of the form |
| 505 | # `current[:revision[:age]]'. So, passing `-version-info 3:12:1' sets |
| 506 | # current to 3, revision to 12, and age to 1. |
| 507 | |
| 508 | # If either revision or age are omitted, they default to 0. Also note |
| 509 | # that age must be less than or equal to the current interface number. |
| 510 | |
| 511 | # Here are a set of rules to help you update your library version |
| 512 | # information: |
| 513 | |
| 514 | # 1. Start with version information of `0:0:0' for each libtool |
| 515 | # library. |
| 516 | |
| 517 | # 2. Update the version information only immediately before a public |
| 518 | # release of your software. More frequent updates are unnecessary, |
| 519 | # and only guarantee that the current interface number gets larger |
| 520 | # faster. |
| 521 | |
| 522 | # 3. If the library source code has changed at all since the last |
| 523 | # update, then increment revision (`c:r:a' becomes `c:r+1:a'). |
| 524 | |
| 525 | # 4. If any interfaces have been added, removed, or changed since the |
| 526 | # last update, increment current, and set revision to 0. |
| 527 | |
| 528 | # 5. If any interfaces have been added since the last public release, |
| 529 | # then increment age. |
| 530 | |
| 531 | # 6. If any interfaces have been removed since the last public |
| 532 | # release, then set age to 0. |