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