1#	$NetBSD: Makefile.inc,v 1.14 2021/11/22 16:41:32 thorpej Exp $
2
3.PATH:	${NETBSDSRCDIR}/sys/lib/libunwind
4
5SRCS+=	libunwind.cxx \
6	unwind_registers.S
7
8INCS+=	unwind.h
9
10COPTS.libunwind.cxx+=	${${ACTIVE_CXX} == "gcc":? -std=c++0x : -std=c++11 }
11COPTS.libunwind.cxx+=	-funwind-tables -fno-rtti
12COPTS.libunwind.cxx+=	-fno-exceptions -fvisibility=hidden
13COPTS.libunwind.cxx+=	-Wno-old-style-cast
14CPPFLAGS.libunwind.cxx+=-I${NETBSDSRCDIR}/sys/lib/libunwind
15
16.if ${LIBC_MACHINE_CPU} == "arm"
17COPTS.libunwind.cxx+=	${${ACTIVE_CC} == "gcc":? -mfpu=vfp3 :}
18AFLAGS.unwind_registers.S+=	${${ACTIVE_CC} == "clang":? -mfpu=vfp3 :}
19.endif
20