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

54 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.10 2014/06/01 19:51:02 mrg Exp $
REQUIRETOOLS= yes
NOLINT= # defined
NOPIC= # defined
NOPROFILE= # defined
CWARNFLAGS.clang+= -Wno-parentheses
UNSUPPORTED_COMPILER.clang= # defined
.include <bsd.init.mk>
GCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
LIB= supc++
.if exists(${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk) && ${MKGCC} != "no"
.include "${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk"
SHLIB_MAJOR= 2
SHLIB_MINOR= 0
.include "${.CURDIR}/../libsupc++/Makefile.common"
SRCS= ${LIBSUPCXXSRCS} xmalloc.c
CXXFLAGS+= ${G_SECTION_FLAGS}
COPTS.cp-demangle.c = -Wno-stack-protector
.if ${HAVE_LIBGCC_EH} == "no"
G_CONFIGLINKS:= ${G_CONFIGLINKS:S,libgcc/config/arm/unwind-arm.h,libgcc/unwind-generic.h,}
.endif
.if ${MKGCC} != "no"
.if defined(G_CONFIGLINKS) && !empty(G_CONFIGLINKS)
BUILDSYMLINKS+= ${G_CONFIGLINKS}
.for _src _dst in ${G_CONFIGLINKS}
DPSRCS+= ${_dst}
.endfor
.endif
.endif
.include <bsd.lib.mk>
.PATH: ${DIST}/libstdc++-v3/src \
${DIST}/libstdc++-v3/libsupc++ \
${DIST}/libiberty \
${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}
${OBJS}: ${.CURDIR}/../libstdc++-v3/arch/${GCC_MACHINE_ARCH}/defs.mk
.else
.include <bsd.prog.mk> # do nothing
.endif