blob: ca60332db84bc96ac43f6fd1119c4e72259802b9 [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 \
mostang.com!davidm3ae9b812002-12-19 07:16:50 +00005 dyn-cancel.c dyn-extract.c dyn-register.c \
mostang.com!davidmafd39632002-12-12 09:17:41 +00006 dyn-remote.c \
mostang.com!davidm3ae9b812002-12-19 07:16:50 +00007 mi-init.c \
8 mempool.c \
mostang.com!davidmafd39632002-12-12 09:17:41 +00009 Gfind_dynamic_proc_info.c Gput_dynamic_unwind_info.c \
10 Lfind_dynamic_proc_info.c Lput_dynamic_unwind_info.c
mostang.com!davidma6d51ee2002-04-25 06:47:29 +000011
mostang.com!davidmafd39632002-12-12 09:17:41 +000012if REMOTE_ONLY
13# Nothing special.
14else
mostang.com!davidma6d51ee2002-04-25 06:47:29 +000015#
16# This is not ideal, but I know of no other way to install an
17# alias for a library.
18#
19install-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!davidm6432d812002-04-05 23:37:55 +000023endif
mostang.com!davidm83b038d2002-02-28 16:24:48 +000024
mostang.com!davidm3ae9b812002-12-19 07:16:50 +000025#
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
32libunwind_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!davidm6432d812002-04-05 23:37:55 +000058
mostang.com!davidmf6c7a652003-01-14 07:11:56 +000059libunwind_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
72libunwind_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!davidm6432d812002-04-05 23:37:55 +000085if ARCH_IA64
hp.com!davidm6432d812002-04-05 23:37:55 +000086 lib_LTLIBRARIES = libunwind-ia64.la
mostang.com!davidma6d51ee2002-04-25 06:47:29 +000087 libunwind_ia64_la_SOURCES = $(libunwind_la_SOURCES_ia64)
88 libunwind_ia64_la_LDFLAGS = -version-info $(SOVERSION)
hp.com!davidm6432d812002-04-05 23:37:55 +000089else
mostang.com!davidmf6c7a652003-01-14 07:11:56 +000090if 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)
94else
mostang.com!davidm3ae9b812002-12-19 07:16:50 +000095if ARCH_X86
mostang.com!davidm3ae9b812002-12-19 07:16:50 +000096 lib_LTLIBRARIES = libunwind-x86.la
97 libunwind_x86_la_SOURCES = $(libunwind_la_SOURCES_x86)
98 libunwind_x86_la_LDFLAGS = -version-info $(SOVERSION)
mostang.com!davidmf6c7a652003-01-14 07:11:56 +000099endif # ARCH_X86
100endif # ARCH_HPPA
101endif # ARCH_IA64
mostang.com!davidm00abcc62002-04-19 05:35:46 +0000102
103# XXX Need to create symlinks from libunwind-ia64.so to libunwind.so
104# XXX end libunwind-ia64.a to libunwind.a
hp.com!davidm6432d812002-04-05 23:37:55 +0000105
106AM_CPPFLAGS = -I$(top_srcdir)/include
107
mostang.com!davidm83b038d2002-02-28 16:24:48 +0000108# 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.