freebsd-dev/gnu/usr.bin/binutils/as/Makefile

35 lines
584 B
Makefile
Raw Normal View History

1999-08-27 23:37:10 +00:00
# $FreeBSD$
.include "${.CURDIR}/../Makefile.inc0"
GASES= ${TARGET_ARCH}
2001-10-14 01:47:30 +00:00
FORMATS=freebsd
# Only build the cross tools when not cross-compiling.
.if ${TARGET_ARCH} == ${MACHINE_ARCH}
.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)
.endif
.endfor
.endif
.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)
.endif
.endfor
.endif
.endif
.for _g in ${GASES}
.for _f in ${FORMATS}
.if exists(${.CURDIR}/${_g}-${_f})
SUBDIR+= ${_g}-${_f}
.endif
.endfor
.endfor
.include <bsd.subdir.mk>