1999-08-27 19:37:10 -04:00
|
|
|
# $FreeBSD$
|
2001-03-15 18:20:13 -05:00
|
|
|
|
2014-12-01 12:49:42 -05:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
|
2019-03-06 15:13:02 -05:00
|
|
|
SUBDIR= libiberty \
|
2014-11-27 15:22:46 -05:00
|
|
|
libbfd \
|
2019-03-06 15:13:02 -05:00
|
|
|
libopcodes
|
|
|
|
|
|
|
|
|
|
SUBDIR.${MK_BINUTILS}+= doc
|
|
|
|
|
SUBDIR.${MK_BINUTILS}+= libbinutils
|
|
|
|
|
SUBDIR.${MK_BINUTILS}+= objdump
|
2015-01-02 13:45:03 -05:00
|
|
|
|
2020-01-19 14:16:32 -05:00
|
|
|
# GNU as is used on x86 only, for a few files that cannot be assembled by
|
|
|
|
|
# Clang IAS. Other archs either use Clang IAS for every assembly file, or
|
|
|
|
|
# use external toolchain.
|
|
|
|
|
.if ${TARGET} == "amd64" || ${TARGET} == "i386"
|
|
|
|
|
SUBDIR.${MK_BINUTILS}+= as
|
|
|
|
|
.endif
|
|
|
|
|
|
2020-01-14 12:56:54 -05:00
|
|
|
# All archs except powerpc either use lld or require external toolchain.
|
|
|
|
|
# powerpc still needs binutils ld to link 32-bit binaries.
|
|
|
|
|
.if ${TARGET} == "powerpc"
|
2019-03-06 15:13:02 -05:00
|
|
|
SUBDIR.${MK_BINUTILS}+=ld
|
2018-11-26 12:07:35 -05:00
|
|
|
.endif
|
1998-03-01 18:41:17 -05:00
|
|
|
|
2015-08-28 12:23:03 -04:00
|
|
|
SUBDIR_DEPEND_libbinutils=libbfd # for bfdver.h
|
|
|
|
|
SUBDIR_DEPEND_as=libbfd libiberty libopcodes
|
|
|
|
|
SUBDIR_DEPEND_ld=libbfd libiberty
|
|
|
|
|
SUBDIR_DEPEND_objdump=libbfd libiberty libbinutils libopcodes
|
2015-08-25 22:47:11 -04:00
|
|
|
|
|
|
|
|
.if !make(install)
|
|
|
|
|
SUBDIR_PARALLEL=
|
|
|
|
|
.endif
|
|
|
|
|
|
1998-03-01 18:41:17 -05:00
|
|
|
.include <bsd.subdir.mk>
|