phunix/external/gpl3/gcc/lib/libsupc++/Makefile.common
Lionel Sambuc 0a6a1f1d05 NetBSD re-synchronization of the source tree
This brings our tree to NetBSD 7.0, as found on -current on the
10-10-2015.

This updates:
 - LLVM to 3.6.1
 - GCC to GCC 5.1
 - Replace minix/commands/zdump with usr.bin/zdump
 - external/bsd/libelf has moved to /external/bsd/elftoolchain/
 - Import ctwm
 - Drop sprintf from libminc

Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
2016-01-13 20:32:14 +01:00

35 lines
1005 B
Makefile

# $NetBSD: Makefile.common,v 1.8 2014/06/01 19:51:02 mrg Exp $
DIST= ${GCCDIST}
GNUHOSTDIST= ${DIST}
GCC_MACHINE_ARCH=${MACHINE_ARCH:S/earmv5/earm/}
# Support src/compat builds
.if defined(MLIBDIR) && exists(${.CURDIR}/../libstdc++-v3/arch/${MLIBDIR}/defs.mk)
LIBSTDCXX_MACHINE_ARCH=${MLIBDIR}
.else
LIBSTDCXX_MACHINE_ARCH=${GCC_MACHINE_ARCH}
.endif
LIBSTDCXXSRCS= ${G_SRC_SOURCES} ${G_CPP98_SOURCES} ${G_CPP11_SOURCES}
LIBSUPCXXSRCS= ${G_LIBSUPCXX_SOURCES} ${G_LIBSUPCXX_C_SOURCES}
CPPFLAGS+= -I${DIST}/gcc
CPPFLAGS+= -I${DIST}/include
CPPFLAGS+= -I${DIST}/libstdc++-v3/libsupc++
CPPFLAGS+= -I${DIST}/libgcc
CPPFLAGS+= -I${.CURDIR}/../libstdc++-v3/arch/${LIBSTDCXX_MACHINE_ARCH} -I.
CPPFLAGS+= -DHAVE_STDLIB_H -DHAVE_STRING_H
.if defined(__MINIX)
CPPFLAGS+= -I${DESTDIR}/usr/include/g++
CPPFLAGS+= -I${DESTDIR}/usr/include/gcc-4.8
.endif #defined(__MINIX)
CPPFLAGS.cp-demangle.c=-DIN_GLIBCPP_V3
.for f in eh_ptr eh_throw guard atexit_thread nested_exception
COPTS.${f}.cc+= -std=gnu++0x
.endfor