2014-12-01 17:49:42 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2023-01-27 14:26:06 +00:00
|
|
|
PACKAGE= elftoolchain
|
|
|
|
|
2016-04-21 12:58:29 +00:00
|
|
|
ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
|
2014-12-01 17:49:42 +00:00
|
|
|
SIZEDIR= ${ELFTCDIR}/size
|
|
|
|
|
|
|
|
.PATH: ${SIZEDIR}
|
|
|
|
|
|
|
|
PROG= size
|
|
|
|
|
|
|
|
LIBADD= elftc elf
|
|
|
|
|
2019-08-01 18:57:37 +00:00
|
|
|
.if ${MK_CASPER} != "no" && !defined(BOOTSTRAPPING) && !defined(NXB_TARGET)
|
|
|
|
LIBADD+= casper
|
|
|
|
LIBADD+= cap_fileargs
|
|
|
|
CFLAGS+= -DWITH_CASPER
|
|
|
|
.endif
|
|
|
|
|
2014-12-01 17:49:42 +00:00
|
|
|
CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|