2002-01-29 13:20:28 +03:00
|
|
|
# $NetBSD: Makefile,v 1.8 2002/01/29 10:20:30 tv Exp $
|
2001-10-22 07:23:00 +04:00
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
.include <bsd.own.mk>
|
2001-10-25 03:56:38 +04:00
|
|
|
|
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) && ${MKBFD} != "no"
|
2001-10-25 03:56:38 +04:00
|
|
|
TOP= ${.CURDIR}/../..
|
|
|
|
DIST= ${TOP}/dist/toolchain
|
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
PROG= mdsetimage
|
|
|
|
MAN= mdsetimage.8
|
2001-10-25 03:56:38 +04:00
|
|
|
|
2002-01-29 13:20:28 +03:00
|
|
|
CPPFLAGS+= -I${BFDDIR} -I${DIST}/bfd -I${DIST}/binutils -I${DIST}/include
|
2001-10-22 07:23:00 +04:00
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
DPADD+= ${BFDDIR}/libbfd.a
|
|
|
|
LDADD+= -L${BFDDIR} -lbfd
|
2001-10-22 07:23:00 +04:00
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
DPADD+= ${IBERTYDIR}/libiberty.a
|
|
|
|
LDADD+= -L${IBERTYDIR} -liberty
|
2001-10-22 07:23:00 +04:00
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
.ifndef HOSTPROG
|
2001-10-22 07:23:00 +04:00
|
|
|
.include "${TOP}/lib/libbfd/arch/${MACHINE_ARCH}/defs.mk"
|
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
BFDDIR!= cd ${.CURDIR}/../../lib/libbfd && ${PRINTOBJDIR}
|
|
|
|
IBERTYDIR!= cd ${TOP}/lib/libiberty && ${PRINTOBJDIR}
|
2001-10-22 07:23:00 +04:00
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
CPPFLAGS+= -I${TOP}/lib/libbfd/arch/${MACHINE_ARCH} ${G_INCLUDES}
|
2001-10-22 07:23:00 +04:00
|
|
|
LDADD+= -lintl
|
|
|
|
DPADD+= ${LIBINTL}
|
2001-11-13 02:16:17 +03:00
|
|
|
.endif # HOSTPROG
|
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 # USE_NEW_TOOLCHAIN && MKBFD != no
|
2001-10-22 07:23:00 +04:00
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
.ifndef HOSTPROG
|
2001-10-22 07:23:00 +04:00
|
|
|
.include <bsd.prog.mk>
|
2001-10-25 03:56:38 +04:00
|
|
|
.endif # HOSTPROG
|