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-06 21:54:21 +00:00
|
|
|
|
|
|
|
# Only build the cross tools when not cross-compiling.
|
|
|
|
__MA!=/sbin/sysctl -b hw.machine_arch
|
|
|
|
__M!=/sbin/sysctl -b hw.machine
|
|
|
|
.if ${__MA} == ${MACHINE_ARCH} || ${__M} == ${MACHINE}
|
|
|
|
.if defined(CROSS_ARCH)
|
|
|
|
.for _g in ${CROSS_ARCH}
|
|
|
|
.if (${GASES:R:M${_g:R}} == "")
|
|
|
|
GASES+=$(_g)
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
1998-05-04 22:01:27 +00:00
|
|
|
.for _g in ${GASES}
|
1998-05-11 09:31:17 +00:00
|
|
|
.if exists(${.CURDIR}/as_${_g})
|
1998-05-04 22:01:27 +00:00
|
|
|
SUBDIR+= as_${_g}
|
1998-05-11 09:31:17 +00:00
|
|
|
.endif
|
1999-11-06 21:54:21 +00:00
|
|
|
.if defined(CROSS_FORMATS)
|
|
|
|
.for _f in ${CROSS_FORMATS}
|
|
|
|
.if exists(${.CURDIR}/${_g}-${_f})
|
|
|
|
SUBDIR+= ${_g}-${_f}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
.endif
|
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>
|