mostang.com!davidm | 427c189 | 2003-01-21 17:41:20 +0000 | [diff] [blame] | 1 | SOVERSION=1:0:0 # See comments at end of file. |
mostang.com!davidm | a6d51ee | 2002-04-25 06:47:29 +0000 | [diff] [blame] | 2 | |
mostang.com!davidm | afd3963 | 2002-12-12 09:17:41 +0000 | [diff] [blame] | 3 | if REMOTE_ONLY |
| 4 | # Nothing special. |
| 5 | else |
hp.com!davidm | 74ee8e4 | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6 | |
| 7 | libunwind_la_SOURCES_cdep = \ |
| 8 | _UPT_internal.h \ |
| 9 | \ |
| 10 | _UPT_accessors.c _UPT_access_fpreg.c _UPT_access_mem.c \ |
| 11 | _UPT_access_reg.c _UPT_create.c _UPT_destroy.c _UPT_find_proc_info.c \ |
| 12 | _UPT_get_dyn_info_list_addr.c _UPT_put_unwind_info.c \ |
| 13 | _UPT_reg_offset.c |
| 14 | |
mostang.com!davidm | a6d51ee | 2002-04-25 06:47:29 +0000 | [diff] [blame] | 15 | # |
| 16 | # This is not ideal, but I know of no other way to install an |
| 17 | # alias for a library. |
| 18 | # |
| 19 | install-exec-hook: |
| 20 | $(LN_S) -f libunwind-$(arch).a $(DESTDIR)$(libdir)/libunwind.a |
| 21 | $(LN_S) -f libunwind-$(arch).so $(DESTDIR)$(libdir)/libunwind.so |
| 22 | |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 23 | endif |
mostang.com!davidm | 83b038d | 2002-02-28 16:24:48 +0000 | [diff] [blame] | 24 | |
hp.com!davidm | 74ee8e4 | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 25 | libunwind_la_SOURCES_common = $(libunwind_la_SOURCES_cdep) \ |
| 26 | backtrace.c get_proc_name.c \ |
| 27 | dyn-cancel.c dyn-extract.c dyn-register.c \ |
| 28 | dyn-remote.c \ |
| 29 | mi-init.c \ |
| 30 | mempool.c \ |
| 31 | Gfind_dynamic_proc_info.c Gput_dynamic_unwind_info.c \ |
| 32 | Lfind_dynamic_proc_info.c Lput_dynamic_unwind_info.c |
| 33 | |
mostang.com!davidm | 3ae9b81 | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 34 | # |
| 35 | # Note: As of automake-1.6, there is a stupid limitation which requires |
| 36 | # that each filename is unique. This prevents us from having, e.g., |
| 37 | # ia64/tables.c and x86/tables.c. The fix for now is to uglify the |
| 38 | # filenames by appending the arch-name (e.g., tables-ia64.c). Oh, well. |
| 39 | # |
| 40 | |
| 41 | libunwind_la_SOURCES_ia64 = $(libunwind_la_SOURCES_common) \ |
hp.com!davidm | 74ee8e4 | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 42 | ia64/init.h ia64/offsets.h ia64/regs.h ia64/rse.h \ |
mostang.com!davidm | 3ae9b81 | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 43 | ia64/ucontext_i.h ia64/unwind_decoder.h ia64/unwind_i.h \ |
| 44 | \ |
mostang.com!davidm | 427c189 | 2003-01-21 17:41:20 +0000 | [diff] [blame] | 45 | ia64/__ia64_install_context.S ia64/global-ia64.c ia64/rbs-ia64.c \ |
| 46 | ia64/tables-ia64.c ia64/get_accessors-ia64.c \ |
mostang.com!davidm | 3ae9b81 | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 47 | ia64/flush_cache-ia64.c ia64/set_caching_policy-ia64.c \ |
| 48 | ia64/regname-ia64.c \ |
| 49 | \ |
| 50 | ia64/Ginit-ia64.c ia64/Gparser-ia64.c ia64/Gregs-ia64.c \ |
| 51 | ia64/Gscript-ia64.c ia64/Gcreate_addr_space-ia64.c \ |
| 52 | ia64/Gdestroy_addr_space-ia64.c \ |
| 53 | ia64/Gget_proc_info-ia64.c ia64/Gget_proc_name-ia64.c \ |
| 54 | ia64/Gget_reg-ia64.c ia64/Gget_fpreg-ia64.c ia64/Gget_save_loc-ia64.c \ |
| 55 | ia64/Gis_signal_frame-ia64.c \ |
| 56 | ia64/Gresume-ia64.c ia64/Gset_reg-ia64.c ia64/Gset_fpreg-ia64.c \ |
| 57 | ia64/Ginit_local-ia64.c ia64/Ginit_remote-ia64.c ia64/Gstep-ia64.c \ |
| 58 | \ |
| 59 | ia64/Linit-ia64.c ia64/Lparser-ia64.c ia64/Lregs-ia64.c \ |
| 60 | ia64/Lscript-ia64.c ia64/Lcreate_addr_space-ia64.c \ |
| 61 | ia64/Ldestroy_addr_space-ia64.c \ |
| 62 | ia64/Lget_proc_info-ia64.c ia64/Lget_proc_name-ia64.c \ |
| 63 | ia64/Lget_reg-ia64.c ia64/Lget_fpreg-ia64.c ia64/Lget_save_loc-ia64.c \ |
| 64 | ia64/Lis_signal_frame-ia64.c \ |
| 65 | ia64/Lresume-ia64.c ia64/Lset_reg-ia64.c ia64/Lset_fpreg-ia64.c \ |
| 66 | ia64/Linit_local-ia64.c ia64/Linit_remote-ia64.c ia64/Lstep-ia64.c |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 67 | |
mostang.com!davidm | f6c7a65 | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 68 | libunwind_la_SOURCES_hppa = $(libunwind_la_SOURCES_common) \ |
| 69 | hppa/flush_cache-hppa.c hppa/get_accessors-hppa.c \ |
| 70 | hppa/global-hppa.c hppa/tables-hppa.c \ |
| 71 | hppa/init.h hppa/unwind_i.h \ |
| 72 | \ |
| 73 | hppa/Gget_reg-hppa.c hppa/Gget_proc_name-hppa.c \ |
| 74 | hppa/Ginit-hppa.c hppa/Ginit_local-hppa.c \ |
| 75 | hppa/Gget_proc_info-hppa.c hppa/Gregs-hppa.c hppa/Gstep-hppa.c \ |
| 76 | \ |
| 77 | hppa/Lget_reg-hppa.c hppa/Lget_proc_name-hppa.c \ |
| 78 | hppa/Linit-hppa.c hppa/Linit_local-hppa.c \ |
| 79 | hppa/Lget_proc_info-hppa.c hppa/Lregs-hppa.c hppa/Lstep-hppa.c |
| 80 | |
| 81 | libunwind_la_SOURCES_x86 = $(libunwind_la_SOURCES_common) \ |
| 82 | x86/flush_cache-x86.c x86/get_accessors-x86.c x86/global-x86.c \ |
| 83 | x86/tables-x86.c \ |
| 84 | x86/init.h x86/unwind_i.h \ |
| 85 | \ |
| 86 | x86/Gget_reg-x86.c x86/Gget_proc_name-x86.c x86/Ginit-x86.c \ |
| 87 | x86/Ginit_local-x86.c x86/Gget_proc_info-x86.c x86/Gregs-x86.c \ |
| 88 | x86/Gstep-x86.c \ |
| 89 | \ |
| 90 | x86/Lget_reg-x86.c x86/Lget_proc_name-x86.c x86/Linit-x86.c \ |
| 91 | x86/Linit_local-x86.c x86/Lget_proc_info-x86.c x86/Lregs-x86.c \ |
| 92 | x86/Lstep-x86.c |
| 93 | |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 94 | if ARCH_IA64 |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 95 | lib_LTLIBRARIES = libunwind-ia64.la |
mostang.com!davidm | a6d51ee | 2002-04-25 06:47:29 +0000 | [diff] [blame] | 96 | libunwind_ia64_la_SOURCES = $(libunwind_la_SOURCES_ia64) |
| 97 | libunwind_ia64_la_LDFLAGS = -version-info $(SOVERSION) |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 98 | else |
mostang.com!davidm | f6c7a65 | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 99 | if ARCH_HPPA |
| 100 | lib_LTLIBRARIES = libunwind-hppa.la |
| 101 | libunwind_hppa_la_SOURCES = $(libunwind_la_SOURCES_hppa) |
| 102 | libunwind_hppa_la_LDFLAGS = -version-info $(SOVERSION) |
| 103 | else |
mostang.com!davidm | 3ae9b81 | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 104 | if ARCH_X86 |
mostang.com!davidm | 3ae9b81 | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 105 | lib_LTLIBRARIES = libunwind-x86.la |
| 106 | libunwind_x86_la_SOURCES = $(libunwind_la_SOURCES_x86) |
| 107 | libunwind_x86_la_LDFLAGS = -version-info $(SOVERSION) |
mostang.com!davidm | f6c7a65 | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 108 | endif # ARCH_X86 |
| 109 | endif # ARCH_HPPA |
| 110 | endif # ARCH_IA64 |
mostang.com!davidm | 00abcc6 | 2002-04-19 05:35:46 +0000 | [diff] [blame] | 111 | |
| 112 | # XXX Need to create symlinks from libunwind-ia64.so to libunwind.so |
| 113 | # XXX end libunwind-ia64.a to libunwind.a |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 114 | |
| 115 | AM_CPPFLAGS = -I$(top_srcdir)/include |
| 116 | |
mostang.com!davidm | 83b038d | 2002-02-28 16:24:48 +0000 | [diff] [blame] | 117 | # The -version-info flag accepts an argument of the form |
| 118 | # `current[:revision[:age]]'. So, passing `-version-info 3:12:1' sets |
| 119 | # current to 3, revision to 12, and age to 1. |
| 120 | |
| 121 | # If either revision or age are omitted, they default to 0. Also note |
| 122 | # that age must be less than or equal to the current interface number. |
| 123 | |
| 124 | # Here are a set of rules to help you update your library version |
| 125 | # information: |
| 126 | |
| 127 | # 1. Start with version information of `0:0:0' for each libtool |
| 128 | # library. |
| 129 | |
| 130 | # 2. Update the version information only immediately before a public |
| 131 | # release of your software. More frequent updates are unnecessary, |
| 132 | # and only guarantee that the current interface number gets larger |
| 133 | # faster. |
| 134 | |
| 135 | # 3. If the library source code has changed at all since the last |
| 136 | # update, then increment revision (`c:r:a' becomes `c:r+1:a'). |
| 137 | |
| 138 | # 4. If any interfaces have been added, removed, or changed since the |
| 139 | # last update, increment current, and set revision to 0. |
| 140 | |
| 141 | # 5. If any interfaces have been added since the last public release, |
| 142 | # then increment age. |
| 143 | |
| 144 | # 6. If any interfaces have been removed since the last public |
| 145 | # release, then set age to 0. |