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