diff options
author | emaste <emaste@FreeBSD.org> | 2014-12-01 17:49:42 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-12-01 17:49:42 +0000 |
commit | c79f6538fe5b1fe35382903168b76167be44db9e (patch) | |
tree | b5191de270f7e85906a95d316dda5b037968fa58 /usr.bin/elfcopy/Makefile | |
parent | 1941346c9da7dde6f28d67d3053d7713294d012c (diff) | |
download | FreeBSD-src-c79f6538fe5b1fe35382903168b76167be44db9e.zip FreeBSD-src-c79f6538fe5b1fe35382903168b76167be44db9e.tar.gz |
Build infrastructure for elftoolchain tools
Set WITH_ELFTOOLCHAIN_TOOLS in src.conf to use the elftoolchain version
of the following tools:
* addr2line
* elfcopy (strip / mcs)
* nm
* size
* strings
Reviewed by: bapt (earlier version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1224
Diffstat (limited to 'usr.bin/elfcopy/Makefile')
-rw-r--r-- | usr.bin/elfcopy/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/usr.bin/elfcopy/Makefile b/usr.bin/elfcopy/Makefile new file mode 100644 index 0000000..8e7f31d --- /dev/null +++ b/usr.bin/elfcopy/Makefile @@ -0,0 +1,24 @@ +# $FreeBSD$ + +.include <src.opts.mk> + +ELFTCDIR= ${.CURDIR}/../../contrib/elftoolchain +ELFCOPYDIR= ${ELFTCDIR}/elfcopy + +.PATH: ${ELFCOPYDIR} + +PROG= elfcopy + +SRCS= archive.c ascii.c binary.c main.c sections.c segments.c symbols.c + +WARNS?= 5 + +LIBADD= archive elftc elf + +CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common + +MAN= elfcopy.1 strip.1 + +LINKS= ${BINDIR}/elfcopy ${BINDIR}/strip + +.include <bsd.prog.mk> |