Home | History | Annotate | Line # | Download | only in libexecinfo
Makefile revision 1.5.4.1
      1  1.5.4.1    martin # $NetBSD: Makefile,v 1.5.4.1 2015/01/25 00:19:45 martin Exp $
      2      1.1  christos 
      3      1.1  christos .include <bsd.own.mk>
      4      1.1  christos 
      5      1.3      matt LIBEXECINFO_MACHINE_ARCH?= ${MACHINE_ARCH}
      6      1.1  christos USE_UNWIND=yes
      7      1.1  christos WARNS?=4
      8      1.1  christos INCSDIR=/usr/include
      9      1.1  christos INCS=execinfo.h
     10      1.1  christos 
     11  1.5.4.1    martin .if ${HAVE_LIBGCC_EH} == "yes"
     12  1.5.4.1    martin INCS+=	unwind.h
     13  1.5.4.1    martin .endif
     14  1.5.4.1    martin 
     15      1.1  christos #CPPFLAGS+='-D__RCSID(a)=' -D_GNU_SOURCE '-D__printflike(a,b)='
     16      1.1  christos #CPPFLAGS+=-I/usr/include/libelf
     17      1.1  christos #COPTS+=-std=gnu99
     18      1.1  christos 
     19      1.5  christos LIBDPLIBS+= elf	${NETBSDSRCDIR}/external/bsd/elftoolchain/lib/libelf
     20      1.1  christos 
     21      1.1  christos LIB=execinfo
     22      1.1  christos SRCS=symtab.c backtrace.c
     23      1.1  christos MAN= backtrace.3
     24      1.1  christos 
     25      1.1  christos .if ${USE_UNWIND} == "yes"
     26      1.1  christos SRCS+=unwind.c
     27      1.4      matt .if !empty(LIBEXECINFO_MACHINE_ARCH:Mearm*)
     28      1.2      matt SRCS+=unwind_arm_ehabi_stub.c
     29      1.2      matt .endif
     30      1.1  christos .else
     31      1.1  christos SRCS+=builtin.c
     32      1.1  christos .endif
     33      1.1  christos 
     34      1.1  christos MLINKS+= backtrace.3 backtrace_symbols.3
     35      1.1  christos MLINKS+= backtrace.3 backtrace_symbols_fmt.3
     36      1.1  christos MLINKS+= backtrace.3 backtrace_symbols_fd.3
     37      1.1  christos MLINKS+= backtrace.3 backtrace_symbols_fd_fmt.3
     38      1.1  christos 
     39      1.1  christos .include <bsd.lib.mk>
     40