pkgsrc/benchmarks/nsieve/Makefile
agc a16fc84f19 Deprecate NO_WRKSUBDIR, replacing it with an explicit assignment of:
WRKSRC= ${WRKDIR}

This is much cleaner, much more indicative of what happens, and removes
another of the negative definitions (NO_.* = value).
2001-09-09 20:36:07 +00:00

31 lines
752 B
Makefile

# $NetBSD: Makefile,v 1.8 2001/09/09 20:36:14 agc 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
COMMENT= Sieve of Eratosthenes benchmark
WRKSRC= ${WRKDIR}
do-extract:
${MKDIR} ${WRKSRC}
${CP} ${DISTDIR}/nsieve.c ${WRKSRC}/nsieve.c
do-build:
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -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"