Introduce 3 new MK* variables that have effect in the USE_NEW_TOOLCHAIN
case:
MKBFD If set to "no", disables building of libbfd, libiberty,
and all things that depend on them (binutils/gas/ld, gdb,
dbsym, mdsetimage).
MKGDB If set to "no", disables bulding of gdb.
MKGCC If set to "no", disables building of gcc and the
gcc-related libraries (libg2c, libgcc, libobjc, libstdc++).
These are useful for building platforms for which either of the following
situations are true:
(1) You have no userland from which to run toolchain2netbsd
in order to build the appropriate toolchain build framework.
(2) The platform which you are building requires a newer set
of tools than are currently in the tree (e.g. x86-64, ia64).
2002-01-01 02:04:11 +03:00
|
|
|
# $NetBSD: Makefile,v 1.15 2001/12/31 23:04:12 thorpej Exp $
|
2001-06-18 20:18:30 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
Introduce 3 new MK* variables that have effect in the USE_NEW_TOOLCHAIN
case:
MKBFD If set to "no", disables building of libbfd, libiberty,
and all things that depend on them (binutils/gas/ld, gdb,
dbsym, mdsetimage).
MKGDB If set to "no", disables bulding of gdb.
MKGCC If set to "no", disables building of gcc and the
gcc-related libraries (libg2c, libgcc, libobjc, libstdc++).
These are useful for building platforms for which either of the following
situations are true:
(1) You have no userland from which to run toolchain2netbsd
in order to build the appropriate toolchain build framework.
(2) The platform which you are building requires a newer set
of tools than are currently in the tree (e.g. x86-64, ia64).
2002-01-01 02:04:11 +03:00
|
|
|
.if defined(USE_NEW_TOOLCHAIN) && ${MKGCC} != "no"
|
2001-06-18 20:18:30 +04:00
|
|
|
|
2001-10-09 02:27:34 +04:00
|
|
|
SUBDIR+= backend frontend cpp0 gcov .WAIT \
|
2001-12-20 02:54:16 +03:00
|
|
|
cc1 cc1obj cc1plus cpp f771 g++ g77 gcc protoize unprotoize
|
2001-06-18 20:18:30 +04:00
|
|
|
|
|
|
|
.include <bsd.subdir.mk>
|
|
|
|
|
|
|
|
.else
|
|
|
|
# Do nothing. (PROG undefined)
|
2001-12-12 04:48:43 +03:00
|
|
|
NOOBJ=# defined
|
2001-06-18 20:18:30 +04:00
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.endif
|