1 # $NetBSD: Makefile,v 1.8 2014/10/24 22:42:16 joerg Exp $
5 LIBEXECINFO_MACHINE_ARCH?
= ${MACHINE_ARCH}
11 .if
${HAVE_LIBGCC_EH} == "yes"
15 #CPPFLAGS+='-D__RCSID(a)=' -D_GNU_SOURCE '-D__printflike(a,b)='
16 #CPPFLAGS+=-I/usr/include/libelf
19 LIBDPLIBS
+= elf
${NETBSDSRCDIR}/external
/bsd
/elftoolchain
/lib
/libelf
22 SRCS
=symtab.c backtrace.c
25 .if
${USE_UNWIND} == "yes"
27 .if
!empty
(LIBEXECINFO_MACHINE_ARCH
:Mearm
*)
28 SRCS
+=unwind_arm_ehabi_stub.c
34 MLINKS
+= backtrace
.3 backtrace_symbols
.3
35 MLINKS
+= backtrace
.3 backtrace_symbols_fmt
.3
36 MLINKS
+= backtrace
.3 backtrace_symbols_fd
.3
37 MLINKS
+= backtrace
.3 backtrace_symbols_fd_fmt
.3