freebsd-dev/gnu/usr.bin/binutils/Makefile
Ed Maste 5ea9e83e2f Allow ELF Tool Chain elfcopy to be installed as objcopy
ELF Tool Chain elfcopy is nearly a drop-in replacement for GNU objcopy,
but does not currently support PE output which is needed for building
x86 UEFI bits.

Add a src.conf knob to allow installing it as objcopy and set it by
default for aarch64 only, where we don't have a native binutils.

Reviewed by:	bapt
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D2887
2015-07-29 18:45:38 +00:00

34 lines
484 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
SUBDIR= doc\
libiberty \
libbfd \
libopcodes \
libbinutils \
${_addr2line} \
as \
ld \
${_nm} \
${_objcopy} \
objdump \
${_readelf} \
${_size} \
${_strings} \
${_strip}
.if ${MK_ELFTOOLCHAIN_TOOLS} == "no"
_addr2line= addr2line
_nm= nm
_readelf= readelf
_size= size
_strings= strings
_strip= strip
.endif
.if ${MK_ELFTOOLCHAIN_TOOLS} == "no" || ${MK_ELFCOPY_AS_OBJCOPY} == "no"
_objcopy= objcopy
.endif
.include <bsd.subdir.mk>