2003-12-04 08:44:21 +01:00
|
|
|
SOVERSION=2:0:1 # See comments at end of file.
|
2003-02-08 11:10:59 +01:00
|
|
|
SETJMP_SO_VERSION=0:0:0
|
2002-04-25 08:47:29 +02:00
|
|
|
|
2004-01-03 11:50:24 +01:00
|
|
|
if REMOTE_ONLY
|
|
|
|
LIBRARIES_cdep =
|
|
|
|
lib_LTLIBRARIES_cdep =
|
|
|
|
else
|
|
|
|
LIBRARIES_cdep = libunwind-ptrace.a
|
|
|
|
lib_LTLIBRARIES_cdep = libunwind.la libunwind-setjmp.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
### libunwind-ptrace:
|
2004-01-30 01:01:24 +01:00
|
|
|
libunwind_ptrace_a_SOURCES = \
|
|
|
|
ptrace/_UPT_internal.h \
|
|
|
|
ptrace/_UPT_accessors.c ptrace/_UPT_access_fpreg.c \
|
|
|
|
ptrace/_UPT_access_mem.c ptrace/_UPT_access_reg.c \
|
|
|
|
ptrace/_UPT_create.c ptrace/_UPT_destroy.c \
|
|
|
|
ptrace/_UPT_find_proc_info.c ptrace/_UPT_get_dyn_info_list_addr.c \
|
|
|
|
ptrace/_UPT_put_unwind_info.c ptrace/_UPT_get_proc_name.c \
|
|
|
|
ptrace/_UPT_reg_offset.c ptrace/_UPT_resume.c
|
2004-01-03 11:50:24 +01:00
|
|
|
|
|
|
|
### libunwind-setjmp:
|
|
|
|
libunwind_setjmp_la_LDFLAGS = -version-info $(SETJMP_SO_VERSION)
|
|
|
|
libunwind_setjmp_la_LIBADD = libunwind-$(arch).la
|
|
|
|
libunwind_setjmp_la_SOURCES_common = longjmp.c siglongjmp.c
|
|
|
|
libunwind_setjmp_la_SOURCES_ia64 = ia64/setjmp-ia64.S \
|
|
|
|
ia64/sigsetjmp-ia64.S \
|
|
|
|
ia64/siglongjmp-ia64.S
|
2004-01-14 07:21:52 +01:00
|
|
|
libunwind_setjmp_la_SOURCES_hppa = setjmp.c sigsetjmp.c \
|
|
|
|
hppa/siglongjmp-hppa.S
|
|
|
|
libunwind_setjmp_la_SOURCES_x86 = setjmp.c sigsetjmp.c \
|
|
|
|
x86/siglongjmp-x86.S
|
2004-01-03 11:50:24 +01:00
|
|
|
|
|
|
|
### libunwind:
|
|
|
|
|
2004-01-14 07:21:52 +01:00
|
|
|
# List of arch-independent files needed by both local-only and generic
|
|
|
|
# libraries:
|
2004-01-03 11:50:24 +01:00
|
|
|
libunwind_la_SOURCES_common = \
|
|
|
|
$(libunwind_la_SOURCES_os) \
|
2004-01-30 01:01:24 +01:00
|
|
|
mi/init.c mi/flush_cache.c mi/mempool.c
|
2004-01-03 11:50:24 +01:00
|
|
|
|
|
|
|
# List of arch-independent files needed by generic library (libunwind-$ARCH):
|
2004-01-30 01:01:24 +01:00
|
|
|
libunwind_la_SOURCES_generic = \
|
|
|
|
mi/Gdyn-extract.c mi/Gdyn-remote.c mi/Gfind_dynamic_proc_info.c \
|
|
|
|
mi/Gget_accessors.c \
|
|
|
|
mi/Gget_proc_info_by_ip.c mi/Gget_proc_name.c \
|
|
|
|
mi/Gput_dynamic_unwind_info.c mi/Gdestroy_addr_space.c \
|
|
|
|
mi/Gget_reg.c mi/Gset_reg.c \
|
|
|
|
mi/Gget_fpreg.c mi/Gset_fpreg.c \
|
|
|
|
mi/Gset_caching_policy.c
|
2004-01-03 11:50:24 +01:00
|
|
|
|
|
|
|
# List of arch-independent files needed by local-only library (libunwind):
|
2004-01-30 01:01:24 +01:00
|
|
|
libunwind_la_SOURCES_local = \
|
|
|
|
mi/dyn-cancel.c mi/dyn-info-list.c mi/dyn-register.c \
|
|
|
|
mi/Ldyn-extract.c mi/Lfind_dynamic_proc_info.c \
|
|
|
|
mi/Lget_accessors.c \
|
|
|
|
mi/Lget_proc_info_by_ip.c mi/Lget_proc_name.c \
|
|
|
|
mi/Lput_dynamic_unwind_info.c mi/Ldestroy_addr_space.c \
|
|
|
|
mi/Lget_reg.c mi/Lset_reg.c \
|
|
|
|
mi/Lget_fpreg.c mi/Lset_fpreg.c \
|
|
|
|
mi/Lset_caching_policy.c \
|
|
|
|
unwind/Backtrace.c unwind/DeleteException.c \
|
|
|
|
unwind/FindEnclosingFunction.c unwind/ForcedUnwind.c \
|
|
|
|
unwind/GetBSP.c unwind/GetCFA.c unwind/GetDataRelBase.c \
|
|
|
|
unwind/GetGR.c unwind/GetIP.c unwind/GetLanguageSpecificData.c \
|
|
|
|
unwind/GetRegionStart.c unwind/GetTextRelBase.c \
|
|
|
|
unwind/RaiseException.c unwind/Resume.c \
|
|
|
|
unwind/Resume_or_Rethrow.c unwind/SetGR.c unwind/SetIP.c
|
2003-12-04 08:44:21 +01:00
|
|
|
|
2003-03-19 20:25:18 +01:00
|
|
|
libunwind_la_SOURCES_os_linux = os-linux.h os-linux.c
|
2003-04-03 09:59:15 +02:00
|
|
|
libunwind_la_SOURCES_os_hpux = os-hpux.c
|
2003-01-28 04:40:06 +01:00
|
|
|
|
2004-01-22 09:36:15 +01:00
|
|
|
dwarf_SOURCES_common = \
|
|
|
|
dwarf/dwarf-eh.h \
|
|
|
|
dwarf/global-dwarf.c
|
|
|
|
|
|
|
|
dwarf_SOURCES_local = \
|
2003-12-20 12:50:00 +01:00
|
|
|
dwarf/Lexpr-dwarf.c dwarf/Lfde-dwarf.c dwarf/Lparser-dwarf.c \
|
|
|
|
dwarf/Lpe-dwarf.c dwarf/Lstep-dwarf.c
|
|
|
|
|
2004-01-22 09:36:15 +01:00
|
|
|
dwarf_SOURCES_generic = \
|
|
|
|
dwarf/Gexpr-dwarf.c dwarf/Gfde-dwarf.c dwarf/Gparser-dwarf.c \
|
|
|
|
dwarf/Gpe-dwarf.c dwarf/Gstep-dwarf.c
|
|
|
|
|
2002-12-19 08:16:50 +01:00
|
|
|
#
|
|
|
|
# Note: As of automake-1.6, there is a stupid limitation which requires
|
2003-03-19 20:25:18 +01:00
|
|
|
# that each filename be unique. This prevents us from having, e.g.,
|
2002-12-19 08:16:50 +01:00
|
|
|
# ia64/tables.c and x86/tables.c. The fix for now is to uglify the
|
|
|
|
# filenames by appending the arch-name (e.g., tables-ia64.c). Oh, well.
|
|
|
|
#
|
|
|
|
|
2004-01-03 11:50:24 +01:00
|
|
|
# The list of files that go both into libunwind and libunwind-ia64:
|
2004-01-22 09:36:15 +01:00
|
|
|
libunwind_la_SOURCES_ia64_common = $(libunwind_la_SOURCES_common) \
|
|
|
|
ia64/init.h ia64/offsets.h ia64/regs.h ia64/rse.h \
|
|
|
|
ia64/ucontext_i.h ia64/unwind_decoder.h ia64/unwind_i.h \
|
2004-01-30 01:01:24 +01:00
|
|
|
ia64/regname-ia64.c
|
2004-01-03 11:50:24 +01:00
|
|
|
|
|
|
|
# The list of files that go into libunwind:
|
2004-01-14 07:21:52 +01:00
|
|
|
libunwind_la_SOURCES_ia64 = $(libunwind_la_SOURCES_ia64_common) \
|
|
|
|
$(libunwind_la_SOURCES_local) \
|
|
|
|
\
|
|
|
|
elf64.c elf64.h \
|
|
|
|
\
|
|
|
|
ia64/dyn_info_list-ia64.S \
|
|
|
|
\
|
2004-01-30 01:01:24 +01:00
|
|
|
ia64/Lcreate_addr_space-ia64 \
|
|
|
|
ia64/Lget_proc_info-ia64.c \
|
|
|
|
ia64/Lget_save_loc-ia64.c \
|
|
|
|
ia64/Lglobal-ia64.c \
|
2004-01-14 07:21:52 +01:00
|
|
|
ia64/Linit-ia64.c ia64/Linit_local-ia64.c ia64/Linit_remote-ia64.c \
|
2004-01-30 01:01:24 +01:00
|
|
|
ia64/Linstall_cursor-ia64.S ia64/Lis_signal_frame-ia64.c \
|
2004-01-14 07:21:52 +01:00
|
|
|
ia64/Lparser-ia64.c ia64/Lrbs-ia64.c ia64/Lregs-ia64.c \
|
|
|
|
ia64/Lresume-ia64.c ia64/Lscript-ia64.c \
|
2004-01-30 01:01:24 +01:00
|
|
|
ia64/Lstep-ia64.c ia64/Ltables-ia64.c
|
2004-01-03 11:50:24 +01:00
|
|
|
|
|
|
|
# The list of files that go into libunwind-ia64:
|
2004-01-14 07:21:52 +01:00
|
|
|
libunwind_ia64_la_SOURCES_ia64 = $(libunwind_la_SOURCES_ia64_common) \
|
|
|
|
$(libunwind_la_SOURCES_generic) \
|
2004-01-30 01:01:24 +01:00
|
|
|
ia64/Gcreate_addr_space-ia64.c \
|
|
|
|
ia64/Gget_proc_info-ia64.c \
|
|
|
|
ia64/Gget_save_loc-ia64.c \
|
|
|
|
ia64/Gglobal-ia64.c \
|
2004-01-14 07:21:52 +01:00
|
|
|
ia64/Ginit-ia64.c ia64/Ginit_local-ia64.c ia64/Ginit_remote-ia64.c \
|
2004-01-30 01:01:24 +01:00
|
|
|
ia64/Ginstall_cursor-ia64.S ia64/Gis_signal_frame-ia64.c \
|
2004-01-14 07:21:52 +01:00
|
|
|
ia64/Gparser-ia64.c ia64/Grbs-ia64.c ia64/Gregs-ia64.c \
|
|
|
|
ia64/Gresume-ia64.c ia64/Gscript-ia64.c \
|
2004-01-30 01:01:24 +01:00
|
|
|
ia64/Gstep-ia64.c ia64/Gtables-ia64.c
|
2002-04-06 01:37:55 +02:00
|
|
|
|
2003-01-14 08:11:56 +01:00
|
|
|
libunwind_la_SOURCES_hppa = $(libunwind_la_SOURCES_common) \
|
|
|
|
hppa/global-hppa.c hppa/tables-hppa.c \
|
|
|
|
hppa/init.h hppa/unwind_i.h \
|
|
|
|
\
|
2004-01-30 01:01:24 +01:00
|
|
|
hppa/Gget_reg-hppa.c \
|
2003-01-14 08:11:56 +01:00
|
|
|
hppa/Ginit-hppa.c hppa/Ginit_local-hppa.c \
|
|
|
|
hppa/Gget_proc_info-hppa.c hppa/Gregs-hppa.c hppa/Gstep-hppa.c \
|
|
|
|
\
|
|
|
|
hppa/Lget_reg-hppa.c hppa/Lget_proc_name-hppa.c \
|
|
|
|
hppa/Linit-hppa.c hppa/Linit_local-hppa.c \
|
|
|
|
hppa/Lget_proc_info-hppa.c hppa/Lregs-hppa.c hppa/Lstep-hppa.c
|
|
|
|
|
2004-01-03 11:50:24 +01:00
|
|
|
# The list of files that go both into libunwind and libunwind-x86:
|
2004-01-14 07:21:52 +01:00
|
|
|
libunwind_la_SOURCES_x86_common = $(libunwind_la_SOURCES_common) \
|
2004-01-22 09:36:15 +01:00
|
|
|
$(dwarf_SOURCES_common) \
|
|
|
|
x86/init.h x86/offsets.h x86/unwind_i.h \
|
2004-01-30 01:01:24 +01:00
|
|
|
x86/is_fpreg-x86.c x86/regname-x86.c
|
2004-01-03 11:50:24 +01:00
|
|
|
|
|
|
|
# The list of files that go into libunwind:
|
2004-01-30 01:01:24 +01:00
|
|
|
libunwind_la_SOURCES_x86 = $(libunwind_la_SOURCES_x86_common) \
|
|
|
|
$(libunwind_la_SOURCES_local) \
|
|
|
|
elf32.c elf32.h \
|
|
|
|
$(dwarf_SOURCES_local) \
|
|
|
|
dwarf/Lfind_proc_info-lsb.c \
|
|
|
|
x86/Lcreate_addr_space-x86.c \
|
|
|
|
x86/Lget_save_loc-x86.c x86/Lglobal-x86.c x86/Linit-x86.c \
|
|
|
|
x86/Linit_local-x86.c x86/Linit_remote-x86.c \
|
|
|
|
x86/Lis_signal_frame-x86.c \
|
|
|
|
x86/Lget_proc_info-x86.c x86/Lregs-x86.c \
|
|
|
|
x86/Lresume-x86.c x86/Lstep-x86.c
|
2003-01-14 08:11:56 +01:00
|
|
|
|
2004-01-03 11:50:24 +01:00
|
|
|
# The list of files that go into libunwind-x86:
|
2004-01-30 01:01:24 +01:00
|
|
|
libunwind_x86_la_SOURCES_x86 = $(libunwind_la_SOURCES_x86_common) \
|
|
|
|
$(libunwind_la_SOURCES_generic) \
|
|
|
|
$(dwarf_SOURCES_generic) \
|
|
|
|
dwarf/Gfind_proc_info-lsb.c \
|
|
|
|
x86/Gcreate_addr_space-x86.c \
|
|
|
|
x86/Gget_save_loc-x86.c x86/Gglobal-x86.c x86/Ginit-x86.c \
|
|
|
|
x86/Ginit_local-x86.c x86/Ginit_remote-x86.c \
|
|
|
|
x86/Gis_signal_frame-x86.c \
|
|
|
|
x86/Gget_proc_info-x86.c x86/Gregs-x86.c \
|
|
|
|
x86/Gresume-x86.c x86/Gstep-x86.c
|
2004-01-03 11:50:24 +01:00
|
|
|
|
2003-03-19 20:25:18 +01:00
|
|
|
if REMOTE_ONLY
|
|
|
|
install-exec-hook:
|
|
|
|
# Nothing to do here....
|
|
|
|
else
|
|
|
|
#
|
|
|
|
# This is not ideal, but I know of no other way to install an
|
|
|
|
# alias for a library.
|
|
|
|
#
|
|
|
|
install-exec-hook:
|
2004-01-03 11:50:24 +01:00
|
|
|
$(LN_S) -f libunwind-$(arch).a $(DESTDIR)$(libdir)/libunwind-generic.a
|
|
|
|
$(LN_S) -f libunwind-$(arch).so \
|
|
|
|
$(DESTDIR)$(libdir)/libunwind-generic.so
|
2003-03-19 20:25:18 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
if OS_LINUX
|
|
|
|
libunwind_la_SOURCES_os = $(libunwind_la_SOURCES_os_linux)
|
|
|
|
endif
|
|
|
|
|
2003-04-03 09:59:15 +02:00
|
|
|
if OS_HPUX
|
|
|
|
libunwind_la_SOURCES_os = $(libunwind_la_SOURCES_os_hpux)
|
|
|
|
endif
|
|
|
|
|
2002-04-06 01:37:55 +02:00
|
|
|
if ARCH_IA64
|
2003-04-24 22:45:07 +02:00
|
|
|
mk_Gcursor_i_ia64_SOURCES = ia64/mk_Gcursor_i-ia64.c
|
|
|
|
mk_Lcursor_i_ia64_SOURCES = ia64/mk_Lcursor_i-ia64.c
|
|
|
|
noinst_PROGRAMS = mk_Gcursor_i-ia64 mk_Lcursor_i-ia64
|
2003-04-23 21:22:42 +02:00
|
|
|
BUILT_SOURCES = Gcursor_i.h Lcursor_i.h
|
2003-04-24 22:45:07 +02:00
|
|
|
Gcursor_i.h: mk_Gcursor_i-ia64
|
|
|
|
./mk_Gcursor_i-ia64 > $@
|
|
|
|
Lcursor_i.h: mk_Lcursor_i-ia64
|
|
|
|
./mk_Lcursor_i-ia64 > $@
|
2003-02-08 11:10:59 +01:00
|
|
|
lib_LTLIBRARIES_arch = libunwind-ia64.la
|
2004-01-03 11:50:24 +01:00
|
|
|
libunwind_la_SOURCES = $(libunwind_la_SOURCES_ia64)
|
|
|
|
libunwind_ia64_la_SOURCES = $(libunwind_ia64_la_SOURCES_ia64)
|
2002-04-25 08:47:29 +02:00
|
|
|
libunwind_ia64_la_LDFLAGS = -version-info $(SOVERSION)
|
2004-01-22 09:36:15 +01:00
|
|
|
if !REMOTE_ONLY
|
2004-01-03 11:50:24 +01:00
|
|
|
libunwind_ia64_la_LIBADD = libunwind.la
|
2004-01-22 09:36:15 +01:00
|
|
|
endif
|
2003-02-08 11:10:59 +01:00
|
|
|
libunwind_setjmp_la_SOURCES = $(libunwind_setjmp_la_SOURCES_common) \
|
|
|
|
$(libunwind_setjmp_la_SOURCES_ia64)
|
2002-04-06 01:37:55 +02:00
|
|
|
else
|
2003-01-14 08:11:56 +01:00
|
|
|
if ARCH_HPPA
|
2003-02-08 11:10:59 +01:00
|
|
|
lib_LTLIBRARIES_arch = libunwind-hppa.la
|
2004-01-03 11:50:24 +01:00
|
|
|
libunwind_la_SOURCES = $(libunwind_la_SOURCES_hppa)
|
2004-01-22 09:36:15 +01:00
|
|
|
libunwind_hppa_la_SOURCES = $(libunwind_hppa_la_SOURCES_hppa)
|
2003-01-14 08:11:56 +01:00
|
|
|
libunwind_hppa_la_LDFLAGS = -version-info $(SOVERSION)
|
2004-01-22 09:36:15 +01:00
|
|
|
if !REMOTE_ONLY
|
2004-01-03 11:50:24 +01:00
|
|
|
libunwind_hppa_la_LIBADD = libunwind.la
|
2004-01-22 09:36:15 +01:00
|
|
|
endif
|
2003-02-08 11:10:59 +01:00
|
|
|
libunwind_setjmp_la_SOURCES = $(libunwind_setjmp_la_SOURCES_common) \
|
|
|
|
$(libunwind_setjmp_la_SOURCES_hppa)
|
2003-01-14 08:11:56 +01:00
|
|
|
else
|
2002-12-19 08:16:50 +01:00
|
|
|
if ARCH_X86
|
2003-02-08 11:10:59 +01:00
|
|
|
lib_LTLIBRARIES_arch = libunwind-x86.la
|
2004-01-03 11:50:24 +01:00
|
|
|
libunwind_la_SOURCES = $(libunwind_la_SOURCES_x86)
|
2004-01-22 09:36:15 +01:00
|
|
|
libunwind_x86_la_SOURCES = $(libunwind_x86_la_SOURCES_x86)
|
2002-12-19 08:16:50 +01:00
|
|
|
libunwind_x86_la_LDFLAGS = -version-info $(SOVERSION)
|
2004-01-22 09:36:15 +01:00
|
|
|
if !REMOTE_ONLY
|
2004-01-03 11:50:24 +01:00
|
|
|
libunwind_x86_la_LIBADD = libunwind.la
|
2004-01-22 09:36:15 +01:00
|
|
|
endif
|
2003-02-08 11:10:59 +01:00
|
|
|
libunwind_setjmp_la_SOURCES = $(libunwind_setjmp_la_SOURCES_common) \
|
|
|
|
$(libunwind_setjmp_la_SOURCES_x86)
|
2003-01-14 08:11:56 +01:00
|
|
|
endif # ARCH_X86
|
|
|
|
endif # ARCH_HPPA
|
|
|
|
endif # ARCH_IA64
|
2002-04-19 07:35:46 +02:00
|
|
|
|
2004-01-03 11:50:24 +01:00
|
|
|
libunwind_la_LDFLAGS = -XCClinker -nostartfiles -version-info $(SOVERSION)
|
|
|
|
|
|
|
|
lib_LIBRARIES = $(LIBRARIES_cdep)
|
2003-02-08 11:10:59 +01:00
|
|
|
lib_LTLIBRARIES = $(lib_LTLIBRARIES_cdep) $(lib_LTLIBRARIES_arch)
|
|
|
|
|
2003-12-20 12:50:00 +01:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include/$(arch) -I$(top_srcdir)/include -I.
|
2003-02-08 11:10:59 +01:00
|
|
|
AM_CCASFLAGS = $(AM_CPPFLAGS)
|
2002-04-06 01:37:55 +02:00
|
|
|
|
2004-01-03 11:50:24 +01:00
|
|
|
EXTRA_DIST = elfxx.h elfxx.c unwind-internal.h \
|
|
|
|
$(libunwind_la_SOURCES_hppa) \
|
|
|
|
$(libunwind_la_SOURCES_ia64) \
|
|
|
|
$(libunwind_la_SOURCES_x86) \
|
|
|
|
$(libunwind_la_SOURCES_os_linux) \
|
|
|
|
$(libunwind_la_SOURCES_os_hpux) \
|
|
|
|
$(libunwind_la_SOURCES_common) \
|
|
|
|
$(libunwind_la_SOURCES_local) \
|
|
|
|
$(libunwind_la_SOURCES_generic) \
|
|
|
|
$(libunwind_ptrace_a_SOURCES) \
|
|
|
|
$(libunwind_setjmp_la_SOURCES_common) \
|
|
|
|
$(libunwind_setjmp_la_SOURCES_hppa) \
|
|
|
|
$(libunwind_setjmp_la_SOURCES_ia64) \
|
|
|
|
$(libunwind_setjmp_la_SOURCES_x86)
|
2003-03-19 20:25:18 +01:00
|
|
|
|
2002-02-28 17:24:48 +01:00
|
|
|
# The -version-info flag accepts an argument of the form
|
|
|
|
# `current[:revision[:age]]'. So, passing `-version-info 3:12:1' sets
|
|
|
|
# current to 3, revision to 12, and age to 1.
|
|
|
|
|
|
|
|
# If either revision or age are omitted, they default to 0. Also note
|
|
|
|
# that age must be less than or equal to the current interface number.
|
|
|
|
|
|
|
|
# Here are a set of rules to help you update your library version
|
|
|
|
# information:
|
|
|
|
|
|
|
|
# 1. Start with version information of `0:0:0' for each libtool
|
|
|
|
# library.
|
|
|
|
|
|
|
|
# 2. Update the version information only immediately before a public
|
|
|
|
# release of your software. More frequent updates are unnecessary,
|
|
|
|
# and only guarantee that the current interface number gets larger
|
|
|
|
# faster.
|
|
|
|
|
|
|
|
# 3. If the library source code has changed at all since the last
|
|
|
|
# update, then increment revision (`c:r:a' becomes `c:r+1:a').
|
|
|
|
|
|
|
|
# 4. If any interfaces have been added, removed, or changed since the
|
|
|
|
# last update, increment current, and set revision to 0.
|
|
|
|
|
|
|
|
# 5. If any interfaces have been added since the last public release,
|
|
|
|
# then increment age.
|
|
|
|
|
|
|
|
# 6. If any interfaces have been removed since the last public
|
|
|
|
# release, then set age to 0.
|