pkgsrc/benchmarks/flops/Makefile
garbled f544fc14ed Fix all the benchmark targets so they work properly, and work with the
package uninstalled, with the exceptionof lmbench.  Make non-batch
targets for all the benchmarks, and create a results target which
places all the results in /tmp for easier collection.
1998-12-26 15:59:54 +00:00

34 lines
923 B
Makefile

# $NetBSD: Makefile,v 1.2 1998/12/26 15:59:55 garbled Exp $
DISTNAME= flops
PKGNAME= flops-2.0
CATEGORIES= benchmarks
MASTER_SITES= ftp://ftp.nosc.mil/pub/aburto/flops/
DISTFILES= ${DISTNAME}.c ${DISTNAME}.doc
MAINTAINER= root@garbled.net
HOMEPAGE= http://performance.netlib.org/performance/html/flops.html
NO_WRKSUBDIR= yes
do-extract:
${MKDIR} ${WRKSRC}
${CP} ${DISTDIR}/flops.c ${WRKSRC}/flops.c
${CP} ${DISTDIR}/flops.doc ${WRKSRC}/flops.doc
do-build:
(cd ${WRKSRC} ; cc -O2 -DUNIX -o flops flops.c -lm)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/flops ${PREFIX}/bin
${MKDIR} ${PREFIX}/share/doc/flops
${INSTALL_DATA} ${WRKSRC}/flops.doc ${PREFIX}/share/doc/flops
benchmark:
-@${WRKSRC}/flops | tee ${WRKSRC}/flops.out
results:
-@${MKDIR} /tmp/benches/`domainname`
-@cp ${WRKSRC}/flops.out /tmp/benches/`domainname`/flops.`uname`-`uname -m`-`uname -r`.`hostname`
.include "../../mk/bsd.pkg.mk"