1# $OpenBSD: Makefile,v 1.4 2014/12/17 00:10:22 daniel Exp $ 2 3.if (${MACHINE} == "i386") 4REGRESS_TARGETS+= size 5.endif 6 7SRC= ${.CURDIR}/../../.. 8 9size: clean 10 mkdir build 11 /usr/sbin/config -s ${SRC}/sys -b build \ 12 ${SRC}/sys/arch/${MACHINE}/conf/GENERIC 13 cd build; \ 14 make db_hangman.o; \ 15 if [ `size db_hangman.o | \ 16 awk 'BEGIN {getline} {print $$1+$$2}'` -gt 2048 ]; \ 17 then \ 18 echo 'hangman is too big!!!'; \ 19 false; \ 20 fi 21 22clean: 23 rm -rf build 24 25.include <bsd.regress.mk> 26