summaryrefslogtreecommitdiff
path: root/usr.bin/readelf
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2019-08-01 18:57:08 +0000
committerMark Johnston <markj@FreeBSD.org>2019-08-01 18:57:08 +0000
commit802c2095b5a6dcf0f63c473cbba1e40445e9052a (patch)
tree017aa9db173637f3e20f9f4a7f8db4589b92298d /usr.bin/readelf
parent1d954fed61a0fd99ac40a401764b23e188610d4e (diff)
downloadsrc-test2-802c2095b5a6dcf0f63c473cbba1e40445e9052a.tar.gz
src-test2-802c2095b5a6dcf0f63c473cbba1e40445e9052a.zip
Notes
Diffstat (limited to 'usr.bin/readelf')
-rw-r--r--usr.bin/readelf/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.bin/readelf/Makefile b/usr.bin/readelf/Makefile
index 238a901197d7..ba44aac32d67 100644
--- a/usr.bin/readelf/Makefile
+++ b/usr.bin/readelf/Makefile
@@ -1,5 +1,7 @@
# $FreeBSD$
+.include <src.opts.mk>
+
ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
READELFDIR= ${ELFTCDIR}/readelf
@@ -10,6 +12,12 @@ SRCS= readelf.c
LIBADD= dwarf elftc elf
+.if ${MK_CASPER} != "no"
+LIBADD+= casper
+LIBADD+= cap_fileargs
+CFLAGS+= -DWITH_CASPER
+.endif
+
CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common
# This same hack is in lib/libelf/Makefile and lib/libdwarf/Makefile