1*0a6a1f1dSLionel Sambuc# $NetBSD: Makefile,v 1.10 2014/06/01 19:51:02 mrg Exp $ 218a5822eSThomas Veerman 318a5822eSThomas VeermanREQUIRETOOLS= yes 418a5822eSThomas VeermanNOLINT= # defined 518a5822eSThomas VeermanNOPIC= # defined 618a5822eSThomas VeermanNOPROFILE= # defined 718a5822eSThomas Veerman 884d9c625SLionel SambucCWARNFLAGS.clang+= -Wno-parentheses 918a5822eSThomas VeermanUNSUPPORTED_COMPILER.clang= # defined 1018a5822eSThomas Veerman 11*0a6a1f1dSLionel Sambuc.include <bsd.init.mk> 1218a5822eSThomas Veerman 1384d9c625SLionel SambucGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/} 1484d9c625SLionel Sambuc 1518a5822eSThomas VeermanLIB= supc++ 1618a5822eSThomas Veerman 1784d9c625SLionel Sambuc.if exists(${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk) && ${MKGCC} != "no" 1884d9c625SLionel Sambuc.include "${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk" 1918a5822eSThomas Veerman 20*0a6a1f1dSLionel SambucSHLIB_MAJOR= 2 2118a5822eSThomas VeermanSHLIB_MINOR= 0 2218a5822eSThomas Veerman 2318a5822eSThomas Veerman.include "${.CURDIR}/../libsupc++/Makefile.common" 2418a5822eSThomas Veerman 2518a5822eSThomas VeermanSRCS= ${LIBSUPCXXSRCS} xmalloc.c 2618a5822eSThomas VeermanCXXFLAGS+= ${G_SECTION_FLAGS} 2718a5822eSThomas Veerman 2818a5822eSThomas VeermanCOPTS.cp-demangle.c = -Wno-stack-protector 2918a5822eSThomas Veerman 30*0a6a1f1dSLionel Sambuc.if ${HAVE_LIBGCC_EH} == "no" 31*0a6a1f1dSLionel SambucG_CONFIGLINKS:= ${G_CONFIGLINKS:S,libgcc/config/arm/unwind-arm.h,libgcc/unwind-generic.h,} 32*0a6a1f1dSLionel Sambuc.endif 3318a5822eSThomas Veerman 34*0a6a1f1dSLionel Sambuc.if ${MKGCC} != "no" 35*0a6a1f1dSLionel Sambuc.if defined(G_CONFIGLINKS) && !empty(G_CONFIGLINKS) 36*0a6a1f1dSLionel SambucBUILDSYMLINKS+= ${G_CONFIGLINKS} 37*0a6a1f1dSLionel Sambuc.for _src _dst in ${G_CONFIGLINKS} 38*0a6a1f1dSLionel SambucDPSRCS+= ${_dst} 39*0a6a1f1dSLionel Sambuc.endfor 40*0a6a1f1dSLionel Sambuc.endif 41*0a6a1f1dSLionel Sambuc.endif 42*0a6a1f1dSLionel Sambuc 43*0a6a1f1dSLionel Sambuc.include <bsd.lib.mk> 4418a5822eSThomas Veerman 4518a5822eSThomas Veerman.PATH: ${DIST}/libstdc++-v3/src \ 4618a5822eSThomas Veerman ${DIST}/libstdc++-v3/libsupc++ \ 4718a5822eSThomas Veerman ${DIST}/libiberty \ 4884d9c625SLionel Sambuc ${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH} 4918a5822eSThomas Veerman 5084d9c625SLionel Sambuc${OBJS}: ${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk 5118a5822eSThomas Veerman.else 5218a5822eSThomas Veerman.include <bsd.prog.mk> # do nothing 5318a5822eSThomas Veerman.endif 54