3b08abd277
two variables: TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is no working in-tree toolchain (hppa, ns32k, sh5, x86_64). EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of an external toolchain (e.g. /usr/local/gnu). This enables the cross-build framework even for TOOLCHAIN_MISSING platforms. If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all unconditionally set to "no", since the bits are not there to build. If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no", since the external toolchain's compiler is not in-sync with the in-tree compiler support components (e.g. libgcc). * Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in that file can use it.
22 lines
590 B
Makefile
22 lines
590 B
Makefile
# $NetBSD: Makefile,v 1.9 2002/09/17 23:18:37 thorpej Exp $
|
|
|
|
NOOBJ= # defined
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
# This include file keeps the includes/build of libstdc++ separate,
|
|
# to avoid issues like "iostream.cc" using the default ".cc:" rule
|
|
# to build the "iostream" file (which is actually a header).
|
|
|
|
.include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"
|
|
|
|
DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain
|
|
|
|
INCS= ${LIBIO_HEADERS:Niostdio.h}
|
|
INCSDIR= /usr/include/g++
|
|
|
|
.PATH: ${DIST}/libstdc++ ${DIST}/libstdc++/stl ${DIST}/libio
|
|
|
|
# Get default targets including <bsd.inc.mk>.
|
|
.include <bsd.prog.mk>
|