pkgsrc/benchmarks/whetstone/Makefile

30 lines
751 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.20 2014/10/09 14:06:00 wiz Exp $
DISTNAME= whetstone
PKGNAME= whetstone-1.2
CATEGORIES= benchmarks
MASTER_SITES= ${MASTER_SITE_NETLIB:=benchmark/}
EXTRACT_SUFX= .c
2008-01-19 10:16:17 +01:00
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Benchmark for processors that gives you a MIPS rating
WRKSRC= ${WRKDIR}
2004-07-30 17:50:37 +02:00
INSTALLATION_DIRS= bin
do-build:
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -o whetstone whetstone.c -lm)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/whetstone ${DESTDIR}${PREFIX}/bin
benchmark:
@${WRKSRC}/whetstone 80000 | tee ${WRKSRC}/whetstone.out
results:
@${MKDIR} /tmp/benches/`domainname`
2000-03-16 13:16:49 +01:00
-@${CP} ${WRKSRC}/whetstone.out /tmp/benches/`domainname`/whetstone.`uname`-`uname -m`-`uname -r`.`hostname`
.include "../../mk/bsd.pkg.mk"