1998-03-01 23:41:17 +00:00
|
|
|
#
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1998-03-01 23:41:17 +00:00
|
|
|
#
|
|
|
|
|
1999-03-01 04:01:57 +00:00
|
|
|
.include "${.CURDIR}/../Makefile.inc0"
|
|
|
|
|
|
|
|
GASES= ${BINUTIL_ARCH}
|
1999-11-07 05:59:25 +00:00
|
|
|
FORMATS= freebsd
|
1999-11-06 21:54:21 +00:00
|
|
|
|
|
|
|
# Only build the cross tools when not cross-compiling.
|
|
|
|
__MA!=/sbin/sysctl -b hw.machine_arch
|
1999-11-14 13:54:44 +00:00
|
|
|
.if ${__MA} == ${MACHINE_ARCH}
|
1999-11-06 21:54:21 +00:00
|
|
|
.if defined(CROSS_ARCH)
|
|
|
|
.for _g in ${CROSS_ARCH}
|
|
|
|
.if (${GASES:R:M${_g:R}} == "")
|
|
|
|
GASES+=$(_g)
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
.endif
|
1999-11-07 05:59:25 +00:00
|
|
|
.if defined(CROSS_FORMATS)
|
|
|
|
.for _f in ${CROSS_FORMATS}
|
|
|
|
.if (${FORMATS:R:M${_f:R}} == "")
|
|
|
|
FORMATS+=$(_f)
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
.endif
|
1999-11-06 21:54:21 +00:00
|
|
|
.endif
|
|
|
|
|
1998-05-04 22:01:27 +00:00
|
|
|
.for _g in ${GASES}
|
1999-11-07 05:59:25 +00:00
|
|
|
.for _f in ${FORMATS}
|
1999-11-06 21:54:21 +00:00
|
|
|
.if exists(${.CURDIR}/${_g}-${_f})
|
|
|
|
SUBDIR+= ${_g}-${_f}
|
|
|
|
.endif
|
|
|
|
.endfor
|
1998-05-04 22:01:27 +00:00
|
|
|
.endfor
|
1998-03-01 23:41:17 +00:00
|
|
|
|
1998-05-04 22:01:27 +00:00
|
|
|
.include <bsd.subdir.mk>
|