blob: 52163e4ab6260d71654dc654b57873b0d1cfcca2 [file] [log] [blame]
mostang.com!davidma6d51ee2002-04-25 06:47:29 +00001SOVERSION=0:0:0 # See comments at end of file.
2
mostang.com!davidmafd39632002-12-12 09:17:41 +00003libunwind_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!davidma6d51ee2002-04-25 06:47:29 +000010
mostang.com!davidmafd39632002-12-12 09:17:41 +000011if REMOTE_ONLY
12# Nothing special.
13else
mostang.com!davidma6d51ee2002-04-25 06:47:29 +000014#
15# This is not ideal, but I know of no other way to install an
16# alias for a library.
17#
18install-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!davidm6432d812002-04-05 23:37:55 +000022endif
mostang.com!davidm83b038d2002-02-28 16:24:48 +000023
mostang.com!davidmafd39632002-12-12 09:17:41 +000024libunwind_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!davidm6432d812002-04-05 23:37:55 +000048
49if ARCH_IA64
hp.com!davidm6432d812002-04-05 23:37:55 +000050 lib_LTLIBRARIES = libunwind-ia64.la
mostang.com!davidma6d51ee2002-04-25 06:47:29 +000051 libunwind_ia64_la_SOURCES = $(libunwind_la_SOURCES_ia64)
52 libunwind_ia64_la_LDFLAGS = -version-info $(SOVERSION)
hp.com!davidm6432d812002-04-05 23:37:55 +000053else
54if ARCH_IA32
55 lib_LTLIBRARIES = libunwind-ia32.la
mostang.com!davidma6d51ee2002-04-25 06:47:29 +000056 libunwind_ia32_la_SOURCES = $(libunwind_la_SOURCES_ia32)
57 libunwind_ia64_la_LDFLAGS = -version-info $(SOVERSION)
hp.com!davidm6432d812002-04-05 23:37:55 +000058endif
59endif
mostang.com!davidm00abcc62002-04-19 05:35:46 +000060
61# XXX Need to create symlinks from libunwind-ia64.so to libunwind.so
62# XXX end libunwind-ia64.a to libunwind.a
hp.com!davidm6432d812002-04-05 23:37:55 +000063
64AM_CPPFLAGS = -I$(top_srcdir)/include
65
mostang.com!davidm83b038d2002-02-28 16:24:48 +000066# 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.