xref: /freebsd-14.2/usr.bin/size/Makefile (revision d0b2dbfa)
131942939SEd Maste
231942939SEd Maste.include <src.opts.mk>
331942939SEd Maste
4*1af3908cSEmmanuel VadotPACKAGE=	elftoolchain
5*1af3908cSEmmanuel Vadot
62821bdccSEd MasteELFTCDIR=	${SRCTOP}/contrib/elftoolchain
731942939SEd MasteSIZEDIR=	${ELFTCDIR}/size
831942939SEd Maste
931942939SEd Maste.PATH: ${SIZEDIR}
1031942939SEd Maste
1131942939SEd MastePROG=	size
1231942939SEd Maste
1331942939SEd MasteLIBADD=	elftc elf
1431942939SEd Maste
1510334649SMark Johnston.if ${MK_CASPER} != "no" && !defined(BOOTSTRAPPING) && !defined(NXB_TARGET)
1610334649SMark JohnstonLIBADD+=	casper
1710334649SMark JohnstonLIBADD+=	cap_fileargs
1810334649SMark JohnstonCFLAGS+=	-DWITH_CASPER
1910334649SMark Johnston.endif
2010334649SMark Johnston
2131942939SEd MasteCFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common
2231942939SEd Maste
2331942939SEd Maste.include <bsd.prog.mk>
24