NetBSD/external/gpl3/gcc/lib/libsupc++/Makefile
2016-04-20 17:18:52 +00:00

54 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2016/04/20 17:18:52 christos Exp $
REQUIRETOOLS= yes
NOLINT= # defined
NOPIC= # defined
NOPROFILE= # defined
CWARNFLAGS.clang+= -Wno-parentheses
UNSUPPORTED_COMPILER.clang= # defined
.include <bsd.init.mk>
GCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
LIB= supc++
.if exists(${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk) && ${MKGCC} != "no"
.include "${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk"
SHLIB_MAJOR= 2
SHLIB_MINOR= 0
.include "${.CURDIR}/../libsupc++/Makefile.common"
SRCS= ${LIBSUPCXXSRCS} xmalloc.c
CXXFLAGS+= ${G_SECTION_FLAGS}
COPTS.cp-demangle.c = -Wno-stack-protector -Wno-unused-function
.if ${HAVE_LIBGCC_EH} == "no"
G_CONFIGLINKS:= ${G_CONFIGLINKS:S,libgcc/config/arm/unwind-arm.h,libgcc/unwind-generic.h,}
.endif
.if ${MKGCC} != "no"
.if defined(G_CONFIGLINKS) && !empty(G_CONFIGLINKS)
BUILDSYMLINKS+= ${G_CONFIGLINKS}
.for _src _dst in ${G_CONFIGLINKS}
DPSRCS+= ${_dst}
.endfor
.endif
.endif
.include <bsd.lib.mk>
.PATH: ${DIST}/libstdc++-v3/src \
${DIST}/libstdc++-v3/libsupc++ \
${DIST}/libiberty \
${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}
${OBJS}: ${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk
.else
.include <bsd.prog.mk> # do nothing
.endif