etc/protocols - sync with NetBSD-8
[minix.git] / external / gpl3 / gcc / lib / libsupc++ / Makefile.common
blob7216f27f206502b7092651bc01327ab3e10cf232
1 #       $NetBSD: Makefile.common,v 1.8 2014/06/01 19:51:02 mrg Exp $
3 DIST=           ${GCCDIST}
4 GNUHOSTDIST=    ${DIST}
6 GCC_MACHINE_ARCH=${MACHINE_ARCH:S/earmv5/earm/}
8 # Support src/compat builds
9 .if defined(MLIBDIR) && exists(${.CURDIR}/../libstdc++-v3/arch/${MLIBDIR}/defs.mk)
10 LIBSTDCXX_MACHINE_ARCH=${MLIBDIR}
11 .else
12 LIBSTDCXX_MACHINE_ARCH=${GCC_MACHINE_ARCH}
13 .endif
15 LIBSTDCXXSRCS=  ${G_SRC_SOURCES} ${G_CPP98_SOURCES} ${G_CPP11_SOURCES}
16 LIBSUPCXXSRCS=  ${G_LIBSUPCXX_SOURCES} ${G_LIBSUPCXX_C_SOURCES}
18 CPPFLAGS+=      -I${DIST}/gcc
19 CPPFLAGS+=      -I${DIST}/include
20 CPPFLAGS+=      -I${DIST}/libstdc++-v3/libsupc++
21 CPPFLAGS+=      -I${DIST}/libgcc
22 CPPFLAGS+=      -I${.CURDIR}/../libstdc++-v3/arch/${LIBSTDCXX_MACHINE_ARCH} -I.
23 CPPFLAGS+=      -DHAVE_STDLIB_H -DHAVE_STRING_H
25 .if defined(__MINIX)
26 CPPFLAGS+=      -I${DESTDIR}/usr/include/g++
27 CPPFLAGS+=      -I${DESTDIR}/usr/include/gcc-4.8
28 .endif #defined(__MINIX)
30 CPPFLAGS.cp-demangle.c=-DIN_GLIBCPP_V3
32 .for f in eh_ptr eh_throw guard atexit_thread nested_exception
33 COPTS.${f}.cc+= -std=gnu++0x
34 .endfor