blob: b0a72c34133992d22ec04704010a12c02182a94e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# $NetBSD: Makefile,v 1.5 1999/03/16 09:02:27 agc 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}
EXTRACT_BEFORE_ARGS= #empty
EXTRACT_AFTER_ARGS= ${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"
|