Initial import from FreeBSD RELENG_4:
[games.git] / gnu / usr.bin / binutils / as / Makefile
1 # $FreeBSD: src/gnu/usr.bin/binutils/as/Makefile,v 1.10.2.2 2002/09/01 23:39:13 obrien Exp $
2
3 .include "${.CURDIR}/../Makefile.inc0"
4
5 GASES=  ${BINUTIL_ARCH}
6 FORMATS=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}} == "")
13 GASES+= $(_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}} == "")
20 FORMATS+= $(_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})
29 SUBDIR+=        ${_g}-${_f}
30 .endif
31 .endfor
32 .endfor
33
34 .include <bsd.subdir.mk>