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 \ |
| 5 | dyn-cancel.c dyn-extract.c dyn-local.c dyn-register.c \ |
| 6 | dyn-remote.c \ |
| 7 | mempool.c mempool.h \ |
| 8 | Gfind_dynamic_proc_info.c Gput_dynamic_unwind_info.c \ |
| 9 | Lfind_dynamic_proc_info.c Lput_dynamic_unwind_info.c |
mostang.com!davidm | a6d51ee | 2002-04-25 06:47:29 +0000 | [diff] [blame] | 10 | |
mostang.com!davidm | afd3963 | 2002-12-12 09:17:41 +0000 | [diff] [blame^] | 11 | if REMOTE_ONLY |
| 12 | # Nothing special. |
| 13 | else |
mostang.com!davidm | a6d51ee | 2002-04-25 06:47:29 +0000 | [diff] [blame] | 14 | # |
| 15 | # This is not ideal, but I know of no other way to install an |
| 16 | # alias for a library. |
| 17 | # |
| 18 | install-exec-hook: |
| 19 | $(LN_S) -f libunwind-$(arch).a $(DESTDIR)$(libdir)/libunwind.a |
| 20 | $(LN_S) -f libunwind-$(arch).so $(DESTDIR)$(libdir)/libunwind.so |
| 21 | |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 22 | endif |
mostang.com!davidm | 83b038d | 2002-02-28 16:24:48 +0000 | [diff] [blame] | 23 | |
mostang.com!davidm | afd3963 | 2002-12-12 09:17:41 +0000 | [diff] [blame^] | 24 | libunwind_la_SOURCES_ia64 = $(libunwind_la_SOURCES_common) \ |
| 25 | ia64/init.h ia64/offsets.h ia64/regs.h ia64/rse.h \ |
| 26 | ia64/ucontext_i.h ia64/unwind_decoder.h ia64/unwind_i.h \ |
| 27 | \ |
| 28 | ia64/__ia64_install_context.S ia64/tables.c \ |
| 29 | ia64/unw_regname.c \ |
| 30 | \ |
| 31 | ia64/Ginit.c ia64/Gparser.c ia64/Gregs.c ia64/Gscript.c \ |
| 32 | ia64/Gcreate_addr_space.c ia64/Gdestroy_addr_space.c \ |
| 33 | ia64/Gset_caching_policy.c ia64/Gflush_cache.c \ |
| 34 | ia64/Gget_accessors.c ia64/Gget_proc_info.c ia64/Gget_proc_name.c \ |
| 35 | ia64/Gget_reg.c ia64/Gget_fpreg.c ia64/Gget_save_loc.c \ |
| 36 | ia64/Gis_signal_frame.c \ |
| 37 | ia64/Gresume.c ia64/Gset_reg.c ia64/Gset_fpreg.c \ |
| 38 | ia64/Ginit_local.c ia64/Ginit_remote.c ia64/Gstep.c \ |
| 39 | \ |
| 40 | ia64/Linit.c ia64/Lparser.c ia64/Lregs.c ia64/Lscript.c \ |
| 41 | ia64/Lcreate_addr_space.c ia64/Ldestroy_addr_space.c \ |
| 42 | ia64/Lset_caching_policy.c ia64/Lflush_cache.c \ |
| 43 | ia64/Lget_accessors.c ia64/Lget_proc_info.c ia64/Lget_proc_name.c \ |
| 44 | ia64/Lget_reg.c ia64/Lget_fpreg.c ia64/Lget_save_loc.c \ |
| 45 | ia64/Lis_signal_frame.c \ |
| 46 | ia64/Lresume.c ia64/Lset_reg.c ia64/Lset_fpreg.c \ |
| 47 | ia64/Linit_local.c ia64/Linit_remote.c ia64/Lstep.c |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 48 | |
| 49 | if ARCH_IA64 |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 50 | lib_LTLIBRARIES = libunwind-ia64.la |
mostang.com!davidm | a6d51ee | 2002-04-25 06:47:29 +0000 | [diff] [blame] | 51 | libunwind_ia64_la_SOURCES = $(libunwind_la_SOURCES_ia64) |
| 52 | libunwind_ia64_la_LDFLAGS = -version-info $(SOVERSION) |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 53 | else |
| 54 | if ARCH_IA32 |
| 55 | lib_LTLIBRARIES = libunwind-ia32.la |
mostang.com!davidm | a6d51ee | 2002-04-25 06:47:29 +0000 | [diff] [blame] | 56 | libunwind_ia32_la_SOURCES = $(libunwind_la_SOURCES_ia32) |
| 57 | libunwind_ia64_la_LDFLAGS = -version-info $(SOVERSION) |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 58 | endif |
| 59 | endif |
mostang.com!davidm | 00abcc6 | 2002-04-19 05:35:46 +0000 | [diff] [blame] | 60 | |
| 61 | # XXX Need to create symlinks from libunwind-ia64.so to libunwind.so |
| 62 | # XXX end libunwind-ia64.a to libunwind.a |
hp.com!davidm | 6432d81 | 2002-04-05 23:37:55 +0000 | [diff] [blame] | 63 | |
| 64 | AM_CPPFLAGS = -I$(top_srcdir)/include |
| 65 | |
mostang.com!davidm | 83b038d | 2002-02-28 16:24:48 +0000 | [diff] [blame] | 66 | # The -version-info flag accepts an argument of the form |
| 67 | # `current[:revision[:age]]'. So, passing `-version-info 3:12:1' sets |
| 68 | # current to 3, revision to 12, and age to 1. |
| 69 | |
| 70 | # If either revision or age are omitted, they default to 0. Also note |
| 71 | # that age must be less than or equal to the current interface number. |
| 72 | |
| 73 | # Here are a set of rules to help you update your library version |
| 74 | # information: |
| 75 | |
| 76 | # 1. Start with version information of `0:0:0' for each libtool |
| 77 | # library. |
| 78 | |
| 79 | # 2. Update the version information only immediately before a public |
| 80 | # release of your software. More frequent updates are unnecessary, |
| 81 | # and only guarantee that the current interface number gets larger |
| 82 | # faster. |
| 83 | |
| 84 | # 3. If the library source code has changed at all since the last |
| 85 | # update, then increment revision (`c:r:a' becomes `c:r+1:a'). |
| 86 | |
| 87 | # 4. If any interfaces have been added, removed, or changed since the |
| 88 | # last update, increment current, and set revision to 0. |
| 89 | |
| 90 | # 5. If any interfaces have been added since the last public release, |
| 91 | # then increment age. |
| 92 | |
| 93 | # 6. If any interfaces have been removed since the last public |
| 94 | # release, then set age to 0. |