binutils214 stage 1/4. Bring in the build infrastructure (left untied from
[dragonfly.git] / gnu / usr.bin / binutils214 / 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 # $DragonFly: src/gnu/usr.bin/binutils214/as/Attic/Makefile,v 1.1 2004/02/01 08:53:03 dillon Exp $
3
4 .include "${.CURDIR}/../Makefile.inc0"
5
6 GASES=  ${BINUTIL_ARCH}
7 FORMATS=dragonfly
8
9 # Only build the cross tools when not cross-compiling.
10 .if ${TARGET_ARCH} == ${MACHINE_ARCH}
11 .if defined(CROSS_ARCH)
12 .for _g in ${CROSS_ARCH}
13 .if (${GASES:R:M${_g:R}} == "")
14 GASES+= $(_g)
15 .endif
16 .endfor
17 .endif
18 .if defined(CROSS_FORMATS)
19 .for _f in ${CROSS_FORMATS}
20 .if (${FORMATS:R:M${_f:R}} == "")
21 FORMATS+= $(_f)
22 .endif
23 .endfor
24 .endif
25 .endif
26
27 .for _g in ${GASES}
28 .for _f in ${FORMATS}
29 .if exists(${.CURDIR}/${_g}-${_f})
30 SUBDIR+=        ${_g}-${_f}
31 .endif
32 .endfor
33 .endfor
34
35 .include <bsd.subdir.mk>