summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/binutils/as/Makefile
blob: 0e693558df9b79ff12ffcfdaef8216407f5e27d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
# $FreeBSD$
#

.include "${.CURDIR}/../Makefile.inc0"

GASES=		${BINUTIL_ARCH}
FORMATS=	freebsd

# Only build the cross tools when not cross-compiling.
.if ${TARGET_ARCH} == ${MACHINE_ARCH}
.if defined(CROSS_ARCH)
.for _g in ${CROSS_ARCH}
.if (${GASES:R:M${_g:R}} == "")
GASES+=$(_g)
.endif
.endfor
.endif
.if defined(CROSS_FORMATS)
.for _f in ${CROSS_FORMATS}
.if (${FORMATS:R:M${_f:R}} == "")
FORMATS+=$(_f)
.endif
.endfor
.endif
.endif

.for _g in ${GASES}
.for _f in ${FORMATS}
.if exists(${.CURDIR}/${_g}-${_f})
SUBDIR+=	${_g}-${_f}
.endif
.endfor
.endfor

.include <bsd.subdir.mk>
OpenPOWER on IntegriCloud