# $NetBSD: Makefile,v 1.7 2000/03/16 12:16:54 wiz Exp $ DISTNAME= whetstone PKGNAME= whetstone-1.2 CATEGORIES= benchmarks MASTER_SITES= http://www.netlib.org/benchmark/ EXTRACT_SUFX= .c MAINTAINER= root@garbled.net NO_WRKSUBDIR= yes EXTRACT_CMD= ${CP} ${DOWNLOADED_DISTFILE} ${WRKSRC} do-build: (cd ${WRKSRC} ; ${CC} -O2 -o whetstone whetstone.c -lm) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/whetstone ${PREFIX}/bin benchmark: @${WRKSRC}/whetstone 80000 | tee ${WRKSRC}/whetstone.out results: -@${MKDIR} /tmp/benches/`domainname` -@${CP} ${WRKSRC}/whetstone.out /tmp/benches/`domainname`/whetstone.`uname`-`uname -m`-`uname -r`.`hostname` .include "../../mk/bsd.pkg.mk"