Makefile revision 53152
1#
2# $FreeBSD: head/gnu/usr.bin/binutils/as/Makefile 53152 1999-11-14 13:54:44Z marcel $
3#
4
5.include "${.CURDIR}/../Makefile.inc0"
6
7GASES=		${BINUTIL_ARCH}
8FORMATS=	freebsd
9
10# Only build the cross tools when not cross-compiling.
11__MA!=/sbin/sysctl -b hw.machine_arch
12.if ${__MA} == ${MACHINE_ARCH}
13.if defined(CROSS_ARCH)
14.for _g in ${CROSS_ARCH}
15.if (${GASES:R:M${_g:R}} == "")
16GASES+=$(_g)
17.endif
18.endfor
19.endif
20.if defined(CROSS_FORMATS)
21.for _f in ${CROSS_FORMATS}
22.if (${FORMATS:R:M${_f:R}} == "")
23FORMATS+=$(_f)
24.endif
25.endfor
26.endif
27.endif
28
29.for _g in ${GASES}
30.for _f in ${FORMATS}
31.if exists(${.CURDIR}/${_g}-${_f})
32SUBDIR+=	${_g}-${_f}
33.endif
34.endfor
35.endfor
36
37.include <bsd.subdir.mk>
38