f544fc14ed
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.
30 lines
702 B
Makefile
30 lines
702 B
Makefile
# $NetBSD: Makefile,v 1.2 1998/12/26 15:59:56 garbled Exp $
|
|
|
|
DISTNAME= nsieve.c
|
|
PKGNAME= nsieve-1.2b
|
|
CATEGORIES= benchmarks
|
|
MASTER_SITES= ftp://ftp.nosc.mil/pub/aburto/nsieve/
|
|
EXTRACT_SUFX= #empty
|
|
|
|
MAINTAINER= root@garbled.net
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
do-extract:
|
|
${MKDIR} ${WRKSRC}
|
|
${CP} ${DISTDIR}/nsieve.c ${WRKSRC}/nsieve.c
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} ; cc -O2 -DUNIX -o nsieve nsieve.c -lm)
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/nsieve ${PREFIX}/bin
|
|
|
|
benchmark:
|
|
-@${WRKSRC}/nsieve | tee ${WRKSRC}/nsieve.out
|
|
|
|
results:
|
|
-@${MKDIR} /tmp/benches/`domainname`
|
|
-@cp ${WRKSRC}/nsieve.out /tmp/benches/`domainname`/nsieve.`uname`-`uname -m`-`uname -r`.`hostname`
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|