Remove building with NOCRYPTO option
[minix.git] / lib / libexecinfo / Makefile
blob9458eea8822dad55e5027ca09398c200e8660fe0
1 # $NetBSD: Makefile,v 1.8 2014/10/24 22:42:16 joerg Exp $
3 .include <bsd.own.mk>
5 LIBEXECINFO_MACHINE_ARCH?= ${MACHINE_ARCH}
6 USE_UNWIND=yes
7 WARNS?=4
8 INCSDIR=/usr/include
9 INCS=execinfo.h
11 .if ${HAVE_LIBGCC_EH} == "yes"
12 INCS+= unwind.h
13 .endif
15 #CPPFLAGS+='-D__RCSID(a)=' -D_GNU_SOURCE '-D__printflike(a,b)='
16 #CPPFLAGS+=-I/usr/include/libelf
17 #COPTS+=-std=gnu99
19 LIBDPLIBS+= elf ${NETBSDSRCDIR}/external/bsd/elftoolchain/lib/libelf
21 LIB=execinfo
22 SRCS=symtab.c backtrace.c
23 MAN= backtrace.3
25 .if ${USE_UNWIND} == "yes"
26 SRCS+=unwind.c
27 .if !empty(LIBEXECINFO_MACHINE_ARCH:Mearm*)
28 SRCS+=unwind_arm_ehabi_stub.c
29 .endif
30 .else
31 SRCS+=builtin.c
32 .endif
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
39 .include <bsd.lib.mk>