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 | |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 8 | if REMOTE_ONLY |
| 9 | LIBRARIES_cdep = |
| 10 | lib_LTLIBRARIES_cdep = |
homeip.net!davidm | f028c7d | 2004-08-20 11:26:49 +0000 | [diff] [blame] | 11 | lib_LTLIBRARIES_cdep_setjmp = |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 12 | else |
| 13 | LIBRARIES_cdep = libunwind-ptrace.a |
homeip.net!davidm | f028c7d | 2004-08-20 11:26:49 +0000 | [diff] [blame] | 14 | lib_LTLIBRARIES_cdep = libunwind.la |
| 15 | lib_LTLIBRARIES_cdep_setjmp = libunwind-setjmp.la |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 16 | endif |
mostang.com!davidm | ad7f147 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 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_internal.h \ |
| 22 | ptrace/_UPT_accessors.c ptrace/_UPT_access_fpreg.c \ |
| 23 | ptrace/_UPT_access_mem.c ptrace/_UPT_access_reg.c \ |
| 24 | ptrace/_UPT_create.c ptrace/_UPT_destroy.c \ |
| 25 | ptrace/_UPT_find_proc_info.c ptrace/_UPT_get_dyn_info_list_addr.c \ |
| 26 | ptrace/_UPT_put_unwind_info.c ptrace/_UPT_get_proc_name.c \ |
| 27 | ptrace/_UPT_reg_offset.c ptrace/_UPT_resume.c |
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) |
| 32 | libunwind_setjmp_la_LIBADD = libunwind-$(arch).la -lc |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame^] | 33 | libunwind_setjmp_la_SOURCES_common = setjmp/setjmp_i.h \ |
| 34 | setjmp/longjmp.c \ |
| 35 | setjmp/siglongjmp.c |
hp.com!davidm | f4c8d53 | 2004-08-31 13:59:10 +0000 | [diff] [blame] | 36 | libunwind_setjmp_la_SOURCES_ia64 = ia64/setjmp.S ia64/sigsetjmp.S \ |
| 37 | ia64/longjmp.S ia64/siglongjmp.S |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame^] | 38 | libunwind_setjmp_la_SOURCES_hppa = hppa/siglongjmp.S |
| 39 | libunwind_setjmp_la_SOURCES_x86 = x86/longjmp.S x86/siglongjmp.S |
| 40 | libunwind_setjmp_la_SOURCES_x86_64 = x86_64/longjmp.S x86_64/siglongjmp.S |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 41 | |
| 42 | ### libunwind: |
| 43 | |
mostang.com!davidm | a6b0ccf | 2004-01-14 06:21:52 +0000 | [diff] [blame] | 44 | # List of arch-independent files needed by both local-only and generic |
| 45 | # libraries: |
bea.com!thallgre | cb503ba | 2004-08-18 15:16:46 +0000 | [diff] [blame] | 46 | libunwind_la_SOURCES_common = \ |
| 47 | $(libunwind_la_SOURCES_os) \ |
| 48 | 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] | 49 | |
| 50 | # List of arch-independent files needed by generic library (libunwind-$ARCH): |
hp.com!davidm | 1738b3b | 2004-01-30 00:01:24 +0000 | [diff] [blame] | 51 | libunwind_la_SOURCES_generic = \ |
| 52 | mi/Gdyn-extract.c mi/Gdyn-remote.c mi/Gfind_dynamic_proc_info.c \ |
| 53 | mi/Gget_accessors.c \ |
| 54 | mi/Gget_proc_info_by_ip.c mi/Gget_proc_name.c \ |
| 55 | mi/Gput_dynamic_unwind_info.c mi/Gdestroy_addr_space.c \ |
| 56 | mi/Gget_reg.c mi/Gset_reg.c \ |
| 57 | mi/Gget_fpreg.c mi/Gset_fpreg.c \ |
| 58 | mi/Gset_caching_policy.c |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 59 | |
| 60 | # List of arch-independent files needed by local-only library (libunwind): |
hp.com!davidm | 1738b3b | 2004-01-30 00:01:24 +0000 | [diff] [blame] | 61 | libunwind_la_SOURCES_local = \ |
hp.com!davidm | 051da9c | 2004-05-06 22:02:00 +0000 | [diff] [blame] | 62 | $(libunwind_la_SOURCES_os_local) \ |
hp.com!davidm | a50c780 | 2004-03-30 01:56:19 +0000 | [diff] [blame] | 63 | mi/backtrace.c \ |
hp.com!davidm | 1738b3b | 2004-01-30 00:01:24 +0000 | [diff] [blame] | 64 | mi/dyn-cancel.c mi/dyn-info-list.c mi/dyn-register.c \ |
| 65 | mi/Ldyn-extract.c mi/Lfind_dynamic_proc_info.c \ |
| 66 | mi/Lget_accessors.c \ |
| 67 | mi/Lget_proc_info_by_ip.c mi/Lget_proc_name.c \ |
| 68 | mi/Lput_dynamic_unwind_info.c mi/Ldestroy_addr_space.c \ |
| 69 | mi/Lget_reg.c mi/Lset_reg.c \ |
| 70 | mi/Lget_fpreg.c mi/Lset_fpreg.c \ |
| 71 | mi/Lset_caching_policy.c \ |
| 72 | unwind/Backtrace.c unwind/DeleteException.c \ |
| 73 | unwind/FindEnclosingFunction.c unwind/ForcedUnwind.c \ |
| 74 | unwind/GetBSP.c unwind/GetCFA.c unwind/GetDataRelBase.c \ |
| 75 | unwind/GetGR.c unwind/GetIP.c unwind/GetLanguageSpecificData.c \ |
| 76 | unwind/GetRegionStart.c unwind/GetTextRelBase.c \ |
| 77 | unwind/RaiseException.c unwind/Resume.c \ |
| 78 | unwind/Resume_or_Rethrow.c unwind/SetGR.c unwind/SetIP.c |
hp.com!davidm | 0240946 | 2003-12-04 07:44:21 +0000 | [diff] [blame] | 79 | |
mostang.com!davidm | 0adb97c | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 80 | libunwind_la_SOURCES_os_linux = os-linux.h os-linux.c |
hp.com!davidm | 051da9c | 2004-05-06 22:02:00 +0000 | [diff] [blame] | 81 | |
| 82 | # _ReadULEB()/_ReadSLEB() are needed for Intel C++ 8.0 compatibility |
| 83 | libunwind_la_SOURCES_os_linux_local = mi/_ReadULEB.c mi/_ReadSLEB.c |
mostang.com!davidm | 5929f8e | 2003-04-03 07:59:15 +0000 | [diff] [blame] | 84 | libunwind_la_SOURCES_os_hpux = os-hpux.c |
hp.com!davidm | 74ee8e4 | 2003-01-28 03:40:06 +0000 | [diff] [blame] | 85 | |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 86 | dwarf_SOURCES_common = \ |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 87 | dwarf/global.c |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 88 | |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 89 | dwarf_SOURCES_local = \ |
| 90 | dwarf/Lexpr.c dwarf/Lfde.c dwarf/Lparser.c dwarf/Lpe.c dwarf/Lstep.c |
hp.com!davidm | 2376081 | 2003-12-20 11:50:00 +0000 | [diff] [blame] | 91 | |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 92 | dwarf_SOURCES_generic = \ |
| 93 | dwarf/Gexpr.c dwarf/Gfde.c dwarf/Gparser.c dwarf/Gpe.c dwarf/Gstep.c |
mostang.com!davidm | 3ae9b81 | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 94 | |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 95 | # The list of files that go both into libunwind and libunwind-ia64: |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 96 | libunwind_la_SOURCES_ia64_common = $(libunwind_la_SOURCES_common) \ |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame^] | 97 | elf64.c elf64.h \ |
mostang.com!davidm | c47cf6a | 2004-05-04 22:16:57 +0000 | [diff] [blame] | 98 | ia64/init.h ia64/offsets.h ia64/regs.h \ |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 99 | ia64/ucontext_i.h ia64/unwind_decoder.h ia64/unwind_i.h \ |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 100 | ia64/regname.c |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 101 | |
| 102 | # The list of files that go into libunwind: |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 103 | libunwind_la_SOURCES_ia64 = $(libunwind_la_SOURCES_ia64_common) \ |
| 104 | $(libunwind_la_SOURCES_local) \ |
| 105 | \ |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 106 | ia64/dyn_info_list.S ia64/getcontext.S \ |
| 107 | \ |
| 108 | ia64/Lcreate_addr_space.c ia64/Lget_proc_info.c ia64/Lget_save_loc.c \ |
| 109 | ia64/Lglobal.c ia64/Linit.c ia64/Linit_local.c ia64/Linit_remote.c \ |
| 110 | ia64/Linstall_cursor.S ia64/Lis_signal_frame.c ia64/Lparser.c \ |
| 111 | ia64/Lrbs.c ia64/Lregs.c ia64/Lresume.c ia64/Lscript.c ia64/Lstep.c \ |
| 112 | ia64/Ltables.c |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 113 | |
| 114 | # The list of files that go into libunwind-ia64: |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 115 | libunwind_ia64_la_SOURCES_ia64 = $(libunwind_la_SOURCES_ia64_common) \ |
| 116 | $(libunwind_la_SOURCES_generic) \ |
| 117 | ia64/Gcreate_addr_space.c ia64/Gget_proc_info.c ia64/Gget_save_loc.c \ |
| 118 | ia64/Gglobal.c ia64/Ginit.c ia64/Ginit_local.c ia64/Ginit_remote.c \ |
| 119 | ia64/Ginstall_cursor.S ia64/Gis_signal_frame.c ia64/Gparser.c \ |
| 120 | ia64/Grbs.c ia64/Gregs.c ia64/Gresume.c ia64/Gscript.c ia64/Gstep.c \ |
| 121 | ia64/Gtables.c |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 122 | |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame^] | 123 | # The list of files that go both into libunwind and libunwind-hppa: |
| 124 | libunwind_la_SOURCES_hppa_common = $(libunwind_la_SOURCES_common) \ |
| 125 | $(dwarf_SOURCES_common) \ |
| 126 | elf32.c elf32.h \ |
| 127 | hppa/init.h hppa/offsets.h hppa/unwind_i.h \ |
| 128 | hppa/regname.c |
| 129 | |
| 130 | # The list of files that go into libunwind: |
| 131 | libunwind_la_SOURCES_hppa = $(libunwind_la_SOURCES_hppa_common) \ |
| 132 | $(libunwind_la_SOURCES_local) \ |
| 133 | hppa/getcontext.S hppa/setcontext.S \ |
| 134 | $(dwarf_SOURCES_local) \ |
| 135 | dwarf/Lfind_proc_info-lsb.c \ |
| 136 | hppa/Lcreate_addr_space.c hppa/Lget_save_loc.c hppa/Lglobal.c \ |
| 137 | hppa/Linit.c hppa/Linit_local.c hppa/Linit_remote.c \ |
| 138 | hppa/Lis_signal_frame.c hppa/Lget_proc_info.c hppa/Lregs.c \ |
| 139 | hppa/Lresume.c hppa/Lstep.c |
| 140 | |
| 141 | # The list of files that go into libunwind-hppa: |
| 142 | libunwind_hppa_la_SOURCES_hppa = $(libunwind_la_SOURCES_hppa_common) \ |
| 143 | $(libunwind_la_SOURCES_generic) \ |
| 144 | $(dwarf_SOURCES_generic) \ |
| 145 | dwarf/Gfind_proc_info-lsb.c \ |
| 146 | hppa/Gcreate_addr_space.c hppa/Gget_save_loc.c hppa/Gglobal.c \ |
| 147 | hppa/Ginit.c hppa/Ginit_local.c hppa/Ginit_remote.c \ |
| 148 | hppa/Gis_signal_frame.c hppa/Gget_proc_info.c hppa/Gregs.c \ |
| 149 | hppa/Gresume.c hppa/Gstep.c |
mostang.com!davidm | f6c7a65 | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 150 | |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 151 | # The list of files that go both into libunwind and libunwind-x86: |
mostang.com!davidm | a6b0ccf | 2004-01-14 06:21:52 +0000 | [diff] [blame] | 152 | libunwind_la_SOURCES_x86_common = $(libunwind_la_SOURCES_common) \ |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 153 | $(dwarf_SOURCES_common) \ |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame^] | 154 | elf32.c elf32.h \ |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 155 | x86/init.h x86/offsets.h x86/unwind_i.h \ |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 156 | x86/is_fpreg.c x86/regname.c |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 157 | |
| 158 | # The list of files that go into libunwind: |
hp.com!davidm | 1738b3b | 2004-01-30 00:01:24 +0000 | [diff] [blame] | 159 | libunwind_la_SOURCES_x86 = $(libunwind_la_SOURCES_x86_common) \ |
| 160 | $(libunwind_la_SOURCES_local) \ |
hp.com!davidm | 1738b3b | 2004-01-30 00:01:24 +0000 | [diff] [blame] | 161 | $(dwarf_SOURCES_local) \ |
| 162 | dwarf/Lfind_proc_info-lsb.c \ |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 163 | x86/Lcreate_addr_space.c x86/Lget_save_loc.c x86/Lglobal.c \ |
| 164 | x86/Linit.c x86/Linit_local.c x86/Linit_remote.c \ |
| 165 | x86/Lis_signal_frame.c x86/Lget_proc_info.c x86/Lregs.c \ |
| 166 | x86/Lresume.c x86/Lstep.c |
mostang.com!davidm | f6c7a65 | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 167 | |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 168 | # The list of files that go into libunwind-x86: |
hp.com!davidm | 1738b3b | 2004-01-30 00:01:24 +0000 | [diff] [blame] | 169 | libunwind_x86_la_SOURCES_x86 = $(libunwind_la_SOURCES_x86_common) \ |
| 170 | $(libunwind_la_SOURCES_generic) \ |
| 171 | $(dwarf_SOURCES_generic) \ |
| 172 | dwarf/Gfind_proc_info-lsb.c \ |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 173 | x86/Gcreate_addr_space.c x86/Gget_save_loc.c x86/Gglobal.c \ |
| 174 | x86/Ginit.c x86/Ginit_local.c x86/Ginit_remote.c \ |
| 175 | x86/Gis_signal_frame.c x86/Gget_proc_info.c x86/Gregs.c \ |
| 176 | x86/Gresume.c x86/Gstep.c |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 177 | |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 178 | # The list of files that go both into libunwind and libunwind-x86_64: |
| 179 | libunwind_la_SOURCES_x86_64_common = $(libunwind_la_SOURCES_common) \ |
| 180 | $(dwarf_SOURCES_common) \ |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame^] | 181 | elf64.c elf64.h \ |
| 182 | x86_64/setcontext.S \ |
homeip.net!davidm | f028c7d | 2004-08-20 11:26:49 +0000 | [diff] [blame] | 183 | x86_64/init.h x86_64/unwind_i.h x86_64/ucontext_i.h \ |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 184 | x86_64/is_fpreg.c x86_64/regname.c |
| 185 | |
| 186 | # The list of files that go into libunwind: |
| 187 | libunwind_la_SOURCES_x86_64 = $(libunwind_la_SOURCES_x86_64_common) \ |
| 188 | $(libunwind_la_SOURCES_local) \ |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 189 | $(dwarf_SOURCES_local) \ |
| 190 | dwarf/Lfind_proc_info-lsb.c \ |
| 191 | x86_64/Lcreate_addr_space.c x86_64/Lget_save_loc.c x86_64/Lglobal.c \ |
| 192 | x86_64/Linit.c x86_64/Linit_local.c x86_64/Linit_remote.c \ |
| 193 | x86_64/Lis_signal_frame.c x86_64/Lget_proc_info.c x86_64/Lregs.c \ |
| 194 | x86_64/Lresume.c x86_64/Lstep.c |
| 195 | |
| 196 | # The list of files that go into libunwind: |
| 197 | libunwind_x86_64_la_SOURCES_x86_64 = $(libunwind_la_SOURCES_x86_64_common) \ |
| 198 | $(libunwind_la_SOURCES_generic) \ |
| 199 | $(dwarf_SOURCES_generic) \ |
| 200 | dwarf/Gfind_proc_info-lsb.c \ |
| 201 | x86_64/Gcreate_addr_space.c x86_64/Gget_save_loc.c x86_64/Gglobal.c \ |
| 202 | x86_64/Ginit.c x86_64/Ginit_local.c x86_64/Ginit_remote.c \ |
| 203 | x86_64/Gis_signal_frame.c x86_64/Gget_proc_info.c x86_64/Gregs.c \ |
| 204 | x86_64/Gresume.c x86_64/Gstep.c |
| 205 | |
mostang.com!davidm | 0adb97c | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 206 | if REMOTE_ONLY |
mostang.com!davidm | 0adb97c | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 207 | install-exec-hook: |
| 208 | # Nothing to do here.... |
| 209 | else |
mostang.com!davidm | 0adb97c | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 210 | # |
| 211 | # This is not ideal, but I know of no other way to install an |
| 212 | # alias for a library. |
| 213 | # |
| 214 | install-exec-hook: |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 215 | $(LN_S) -f libunwind-$(arch).a $(DESTDIR)$(libdir)/libunwind-generic.a |
| 216 | $(LN_S) -f libunwind-$(arch).so \ |
| 217 | $(DESTDIR)$(libdir)/libunwind-generic.so |
mostang.com!davidm | 0adb97c | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 218 | endif |
| 219 | |
| 220 | if OS_LINUX |
hp.com!davidm | 051da9c | 2004-05-06 22:02:00 +0000 | [diff] [blame] | 221 | libunwind_la_SOURCES_os = $(libunwind_la_SOURCES_os_linux) |
| 222 | libunwind_la_SOURCES_os_local = $(libunwind_la_SOURCES_os_linux_local) |
mostang.com!davidm | 0adb97c | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 223 | endif |
| 224 | |
mostang.com!davidm | 5929f8e | 2003-04-03 07:59:15 +0000 | [diff] [blame] | 225 | if OS_HPUX |
hp.com!davidm | 051da9c | 2004-05-06 22:02:00 +0000 | [diff] [blame] | 226 | libunwind_la_SOURCES_os = $(libunwind_la_SOURCES_os_hpux) |
| 227 | libunwind_la_SOURCES_os_local = $(libunwind_la_SOURCES_os_hpux_local) |
mostang.com!davidm | 5929f8e | 2003-04-03 07:59:15 +0000 | [diff] [blame] | 228 | endif |
| 229 | |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 230 | if ARCH_IA64 |
hp.com!davidm | f9c59cd | 2004-08-18 10:43:50 +0000 | [diff] [blame] | 231 | ia64_mk_Gcursor_i_SOURCES = ia64/mk_Gcursor_i.c |
| 232 | ia64_mk_Lcursor_i_SOURCES = ia64/mk_Lcursor_i.c |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 233 | noinst_PROGRAMS = ia64/mk_Gcursor_i ia64/mk_Lcursor_i |
mostang.com!davidm | 8e85e81 | 2003-04-23 19:22:42 +0000 | [diff] [blame] | 234 | BUILT_SOURCES = Gcursor_i.h Lcursor_i.h |
homeip.net!davidm | bf2c454 | 2004-08-17 15:34:28 +0000 | [diff] [blame] | 235 | Gcursor_i.h: ia64/mk_Gcursor_i |
| 236 | ia64/mk_Gcursor_i > $@ |
| 237 | Lcursor_i.h: ia64/mk_Lcursor_i |
| 238 | ia64/mk_Lcursor_i > $@ |
mostang.com!davidm | ad7f147 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 239 | lib_LTLIBRARIES_arch = libunwind-ia64.la |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 240 | libunwind_la_SOURCES = $(libunwind_la_SOURCES_ia64) |
| 241 | libunwind_ia64_la_SOURCES = $(libunwind_ia64_la_SOURCES_ia64) |
hp.com!davidm | ed32b99 | 2004-04-20 16:53:44 +0000 | [diff] [blame] | 242 | libunwind_ia64_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION) |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 243 | if !REMOTE_ONLY |
hp.com!davidm | ed32b99 | 2004-04-20 16:53:44 +0000 | [diff] [blame] | 244 | libunwind_ia64_la_LIBADD = libunwind.la -lc |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 245 | endif |
mostang.com!davidm | ad7f147 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 246 | libunwind_setjmp_la_SOURCES = $(libunwind_setjmp_la_SOURCES_common) \ |
| 247 | $(libunwind_setjmp_la_SOURCES_ia64) |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 248 | else |
mostang.com!davidm | f6c7a65 | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 249 | if ARCH_HPPA |
mostang.com!davidm | ad7f147 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 250 | lib_LTLIBRARIES_arch = libunwind-hppa.la |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 251 | libunwind_la_SOURCES = $(libunwind_la_SOURCES_hppa) |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 252 | libunwind_hppa_la_SOURCES = $(libunwind_hppa_la_SOURCES_hppa) |
hp.com!davidm | ed32b99 | 2004-04-20 16:53:44 +0000 | [diff] [blame] | 253 | libunwind_hppa_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION) |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 254 | if !REMOTE_ONLY |
hp.com!davidm | ed32b99 | 2004-04-20 16:53:44 +0000 | [diff] [blame] | 255 | libunwind_hppa_la_LIBADD = libunwind.la -lc |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 256 | endif |
mostang.com!davidm | ad7f147 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 257 | libunwind_setjmp_la_SOURCES = $(libunwind_setjmp_la_SOURCES_common) \ |
| 258 | $(libunwind_setjmp_la_SOURCES_hppa) |
mostang.com!davidm | f6c7a65 | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 259 | else |
mostang.com!davidm | 3ae9b81 | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 260 | if ARCH_X86 |
mostang.com!davidm | ad7f147 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 261 | lib_LTLIBRARIES_arch = libunwind-x86.la |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 262 | libunwind_la_SOURCES = $(libunwind_la_SOURCES_x86) |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 263 | libunwind_x86_la_SOURCES = $(libunwind_x86_la_SOURCES_x86) |
hp.com!davidm | ed32b99 | 2004-04-20 16:53:44 +0000 | [diff] [blame] | 264 | libunwind_x86_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION) |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 265 | if !REMOTE_ONLY |
hp.com!davidm | ed32b99 | 2004-04-20 16:53:44 +0000 | [diff] [blame] | 266 | libunwind_x86_la_LIBADD = libunwind.la -lc |
hp.com!davidm | f06787a | 2004-01-22 08:36:15 +0000 | [diff] [blame] | 267 | endif |
mostang.com!davidm | ad7f147 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 268 | libunwind_setjmp_la_SOURCES = $(libunwind_setjmp_la_SOURCES_common) \ |
| 269 | $(libunwind_setjmp_la_SOURCES_x86) |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 270 | else |
| 271 | if ARCH_X86_64 |
| 272 | lib_LTLIBRARIES_arch = libunwind-x86_64.la |
| 273 | libunwind_la_SOURCES = $(libunwind_la_SOURCES_x86_64) |
| 274 | libunwind_x86_64_la_SOURCES = $(libunwind_x86_64_la_SOURCES_x86_64) |
| 275 | libunwind_x86_64_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION) |
| 276 | if !REMOTE_ONLY |
| 277 | libunwind_x86_64_la_LIBADD = libunwind.la -lc |
| 278 | endif |
| 279 | libunwind_setjmp_la_SOURCES = $(libunwind_setjmp_la_SOURCES_common) \ |
| 280 | $(libunwind_setjmp_la_SOURCES_x86_64) |
| 281 | endif # ARCH_X86_64 |
mostang.com!davidm | f6c7a65 | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 282 | endif # ARCH_X86 |
| 283 | endif # ARCH_HPPA |
| 284 | endif # ARCH_IA64 |
mostang.com!davidm | 00abcc6 | 2002-04-19 05:35:46 +0000 | [diff] [blame] | 285 | |
hp.com!davidm | 16af7ae | 2005-05-03 09:13:17 +0000 | [diff] [blame^] | 286 | # |
| 287 | # Don't link with standard libraries, because those may mention |
| 288 | # libunwind already. |
| 289 | # |
| 290 | libunwind_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -XCClinker -nostdlib \ |
| 291 | $(LDFLAGS_STATIC_LIBCXA) -version-info $(SOVERSION) |
hp.com!davidm | 27a9067 | 2004-11-03 21:50:24 +0000 | [diff] [blame] | 292 | libunwind_la_LIBADD = -lc $(LIBCRTS) |
hp.com!davidm | 1656663 | 2004-01-03 10:50:24 +0000 | [diff] [blame] | 293 | |
| 294 | lib_LIBRARIES = $(LIBRARIES_cdep) |
homeip.net!davidm | f028c7d | 2004-08-20 11:26:49 +0000 | [diff] [blame] | 295 | lib_LTLIBRARIES = $(lib_LTLIBRARIES_cdep) $(lib_LTLIBRARIES_arch) \ |
| 296 | $(lib_LTLIBRARIES_cdep_setjmp) |
mostang.com!davidm | ad7f147 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 297 | |
hp.com!davidm | 2376081 | 2003-12-20 11:50:00 +0000 | [diff] [blame] | 298 | AM_CPPFLAGS = -I$(top_srcdir)/include/$(arch) -I$(top_srcdir)/include -I. |
mostang.com!davidm | ad7f147 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 299 | AM_CCASFLAGS = $(AM_CPPFLAGS) |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 300 | |
hp.com!davidm | 22d6f35 | 2004-08-26 10:02:46 +0000 | [diff] [blame] | 301 | EXTRA_DIST = elfxx.h elfxx.c unwind/unwind-internal.h \ |
| 302 | $(libunwind_la_SOURCES_hppa) \ |
| 303 | $(libunwind_la_SOURCES_ia64) \ |
| 304 | $(libunwind_la_SOURCES_x86) \ |
| 305 | $(libunwind_la_SOURCES_os_linux) \ |
| 306 | $(libunwind_la_SOURCES_os_hpux) \ |
| 307 | $(libunwind_la_SOURCES_common) \ |
| 308 | $(libunwind_la_SOURCES_local) \ |
| 309 | $(libunwind_la_SOURCES_generic) \ |
| 310 | $(libunwind_hppa_la_SOURCES_hppa) \ |
| 311 | $(libunwind_ia64_la_SOURCES_ia64) \ |
| 312 | $(libunwind_x86_la_SOURCES_x86) \ |
| 313 | $(libunwind_x86_64_la_SOURCES_x86_64) \ |
| 314 | $(libunwind_ptrace_a_SOURCES) \ |
| 315 | $(libunwind_setjmp_la_SOURCES_common) \ |
| 316 | $(libunwind_setjmp_la_SOURCES_hppa) \ |
| 317 | $(libunwind_setjmp_la_SOURCES_ia64) \ |
| 318 | $(libunwind_setjmp_la_SOURCES_x86) \ |
ibm.com!masbock | aa9a917 | 2004-08-19 13:39:10 +0000 | [diff] [blame] | 319 | $(libunwind_setjmp_la_SOURCES_x86_64) |
mostang.com!davidm | 0adb97c | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 320 | |
mostang.com!davidm | 83b038d | 2002-02-28 16:24:48 +0000 | [diff] [blame] | 321 | # The -version-info flag accepts an argument of the form |
| 322 | # `current[:revision[:age]]'. So, passing `-version-info 3:12:1' sets |
| 323 | # current to 3, revision to 12, and age to 1. |
| 324 | |
| 325 | # If either revision or age are omitted, they default to 0. Also note |
| 326 | # that age must be less than or equal to the current interface number. |
| 327 | |
| 328 | # Here are a set of rules to help you update your library version |
| 329 | # information: |
| 330 | |
| 331 | # 1. Start with version information of `0:0:0' for each libtool |
| 332 | # library. |
| 333 | |
| 334 | # 2. Update the version information only immediately before a public |
| 335 | # release of your software. More frequent updates are unnecessary, |
| 336 | # and only guarantee that the current interface number gets larger |
| 337 | # faster. |
| 338 | |
| 339 | # 3. If the library source code has changed at all since the last |
| 340 | # update, then increment revision (`c:r:a' becomes `c:r+1:a'). |
| 341 | |
| 342 | # 4. If any interfaces have been added, removed, or changed since the |
| 343 | # last update, increment current, and set revision to 0. |
| 344 | |
| 345 | # 5. If any interfaces have been added since the last public release, |
| 346 | # then increment age. |
| 347 | |
| 348 | # 6. If any interfaces have been removed since the last public |
| 349 | # release, then set age to 0. |