blob: 5e8b591dea02ea6ce450f70d7c296e77bb0f29e8 (
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
30
31
32
33
34
35
36
37
38
39
40
|
# $NetBSD: Makefile,v 1.8 2009/02/22 14:15:28 asau Exp $
DISTNAME= linpackc
PKGNAME= linpack-bench-940225
CATEGORIES= benchmarks
MASTER_SITES= ${MASTER_SITE_NETLIB:=benchmark/}
EXTRACT_SUFX= # empty
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Collection of benchmarks for floating point
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
INSTALLATION_DIRS= bin
do-extract:
${MKDIR} ${WRKSRC}
${CP} ${DISTDIR}/linpackc ${WRKSRC}/linpack.c
do-build:
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -DROLL -DDP -o linpackd linpack.c -lm)
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -DROLL -DSP -o linpacks linpack.c -lm)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/linpackd ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/linpacks ${DESTDIR}${PREFIX}/bin
benchmark:
-@${WRKSRC}/linpacks | tee ${WRKSRC}/linpacks.out
-@${WRKSRC}/linpackd | tee ${WRKSRC}/linpackd.out
results:
@${MKDIR} /tmp/benches/`domainname`
-@${CP} ${WRKSRC}/linpacks.out /tmp/benches/`domainname`/linpacks.`uname`-`uname -m`-`uname -r`.`hostname`
-@${CP} ${WRKSRC}/linpackd.out /tmp/benches/`domainname`/linpackd.`uname`-`uname -m`-`uname -r`.`hostname`
.include "../../mk/bsd.pkg.mk"
|