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"
|
|
|
|
|
2001-10-14 01:47:30 +00:00
|
|
|
GASES= ${BINUTIL_ARCH}
|
|
|
|
FORMATS=freebsd
|
1999-11-06 21:54:21 +00:00
|
|
|
|
|
|
|
# Only build the cross tools when not cross-compiling.
|
1999-12-17 15:50:45 +00:00
|
|
|
.if ${TARGET_ARCH} == ${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}} == "")
|
2001-10-14 01:47:30 +00:00
|
|
|
GASES+= $(_g)
|
1999-11-06 21:54:21 +00:00
|
|
|
.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}} == "")
|
2001-10-14 01:47:30 +00:00
|
|
|
FORMATS+= $(_f)
|
1999-11-07 05:59:25 +00:00
|
|
|
.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>
|