xref: /minix3/external/gpl3/gcc/lib/libsupc++/Makefile.common (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc#	$NetBSD: Makefile.common,v 1.8 2014/06/01 19:51:02 mrg Exp $
218a5822eSThomas Veerman
3*0a6a1f1dSLionel SambucDIST=		${GCCDIST}
418a5822eSThomas VeermanGNUHOSTDIST=	${DIST}
518a5822eSThomas Veerman
684d9c625SLionel SambucGCC_MACHINE_ARCH=${MACHINE_ARCH:S/earmv5/earm/}
784d9c625SLionel Sambuc
8*0a6a1f1dSLionel Sambuc# Support src/compat builds
9*0a6a1f1dSLionel Sambuc.if defined(MLIBDIR) && exists(${.CURDIR}/../libstdc++-v3/arch/${MLIBDIR}/defs.mk)
10*0a6a1f1dSLionel SambucLIBSTDCXX_MACHINE_ARCH=${MLIBDIR}
11*0a6a1f1dSLionel Sambuc.else
12*0a6a1f1dSLionel SambucLIBSTDCXX_MACHINE_ARCH=${GCC_MACHINE_ARCH}
13*0a6a1f1dSLionel Sambuc.endif
14*0a6a1f1dSLionel Sambuc
15*0a6a1f1dSLionel SambucLIBSTDCXXSRCS=	${G_SRC_SOURCES} ${G_CPP98_SOURCES} ${G_CPP11_SOURCES}
1618a5822eSThomas VeermanLIBSUPCXXSRCS=	${G_LIBSUPCXX_SOURCES} ${G_LIBSUPCXX_C_SOURCES}
1718a5822eSThomas Veerman
1818a5822eSThomas VeermanCPPFLAGS+=	-I${DIST}/gcc
1918a5822eSThomas VeermanCPPFLAGS+=	-I${DIST}/include
2018a5822eSThomas VeermanCPPFLAGS+=	-I${DIST}/libstdc++-v3/libsupc++
21*0a6a1f1dSLionel SambucCPPFLAGS+=	-I${DIST}/libgcc
22*0a6a1f1dSLionel SambucCPPFLAGS+=	-I${.CURDIR}/../libstdc++-v3/arch/${LIBSTDCXX_MACHINE_ARCH} -I.
2318a5822eSThomas VeermanCPPFLAGS+=	-DHAVE_STDLIB_H -DHAVE_STRING_H
2418a5822eSThomas Veerman
250cdf705cSLionel Sambuc.if defined(__MINIX)
260cdf705cSLionel SambucCPPFLAGS+=	-I${DESTDIR}/usr/include/g++
27*0a6a1f1dSLionel SambucCPPFLAGS+=	-I${DESTDIR}/usr/include/gcc-4.8
280cdf705cSLionel Sambuc.endif #defined(__MINIX)
290cdf705cSLionel Sambuc
3018a5822eSThomas VeermanCPPFLAGS.cp-demangle.c=-DIN_GLIBCPP_V3
3118a5822eSThomas Veerman
32*0a6a1f1dSLionel Sambuc.for f in eh_ptr eh_throw guard atexit_thread nested_exception
33*0a6a1f1dSLionel SambucCOPTS.${f}.cc+=	-std=gnu++0x
34*0a6a1f1dSLionel Sambuc.endfor
35