blob: 9c7e5ce452edb3aad25736ca4101852c7ff04bb3 [file] [log] [blame]
homeip.net!davidmccdd6442004-08-19 10:45:23 +00001SOVERSION=7:0:0 # See comments at end of file.
mostang.com!davidmad7f1472003-02-08 10:10:59 +00002SETJMP_SO_VERSION=0:0:0
hp.com!davidmed32b992004-04-20 16:53:44 +00003#
hp.com!davidm16af7ae2005-05-03 09:13:17 +00004# Don't link with start-files since we don't use any constructors/destructors:
hp.com!davidmed32b992004-04-20 16:53:44 +00005#
hp.com!davidm16af7ae2005-05-03 09:13:17 +00006COMMON_SO_LDFLAGS = -XCClinker -nostartfiles
mostang.com!davidma6d51ee2002-04-25 06:47:29 +00007
hp.com!davidm16566632004-01-03 10:50:24 +00008if REMOTE_ONLY
9LIBRARIES_cdep =
10lib_LTLIBRARIES_cdep =
homeip.net!davidmf028c7d2004-08-20 11:26:49 +000011lib_LTLIBRARIES_cdep_setjmp =
hp.com!davidm16566632004-01-03 10:50:24 +000012else
13LIBRARIES_cdep = libunwind-ptrace.a
homeip.net!davidmf028c7d2004-08-20 11:26:49 +000014lib_LTLIBRARIES_cdep = libunwind.la
15lib_LTLIBRARIES_cdep_setjmp = libunwind-setjmp.la
hp.com!davidm16566632004-01-03 10:50:24 +000016endif
mostang.com!davidmad7f1472003-02-08 10:10:59 +000017
hp.com!davidm16566632004-01-03 10:50:24 +000018### libunwind-ptrace:
hp.com!davidm1738b3b2004-01-30 00:01:24 +000019libunwind_ptrace_a_SOURCES = \
hp.com!davidm16af7ae2005-05-03 09:13:17 +000020 ptrace/_UPT_elf.c \
hp.com!davidm1738b3b2004-01-30 00:01:24 +000021 ptrace/_UPT_internal.h \
22 ptrace/_UPT_accessors.c ptrace/_UPT_access_fpreg.c \
23 ptrace/_UPT_access_mem.c ptrace/_UPT_access_reg.c \
24 ptrace/_UPT_create.c ptrace/_UPT_destroy.c \
25 ptrace/_UPT_find_proc_info.c ptrace/_UPT_get_dyn_info_list_addr.c \
26 ptrace/_UPT_put_unwind_info.c ptrace/_UPT_get_proc_name.c \
27 ptrace/_UPT_reg_offset.c ptrace/_UPT_resume.c
hp.com!davidm16566632004-01-03 10:50:24 +000028
29### libunwind-setjmp:
hp.com!davidmed32b992004-04-20 16:53:44 +000030libunwind_setjmp_la_LDFLAGS = $(COMMON_SO_LDFLAGS) \
31 -version-info $(SETJMP_SO_VERSION)
32libunwind_setjmp_la_LIBADD = libunwind-$(arch).la -lc
hp.com!davidm16af7ae2005-05-03 09:13:17 +000033libunwind_setjmp_la_SOURCES_common = setjmp/setjmp_i.h \
34 setjmp/longjmp.c \
35 setjmp/siglongjmp.c
hp.com!davidmf4c8d532004-08-31 13:59:10 +000036libunwind_setjmp_la_SOURCES_ia64 = ia64/setjmp.S ia64/sigsetjmp.S \
37 ia64/longjmp.S ia64/siglongjmp.S
hp.com!davidm16af7ae2005-05-03 09:13:17 +000038libunwind_setjmp_la_SOURCES_hppa = hppa/siglongjmp.S
39libunwind_setjmp_la_SOURCES_x86 = x86/longjmp.S x86/siglongjmp.S
40libunwind_setjmp_la_SOURCES_x86_64 = x86_64/longjmp.S x86_64/siglongjmp.S
hp.com!davidm16566632004-01-03 10:50:24 +000041
42### libunwind:
43
mostang.com!davidma6b0ccf2004-01-14 06:21:52 +000044# List of arch-independent files needed by both local-only and generic
45# libraries:
bea.com!thallgrecb503ba2004-08-18 15:16:46 +000046libunwind_la_SOURCES_common = \
47 $(libunwind_la_SOURCES_os) \
48 mi/init.c mi/flush_cache.c mi/mempool.c mi/strerror.c
hp.com!davidm16566632004-01-03 10:50:24 +000049
50# List of arch-independent files needed by generic library (libunwind-$ARCH):
hp.com!davidm1738b3b2004-01-30 00:01:24 +000051libunwind_la_SOURCES_generic = \
52 mi/Gdyn-extract.c mi/Gdyn-remote.c mi/Gfind_dynamic_proc_info.c \
53 mi/Gget_accessors.c \
54 mi/Gget_proc_info_by_ip.c mi/Gget_proc_name.c \
55 mi/Gput_dynamic_unwind_info.c mi/Gdestroy_addr_space.c \
56 mi/Gget_reg.c mi/Gset_reg.c \
57 mi/Gget_fpreg.c mi/Gset_fpreg.c \
58 mi/Gset_caching_policy.c
hp.com!davidm16566632004-01-03 10:50:24 +000059
60# List of arch-independent files needed by local-only library (libunwind):
hp.com!davidm1738b3b2004-01-30 00:01:24 +000061libunwind_la_SOURCES_local = \
hp.com!davidm051da9c2004-05-06 22:02:00 +000062 $(libunwind_la_SOURCES_os_local) \
hp.com!davidma50c7802004-03-30 01:56:19 +000063 mi/backtrace.c \
hp.com!davidm1738b3b2004-01-30 00:01:24 +000064 mi/dyn-cancel.c mi/dyn-info-list.c mi/dyn-register.c \
65 mi/Ldyn-extract.c mi/Lfind_dynamic_proc_info.c \
66 mi/Lget_accessors.c \
67 mi/Lget_proc_info_by_ip.c mi/Lget_proc_name.c \
68 mi/Lput_dynamic_unwind_info.c mi/Ldestroy_addr_space.c \
69 mi/Lget_reg.c mi/Lset_reg.c \
70 mi/Lget_fpreg.c mi/Lset_fpreg.c \
71 mi/Lset_caching_policy.c \
72 unwind/Backtrace.c unwind/DeleteException.c \
73 unwind/FindEnclosingFunction.c unwind/ForcedUnwind.c \
74 unwind/GetBSP.c unwind/GetCFA.c unwind/GetDataRelBase.c \
75 unwind/GetGR.c unwind/GetIP.c unwind/GetLanguageSpecificData.c \
76 unwind/GetRegionStart.c unwind/GetTextRelBase.c \
77 unwind/RaiseException.c unwind/Resume.c \
78 unwind/Resume_or_Rethrow.c unwind/SetGR.c unwind/SetIP.c
hp.com!davidm02409462003-12-04 07:44:21 +000079
mostang.com!davidm0adb97c2003-03-19 19:25:18 +000080libunwind_la_SOURCES_os_linux = os-linux.h os-linux.c
hp.com!davidm051da9c2004-05-06 22:02:00 +000081
82# _ReadULEB()/_ReadSLEB() are needed for Intel C++ 8.0 compatibility
83libunwind_la_SOURCES_os_linux_local = mi/_ReadULEB.c mi/_ReadSLEB.c
mostang.com!davidm5929f8e2003-04-03 07:59:15 +000084libunwind_la_SOURCES_os_hpux = os-hpux.c
hp.com!davidm74ee8e42003-01-28 03:40:06 +000085
hp.com!davidmf06787a2004-01-22 08:36:15 +000086dwarf_SOURCES_common = \
homeip.net!davidmbf2c4542004-08-17 15:34:28 +000087 dwarf/global.c
hp.com!davidmf06787a2004-01-22 08:36:15 +000088
homeip.net!davidmbf2c4542004-08-17 15:34:28 +000089dwarf_SOURCES_local = \
90 dwarf/Lexpr.c dwarf/Lfde.c dwarf/Lparser.c dwarf/Lpe.c dwarf/Lstep.c
hp.com!davidm23760812003-12-20 11:50:00 +000091
homeip.net!davidmbf2c4542004-08-17 15:34:28 +000092dwarf_SOURCES_generic = \
93 dwarf/Gexpr.c dwarf/Gfde.c dwarf/Gparser.c dwarf/Gpe.c dwarf/Gstep.c
mostang.com!davidm3ae9b812002-12-19 07:16:50 +000094
hp.com!davidm16566632004-01-03 10:50:24 +000095# The list of files that go both into libunwind and libunwind-ia64:
hp.com!davidmf06787a2004-01-22 08:36:15 +000096libunwind_la_SOURCES_ia64_common = $(libunwind_la_SOURCES_common) \
hp.com!davidm16af7ae2005-05-03 09:13:17 +000097 elf64.c elf64.h \
mostang.com!davidmc47cf6a2004-05-04 22:16:57 +000098 ia64/init.h ia64/offsets.h ia64/regs.h \
hp.com!davidmf06787a2004-01-22 08:36:15 +000099 ia64/ucontext_i.h ia64/unwind_decoder.h ia64/unwind_i.h \
homeip.net!davidmbf2c4542004-08-17 15:34:28 +0000100 ia64/regname.c
hp.com!davidm16566632004-01-03 10:50:24 +0000101
102# The list of files that go into libunwind:
homeip.net!davidmbf2c4542004-08-17 15:34:28 +0000103libunwind_la_SOURCES_ia64 = $(libunwind_la_SOURCES_ia64_common) \
104 $(libunwind_la_SOURCES_local) \
105 \
homeip.net!davidmbf2c4542004-08-17 15:34:28 +0000106 ia64/dyn_info_list.S ia64/getcontext.S \
107 \
108 ia64/Lcreate_addr_space.c ia64/Lget_proc_info.c ia64/Lget_save_loc.c \
109 ia64/Lglobal.c ia64/Linit.c ia64/Linit_local.c ia64/Linit_remote.c \
110 ia64/Linstall_cursor.S ia64/Lis_signal_frame.c ia64/Lparser.c \
111 ia64/Lrbs.c ia64/Lregs.c ia64/Lresume.c ia64/Lscript.c ia64/Lstep.c \
112 ia64/Ltables.c
hp.com!davidm16566632004-01-03 10:50:24 +0000113
114# The list of files that go into libunwind-ia64:
homeip.net!davidmbf2c4542004-08-17 15:34:28 +0000115libunwind_ia64_la_SOURCES_ia64 = $(libunwind_la_SOURCES_ia64_common) \
116 $(libunwind_la_SOURCES_generic) \
117 ia64/Gcreate_addr_space.c ia64/Gget_proc_info.c ia64/Gget_save_loc.c \
118 ia64/Gglobal.c ia64/Ginit.c ia64/Ginit_local.c ia64/Ginit_remote.c \
119 ia64/Ginstall_cursor.S ia64/Gis_signal_frame.c ia64/Gparser.c \
120 ia64/Grbs.c ia64/Gregs.c ia64/Gresume.c ia64/Gscript.c ia64/Gstep.c \
121 ia64/Gtables.c
hp.com!davidm6432d812002-04-05 23:37:55 +0000122
hp.com!davidm16af7ae2005-05-03 09:13:17 +0000123# The list of files that go both into libunwind and libunwind-hppa:
124libunwind_la_SOURCES_hppa_common = $(libunwind_la_SOURCES_common) \
125 $(dwarf_SOURCES_common) \
126 elf32.c elf32.h \
127 hppa/init.h hppa/offsets.h hppa/unwind_i.h \
128 hppa/regname.c
129
130# The list of files that go into libunwind:
131libunwind_la_SOURCES_hppa = $(libunwind_la_SOURCES_hppa_common) \
132 $(libunwind_la_SOURCES_local) \
133 hppa/getcontext.S hppa/setcontext.S \
134 $(dwarf_SOURCES_local) \
135 dwarf/Lfind_proc_info-lsb.c \
136 hppa/Lcreate_addr_space.c hppa/Lget_save_loc.c hppa/Lglobal.c \
137 hppa/Linit.c hppa/Linit_local.c hppa/Linit_remote.c \
138 hppa/Lis_signal_frame.c hppa/Lget_proc_info.c hppa/Lregs.c \
139 hppa/Lresume.c hppa/Lstep.c
140
141# The list of files that go into libunwind-hppa:
142libunwind_hppa_la_SOURCES_hppa = $(libunwind_la_SOURCES_hppa_common) \
143 $(libunwind_la_SOURCES_generic) \
144 $(dwarf_SOURCES_generic) \
145 dwarf/Gfind_proc_info-lsb.c \
146 hppa/Gcreate_addr_space.c hppa/Gget_save_loc.c hppa/Gglobal.c \
147 hppa/Ginit.c hppa/Ginit_local.c hppa/Ginit_remote.c \
148 hppa/Gis_signal_frame.c hppa/Gget_proc_info.c hppa/Gregs.c \
149 hppa/Gresume.c hppa/Gstep.c
mostang.com!davidmf6c7a652003-01-14 07:11:56 +0000150
hp.com!davidm16566632004-01-03 10:50:24 +0000151# The list of files that go both into libunwind and libunwind-x86:
mostang.com!davidma6b0ccf2004-01-14 06:21:52 +0000152libunwind_la_SOURCES_x86_common = $(libunwind_la_SOURCES_common) \
hp.com!davidmf06787a2004-01-22 08:36:15 +0000153 $(dwarf_SOURCES_common) \
hp.com!davidm16af7ae2005-05-03 09:13:17 +0000154 elf32.c elf32.h \
hp.com!davidmf06787a2004-01-22 08:36:15 +0000155 x86/init.h x86/offsets.h x86/unwind_i.h \
homeip.net!davidmbf2c4542004-08-17 15:34:28 +0000156 x86/is_fpreg.c x86/regname.c
hp.com!davidm16566632004-01-03 10:50:24 +0000157
158# The list of files that go into libunwind:
hp.com!davidm1738b3b2004-01-30 00:01:24 +0000159libunwind_la_SOURCES_x86 = $(libunwind_la_SOURCES_x86_common) \
160 $(libunwind_la_SOURCES_local) \
hp.com!davidm1738b3b2004-01-30 00:01:24 +0000161 $(dwarf_SOURCES_local) \
162 dwarf/Lfind_proc_info-lsb.c \
homeip.net!davidmbf2c4542004-08-17 15:34:28 +0000163 x86/Lcreate_addr_space.c x86/Lget_save_loc.c x86/Lglobal.c \
164 x86/Linit.c x86/Linit_local.c x86/Linit_remote.c \
165 x86/Lis_signal_frame.c x86/Lget_proc_info.c x86/Lregs.c \
166 x86/Lresume.c x86/Lstep.c
mostang.com!davidmf6c7a652003-01-14 07:11:56 +0000167
hp.com!davidm16566632004-01-03 10:50:24 +0000168# The list of files that go into libunwind-x86:
hp.com!davidm1738b3b2004-01-30 00:01:24 +0000169libunwind_x86_la_SOURCES_x86 = $(libunwind_la_SOURCES_x86_common) \
170 $(libunwind_la_SOURCES_generic) \
171 $(dwarf_SOURCES_generic) \
172 dwarf/Gfind_proc_info-lsb.c \
homeip.net!davidmbf2c4542004-08-17 15:34:28 +0000173 x86/Gcreate_addr_space.c x86/Gget_save_loc.c x86/Gglobal.c \
174 x86/Ginit.c x86/Ginit_local.c x86/Ginit_remote.c \
175 x86/Gis_signal_frame.c x86/Gget_proc_info.c x86/Gregs.c \
176 x86/Gresume.c x86/Gstep.c
hp.com!davidm16566632004-01-03 10:50:24 +0000177
ibm.com!masbockaa9a9172004-08-19 13:39:10 +0000178# The list of files that go both into libunwind and libunwind-x86_64:
179libunwind_la_SOURCES_x86_64_common = $(libunwind_la_SOURCES_common) \
180 $(dwarf_SOURCES_common) \
hp.com!davidm16af7ae2005-05-03 09:13:17 +0000181 elf64.c elf64.h \
182 x86_64/setcontext.S \
homeip.net!davidmf028c7d2004-08-20 11:26:49 +0000183 x86_64/init.h x86_64/unwind_i.h x86_64/ucontext_i.h \
ibm.com!masbockaa9a9172004-08-19 13:39:10 +0000184 x86_64/is_fpreg.c x86_64/regname.c
185
186# The list of files that go into libunwind:
187libunwind_la_SOURCES_x86_64 = $(libunwind_la_SOURCES_x86_64_common) \
188 $(libunwind_la_SOURCES_local) \
ibm.com!masbockaa9a9172004-08-19 13:39:10 +0000189 $(dwarf_SOURCES_local) \
190 dwarf/Lfind_proc_info-lsb.c \
191 x86_64/Lcreate_addr_space.c x86_64/Lget_save_loc.c x86_64/Lglobal.c \
192 x86_64/Linit.c x86_64/Linit_local.c x86_64/Linit_remote.c \
193 x86_64/Lis_signal_frame.c x86_64/Lget_proc_info.c x86_64/Lregs.c \
194 x86_64/Lresume.c x86_64/Lstep.c
195
196# The list of files that go into libunwind:
197libunwind_x86_64_la_SOURCES_x86_64 = $(libunwind_la_SOURCES_x86_64_common) \
198 $(libunwind_la_SOURCES_generic) \
199 $(dwarf_SOURCES_generic) \
200 dwarf/Gfind_proc_info-lsb.c \
201 x86_64/Gcreate_addr_space.c x86_64/Gget_save_loc.c x86_64/Gglobal.c \
202 x86_64/Ginit.c x86_64/Ginit_local.c x86_64/Ginit_remote.c \
203 x86_64/Gis_signal_frame.c x86_64/Gget_proc_info.c x86_64/Gregs.c \
204 x86_64/Gresume.c x86_64/Gstep.c
205
mostang.com!davidm0adb97c2003-03-19 19:25:18 +0000206if REMOTE_ONLY
mostang.com!davidm0adb97c2003-03-19 19:25:18 +0000207install-exec-hook:
208# Nothing to do here....
209else
mostang.com!davidm0adb97c2003-03-19 19:25:18 +0000210#
211# This is not ideal, but I know of no other way to install an
212# alias for a library.
213#
214install-exec-hook:
hp.com!davidm16566632004-01-03 10:50:24 +0000215 $(LN_S) -f libunwind-$(arch).a $(DESTDIR)$(libdir)/libunwind-generic.a
216 $(LN_S) -f libunwind-$(arch).so \
217 $(DESTDIR)$(libdir)/libunwind-generic.so
mostang.com!davidm0adb97c2003-03-19 19:25:18 +0000218endif
219
220if OS_LINUX
hp.com!davidm051da9c2004-05-06 22:02:00 +0000221 libunwind_la_SOURCES_os = $(libunwind_la_SOURCES_os_linux)
222 libunwind_la_SOURCES_os_local = $(libunwind_la_SOURCES_os_linux_local)
mostang.com!davidm0adb97c2003-03-19 19:25:18 +0000223endif
224
mostang.com!davidm5929f8e2003-04-03 07:59:15 +0000225if OS_HPUX
hp.com!davidm051da9c2004-05-06 22:02:00 +0000226 libunwind_la_SOURCES_os = $(libunwind_la_SOURCES_os_hpux)
227 libunwind_la_SOURCES_os_local = $(libunwind_la_SOURCES_os_hpux_local)
mostang.com!davidm5929f8e2003-04-03 07:59:15 +0000228endif
229
hp.com!davidm6432d812002-04-05 23:37:55 +0000230if ARCH_IA64
hp.com!davidmf9c59cd2004-08-18 10:43:50 +0000231 ia64_mk_Gcursor_i_SOURCES = ia64/mk_Gcursor_i.c
232 ia64_mk_Lcursor_i_SOURCES = ia64/mk_Lcursor_i.c
homeip.net!davidmbf2c4542004-08-17 15:34:28 +0000233 noinst_PROGRAMS = ia64/mk_Gcursor_i ia64/mk_Lcursor_i
mostang.com!davidm8e85e812003-04-23 19:22:42 +0000234 BUILT_SOURCES = Gcursor_i.h Lcursor_i.h
homeip.net!davidmbf2c4542004-08-17 15:34:28 +0000235Gcursor_i.h: ia64/mk_Gcursor_i
236 ia64/mk_Gcursor_i > $@
237Lcursor_i.h: ia64/mk_Lcursor_i
238 ia64/mk_Lcursor_i > $@
mostang.com!davidmad7f1472003-02-08 10:10:59 +0000239 lib_LTLIBRARIES_arch = libunwind-ia64.la
hp.com!davidm16566632004-01-03 10:50:24 +0000240 libunwind_la_SOURCES = $(libunwind_la_SOURCES_ia64)
241 libunwind_ia64_la_SOURCES = $(libunwind_ia64_la_SOURCES_ia64)
hp.com!davidmed32b992004-04-20 16:53:44 +0000242 libunwind_ia64_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION)
hp.com!davidmf06787a2004-01-22 08:36:15 +0000243if !REMOTE_ONLY
hp.com!davidmed32b992004-04-20 16:53:44 +0000244 libunwind_ia64_la_LIBADD = libunwind.la -lc
hp.com!davidmf06787a2004-01-22 08:36:15 +0000245endif
mostang.com!davidmad7f1472003-02-08 10:10:59 +0000246 libunwind_setjmp_la_SOURCES = $(libunwind_setjmp_la_SOURCES_common) \
247 $(libunwind_setjmp_la_SOURCES_ia64)
hp.com!davidm6432d812002-04-05 23:37:55 +0000248else
mostang.com!davidmf6c7a652003-01-14 07:11:56 +0000249if ARCH_HPPA
mostang.com!davidmad7f1472003-02-08 10:10:59 +0000250 lib_LTLIBRARIES_arch = libunwind-hppa.la
hp.com!davidm16566632004-01-03 10:50:24 +0000251 libunwind_la_SOURCES = $(libunwind_la_SOURCES_hppa)
hp.com!davidmf06787a2004-01-22 08:36:15 +0000252 libunwind_hppa_la_SOURCES = $(libunwind_hppa_la_SOURCES_hppa)
hp.com!davidmed32b992004-04-20 16:53:44 +0000253 libunwind_hppa_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION)
hp.com!davidmf06787a2004-01-22 08:36:15 +0000254if !REMOTE_ONLY
hp.com!davidmed32b992004-04-20 16:53:44 +0000255 libunwind_hppa_la_LIBADD = libunwind.la -lc
hp.com!davidmf06787a2004-01-22 08:36:15 +0000256endif
mostang.com!davidmad7f1472003-02-08 10:10:59 +0000257 libunwind_setjmp_la_SOURCES = $(libunwind_setjmp_la_SOURCES_common) \
258 $(libunwind_setjmp_la_SOURCES_hppa)
mostang.com!davidmf6c7a652003-01-14 07:11:56 +0000259else
mostang.com!davidm3ae9b812002-12-19 07:16:50 +0000260if ARCH_X86
mostang.com!davidmad7f1472003-02-08 10:10:59 +0000261 lib_LTLIBRARIES_arch = libunwind-x86.la
hp.com!davidm16566632004-01-03 10:50:24 +0000262 libunwind_la_SOURCES = $(libunwind_la_SOURCES_x86)
hp.com!davidmf06787a2004-01-22 08:36:15 +0000263 libunwind_x86_la_SOURCES = $(libunwind_x86_la_SOURCES_x86)
hp.com!davidmed32b992004-04-20 16:53:44 +0000264 libunwind_x86_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION)
hp.com!davidmf06787a2004-01-22 08:36:15 +0000265if !REMOTE_ONLY
hp.com!davidmed32b992004-04-20 16:53:44 +0000266 libunwind_x86_la_LIBADD = libunwind.la -lc
hp.com!davidmf06787a2004-01-22 08:36:15 +0000267endif
mostang.com!davidmad7f1472003-02-08 10:10:59 +0000268 libunwind_setjmp_la_SOURCES = $(libunwind_setjmp_la_SOURCES_common) \
269 $(libunwind_setjmp_la_SOURCES_x86)
ibm.com!masbockaa9a9172004-08-19 13:39:10 +0000270else
271if ARCH_X86_64
272 lib_LTLIBRARIES_arch = libunwind-x86_64.la
273 libunwind_la_SOURCES = $(libunwind_la_SOURCES_x86_64)
274 libunwind_x86_64_la_SOURCES = $(libunwind_x86_64_la_SOURCES_x86_64)
275 libunwind_x86_64_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -version-info $(SOVERSION)
276if !REMOTE_ONLY
277 libunwind_x86_64_la_LIBADD = libunwind.la -lc
278endif
279 libunwind_setjmp_la_SOURCES = $(libunwind_setjmp_la_SOURCES_common) \
280 $(libunwind_setjmp_la_SOURCES_x86_64)
281endif # ARCH_X86_64
mostang.com!davidmf6c7a652003-01-14 07:11:56 +0000282endif # ARCH_X86
283endif # ARCH_HPPA
284endif # ARCH_IA64
mostang.com!davidm00abcc62002-04-19 05:35:46 +0000285
hp.com!davidm16af7ae2005-05-03 09:13:17 +0000286#
287# Don't link with standard libraries, because those may mention
288# libunwind already.
289#
290libunwind_la_LDFLAGS = $(COMMON_SO_LDFLAGS) -XCClinker -nostdlib \
291 $(LDFLAGS_STATIC_LIBCXA) -version-info $(SOVERSION)
hp.com!davidm27a90672004-11-03 21:50:24 +0000292libunwind_la_LIBADD = -lc $(LIBCRTS)
hp.com!davidm16566632004-01-03 10:50:24 +0000293
294lib_LIBRARIES = $(LIBRARIES_cdep)
homeip.net!davidmf028c7d2004-08-20 11:26:49 +0000295lib_LTLIBRARIES = $(lib_LTLIBRARIES_cdep) $(lib_LTLIBRARIES_arch) \
296 $(lib_LTLIBRARIES_cdep_setjmp)
mostang.com!davidmad7f1472003-02-08 10:10:59 +0000297
hp.com!davidm23760812003-12-20 11:50:00 +0000298AM_CPPFLAGS = -I$(top_srcdir)/include/$(arch) -I$(top_srcdir)/include -I.
mostang.com!davidmad7f1472003-02-08 10:10:59 +0000299AM_CCASFLAGS = $(AM_CPPFLAGS)
hp.com!davidm6432d812002-04-05 23:37:55 +0000300
hp.com!davidm22d6f352004-08-26 10:02:46 +0000301EXTRA_DIST = elfxx.h elfxx.c unwind/unwind-internal.h \
302 $(libunwind_la_SOURCES_hppa) \
303 $(libunwind_la_SOURCES_ia64) \
304 $(libunwind_la_SOURCES_x86) \
305 $(libunwind_la_SOURCES_os_linux) \
306 $(libunwind_la_SOURCES_os_hpux) \
307 $(libunwind_la_SOURCES_common) \
308 $(libunwind_la_SOURCES_local) \
309 $(libunwind_la_SOURCES_generic) \
310 $(libunwind_hppa_la_SOURCES_hppa) \
311 $(libunwind_ia64_la_SOURCES_ia64) \
312 $(libunwind_x86_la_SOURCES_x86) \
313 $(libunwind_x86_64_la_SOURCES_x86_64) \
314 $(libunwind_ptrace_a_SOURCES) \
315 $(libunwind_setjmp_la_SOURCES_common) \
316 $(libunwind_setjmp_la_SOURCES_hppa) \
317 $(libunwind_setjmp_la_SOURCES_ia64) \
318 $(libunwind_setjmp_la_SOURCES_x86) \
ibm.com!masbockaa9a9172004-08-19 13:39:10 +0000319 $(libunwind_setjmp_la_SOURCES_x86_64)
mostang.com!davidm0adb97c2003-03-19 19:25:18 +0000320
mostang.com!davidm83b038d2002-02-28 16:24:48 +0000321# The -version-info flag accepts an argument of the form
322# `current[:revision[:age]]'. So, passing `-version-info 3:12:1' sets
323# current to 3, revision to 12, and age to 1.
324
325# If either revision or age are omitted, they default to 0. Also note
326# that age must be less than or equal to the current interface number.
327
328# Here are a set of rules to help you update your library version
329# information:
330
331# 1. Start with version information of `0:0:0' for each libtool
332# library.
333
334# 2. Update the version information only immediately before a public
335# release of your software. More frequent updates are unnecessary,
336# and only guarantee that the current interface number gets larger
337# faster.
338
339# 3. If the library source code has changed at all since the last
340# update, then increment revision (`c:r:a' becomes `c:r+1:a').
341
342# 4. If any interfaces have been added, removed, or changed since the
343# last update, increment current, and set revision to 0.
344
345# 5. If any interfaces have been added since the last public release,
346# then increment age.
347
348# 6. If any interfaces have been removed since the last public
349# release, then set age to 0.