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.17 2001/12/31 23:04:11 thorpej Exp $
|
1998-08-27 06:12:12 +04:00
|
|
|
|
2001-08-06 23:11:59 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
.if defined(USE_NEW_TOOLCHAIN)
|
|
|
|
|
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 ${MKBFD} != "no"
|
2001-08-06 23:11:59 +04:00
|
|
|
.include "${.CURDIR}/common/arch/${MACHINE_ARCH}/defs.mk"
|
|
|
|
|
2001-08-06 23:59:39 +04:00
|
|
|
SUBDIR= common gas gprof ld ${G_PROGRAMS:C/-new$//:cxxfilt=c++filt}
|
2001-08-06 23:11:59 +04:00
|
|
|
SUBDIR:= ${SUBDIR:O} # alphabetize
|
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
|
|
|
.endif # MKBFD != no
|
2001-08-06 23:11:59 +04:00
|
|
|
|
|
|
|
.else
|
|
|
|
#
|
|
|
|
# XXX - BEGIN - Old toolchain build goop - delete when everything migrated - XXX
|
|
|
|
#
|
2000-10-25 17:00:59 +04:00
|
|
|
.if (${MACHINE_ARCH} != sparc64)
|
2001-01-09 06:13:39 +03:00
|
|
|
SUBDIR= common .WAIT addr2line ar c++filt nm objcopy objdump ranlib \
|
|
|
|
size strings strip
|
1998-08-27 06:12:12 +04:00
|
|
|
|
2000-10-25 17:00:59 +04:00
|
|
|
.endif
|
1999-02-11 19:15:55 +03:00
|
|
|
|
|
|
|
TEXINFO= binutils.info
|
|
|
|
INFOFLAGS= -I${.CURDIR}/../../dist/binutils
|
|
|
|
.PATH: ${.CURDIR}/../../dist/binutils
|
1997-12-18 10:37:37 +03:00
|
|
|
|
1999-02-11 19:15:55 +03:00
|
|
|
.include <bsd.info.mk>
|
2001-08-06 23:11:59 +04:00
|
|
|
#
|
|
|
|
# XXX - END - Old toolchain build goop - delete when everything migrated - XXX
|
|
|
|
#
|
|
|
|
.endif
|
|
|
|
|
1997-12-18 10:37:37 +03:00
|
|
|
.include <bsd.subdir.mk>
|