pkgsrc/benchmarks/whetstone/Makefile
agc a16fc84f19 Deprecate NO_WRKSUBDIR, replacing it with an explicit assignment of:
WRKSRC= ${WRKDIR}

This is much cleaner, much more indicative of what happens, and removes
another of the negative definitions (NO_.* = value).
2001-09-09 20:36:07 +00:00

28 lines
762 B
Makefile

# $NetBSD: Makefile,v 1.11 2001/09/09 20:36:15 agc Exp $
DISTNAME= whetstone
PKGNAME= whetstone-1.2
CATEGORIES= benchmarks
MASTER_SITES= http://www.netlib.org/benchmark/
EXTRACT_SUFX= .c
MAINTAINER= root@garbled.net
COMMENT= Benchmark for processors that gives you a MIPS rating
WRKSRC= ${WRKDIR}
EXTRACT_CMD= ${CP} ${DOWNLOADED_DISTFILE} ${WRKSRC}
do-build:
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -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"