1GCC_NO_PATH=	yes
2GCC_NO_LIBS=	yes
3LOCAL_CONFIG=	yes
4.include "../Makefile.inc"
5.PATH: ${GCCDIR}/libbacktrace
6.PATH: ${GCCDIR}/libgcc
7
8LIB=		backtrace
9INTERNALLIB=	YES
10
11CFLAGS+=	-I${GCCDIR}/libbacktrace
12
13SRCS=			 \
14		dwarf.c \
15		fileline.c \
16		posix.c \
17		print.c \
18		sort.c \
19		state.c \
20		backtrace.c \
21		simple.c \
22		elf.c \
23		mmapio.c \
24		mmap.c
25
26# only when ! HAVE_ATOMIC_FUNCTIONS
27#SRCS=		atomic.c
28
29backtrace.o:	unwind.h
30
31beforedepend:	unwind.h
32
33unwind.h: unwind-generic.h
34	cp ${.ALLSRC} ${.TARGET}
35
36CLEANFILES=	unwind.h
37
38.include <bsd.lib.mk>
39