]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - gnu/usr.bin/binutils/Makefile
Merge ^/vendor/clang/dist up to its last change, and resolve conflicts.
[FreeBSD/FreeBSD.git] / gnu / usr.bin / binutils / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 SUBDIR= libiberty \
6         libbfd \
7         libopcodes
8
9 SUBDIR.${MK_BINUTILS}+= doc
10 SUBDIR.${MK_BINUTILS}+= libbinutils
11 SUBDIR.${MK_BINUTILS}+= objdump
12
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
18 .endif
19
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
24 .endif
25
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
30
31 .if !make(install)
32 SUBDIR_PARALLEL=
33 .endif
34
35 .include <bsd.subdir.mk>