# $NetBSD: Makefile,v 1.12.2.1 2020/04/22 18:25:10 martin Exp $ REQUIRETOOLS= yes NOLINT= # defined NOPIC= # defined NOPROFILE= # defined CWARNFLAGS.clang+= -Wno-parentheses UNSUPPORTED_COMPILER.clang= # defined .include 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} # XXX PR#54660 .if ${MACHINE} == "sparc" SRCS+= atomicity.cc DIST= ${GCCDIST} GLIBCXX_SRCDIR= ${DIST}/libstdc++-v3 BUILDSYMLINKS+= \ ${GLIBCXX_SRCDIR}/${G_ATOMICITY_SRCDIR}/atomicity.h atomicity.cc .endif COPTS.cp-demangle.c = -Wno-stack-protector -Wno-unused-function .include "../Makefile.gthr" .include .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 # do nothing .endif