Home | History | Annotate | Line # | Download | only in libexecinfo
Makefile revision 1.4
      1  1.4      matt # $NetBSD: Makefile,v 1.4 2013/04/30 01:41:01 matt 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.1  christos #CPPFLAGS+='-D__RCSID(a)=' -D_GNU_SOURCE '-D__printflike(a,b)='
     12  1.1  christos #CPPFLAGS+=-I/usr/include/libelf
     13  1.1  christos #COPTS+=-std=gnu99
     14  1.1  christos 
     15  1.1  christos LIBDPLIBS+= elf	${NETBSDSRCDIR}/external/bsd/libelf/lib
     16  1.1  christos 
     17  1.1  christos LIB=execinfo
     18  1.1  christos SRCS=symtab.c backtrace.c
     19  1.1  christos MAN= backtrace.3
     20  1.1  christos 
     21  1.1  christos .if ${USE_UNWIND} == "yes"
     22  1.1  christos SRCS+=unwind.c
     23  1.4      matt .if !empty(LIBEXECINFO_MACHINE_ARCH:Mearm*)
     24  1.2      matt SRCS+=unwind_arm_ehabi_stub.c
     25  1.2      matt .endif
     26  1.1  christos .else
     27  1.1  christos SRCS+=builtin.c
     28  1.1  christos .endif
     29  1.1  christos 
     30  1.1  christos MLINKS+= backtrace.3 backtrace_symbols.3
     31  1.1  christos MLINKS+= backtrace.3 backtrace_symbols_fmt.3
     32  1.1  christos MLINKS+= backtrace.3 backtrace_symbols_fd.3
     33  1.1  christos MLINKS+= backtrace.3 backtrace_symbols_fd_fmt.3
     34  1.1  christos 
     35  1.1  christos .include <bsd.lib.mk>
     36