1# $FreeBSD$ 2 3.include "${.CURDIR}/../Makefile.inc0" 4 5GASES= ${TARGET_ARCH} 6FORMATS=freebsd 7 8# Only build the cross tools when not cross-compiling. 9.if ${TARGET_ARCH} == ${MACHINE_ARCH} 10.if defined(CROSS_ARCH) 11.for _g in ${CROSS_ARCH} 12.if (${GASES:R:M${_g:R}} == "") 13GASES+= $(_g) 14.endif 15.endfor 16.endif 17.if defined(CROSS_FORMATS) 18.for _f in ${CROSS_FORMATS} 19.if (${FORMATS:R:M${_f:R}} == "") 20FORMATS+= $(_f) 21.endif 22.endfor 23.endif 24.endif 25 26.for _g in ${GASES} 27.for _f in ${FORMATS} 28.if exists(${.CURDIR}/${_g}-${_f}) 29SUBDIR+= ${_g}-${_f} 30.endif 31.endfor 32.endfor 33 34.include <bsd.subdir.mk> 35