9 SUBDIR.${MK_BINUTILS}+= doc
10 SUBDIR.${MK_BINUTILS}+= libbinutils
11 SUBDIR.${MK_BINUTILS}+= objdump
13 # GNU as is used on x86 only, for a few files that cannot be assembled by
14 # Clang IAS. Other archs either use Clang IAS for every assembly file, or
15 # use external toolchain.
16 .if ${TARGET} == "amd64" || ${TARGET} == "i386"
17 SUBDIR.${MK_BINUTILS}+= as
20 # All archs except powerpc either use lld or require external toolchain.
21 # powerpc still needs binutils ld to link 32-bit binaries.
22 .if ${TARGET} == "powerpc"
23 SUBDIR.${MK_BINUTILS}+=ld
26 SUBDIR_DEPEND_libbinutils=libbfd # for bfdver.h
27 SUBDIR_DEPEND_as=libbfd libiberty libopcodes
28 SUBDIR_DEPEND_ld=libbfd libiberty
29 SUBDIR_DEPEND_objdump=libbfd libiberty libbinutils libopcodes
35 .include <bsd.subdir.mk>