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