binutils 2.22: Add makefiles, new incremental-dump binary
[dragonfly.git] / gnu / usr.bin / binutils222 / as / Makefile
1 .include "${.CURDIR}/../Makefile.inc0"
2
3 GASES=  ${BINUTIL_ARCH}
4 FORMATS=dragonfly
5
6 # Only build the cross tools when not cross-compiling.
7 .if ${TARGET_ARCH} == ${MACHINE_ARCH}
8 .if defined(CROSS_ARCH)
9 .for _g in ${CROSS_ARCH}
10 .if (${GASES:R:M${_g:R}} == "")
11 GASES+= $(_g)
12 .endif
13 .endfor
14 .endif
15 .if defined(CROSS_FORMATS)
16 .for _f in ${CROSS_FORMATS}
17 .if (${FORMATS:R:M${_f:R}} == "")
18 FORMATS+= $(_f)
19 .endif
20 .endfor
21 .endif
22 .endif
23
24 .for _g in ${GASES}
25 .for _f in ${FORMATS}
26 .if exists(${.CURDIR}/${_g}-${_f})
27 SUBDIR+=        ${_g}-${_f}
28 .endif
29 .endfor
30 .endfor
31
32 .include <bsd.subdir.mk>