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).
2001-12-31 23:04:11 +00:00
|
|
|
# $NetBSD: Makefile,v 1.29 2001/12/31 23:04:12 thorpej Exp $
|
2001-08-09 16:09:52 +00:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1998-04-09 00:05:14 +00:00
|
|
|
|
2001-07-24 19:44:47 +00:00
|
|
|
.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).
2001-12-31 23:04:11 +00:00
|
|
|
.if ${MKBFD} != "no"
|
|
|
|
SUBDIR+= libbfd libiberty
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MKGCC} != "no"
|
|
|
|
SUBDIR+= libg2c libgcc libobjc libstdc++
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SUBDIR+= libmalloc
|
2001-07-24 19:44:47 +00:00
|
|
|
|
|
|
|
.else
|
|
|
|
#
|
|
|
|
# XXX - BEGIN - Old toolchain build goop - delete when everything migrated - XXX
|
|
|
|
#
|
2000-05-10 22:39:29 +00:00
|
|
|
HAVE_GCC29!= ${CXX} --version | egrep "^(2\.9)" ; echo
|
2000-05-09 06:23:40 +00:00
|
|
|
|
|
|
|
SUBDIR+= libbfd libmalloc
|
|
|
|
|
|
|
|
.if empty(HAVE_GCC29) || make (obj) || make(cleandir) || make(clean)
|
2001-05-10 12:53:02 +00:00
|
|
|
SUBDIR+= libg2c libgcc libobjc
|
2001-07-28 06:59:02 +00:00
|
|
|
.if (${MACHINE_ARCH} != "sparc64") && (${MACHINE_ARCH} != "arm")
|
2001-05-10 12:53:02 +00:00
|
|
|
SUBDIR+= libstdc++
|
|
|
|
.endif
|
2000-05-09 06:23:40 +00:00
|
|
|
.endif
|
2001-07-24 19:44:47 +00:00
|
|
|
#
|
|
|
|
# XXX - END - Old toolchain build goop - delete when everything migrated - XXX
|
|
|
|
#
|
|
|
|
.endif
|
1997-10-23 18:15:04 +00:00
|
|
|
|
1993-04-08 01:10:47 +00:00
|
|
|
.include <bsd.subdir.mk>
|