* Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
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.
2002-09-18 03:18:25 +04:00
|
|
|
# $NetBSD: Makefile,v 1.7 2002/09/17 23:18:35 thorpej Exp $
|
2001-12-13 02:09:13 +03:00
|
|
|
|
|
|
|
NOLINT= # defined
|
|
|
|
NOPROFILE= # defined
|
|
|
|
NOPIC= # defined
|
|
|
|
NOLINKLIB= # defined
|
2001-07-18 16:17:15 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
LIB= iberty
|
|
|
|
|
2002-02-27 20:03:49 +03:00
|
|
|
.include "${.CURDIR}/defs.mk"
|
2001-07-18 16:17:15 +04:00
|
|
|
|
2002-08-19 13:46:39 +04:00
|
|
|
DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain
|
2001-07-18 16:17:15 +04:00
|
|
|
|
|
|
|
SRCS= ${G_REQUIRED_OFILES:.o=.c} ${G_EXTRA_OFILES:.o=.c} \
|
|
|
|
${G_LIBOBJS:.o=.c} ${G_ALLOCA:.o=.c}
|
|
|
|
|
2002-02-27 20:03:49 +03:00
|
|
|
CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR} -I${DIST}/include
|
2001-07-18 16:17:15 +04:00
|
|
|
|
|
|
|
.PATH: ${DIST}/libiberty
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|