mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-09 22:20:19 -04:00
30 lines
874 B
Makefile
30 lines
874 B
Makefile
# $NetBSD: Makefile.common,v 1.3 2015/09/23 04:24:16 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
|
|
|
|
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
|