pkgsrc/benchmarks/heapsort/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
787 B
Makefile

# $NetBSD: Makefile,v 1.8 2001/09/09 20:36:14 agc Exp $
DISTNAME= heapsort.c
PKGNAME= heapsort-1.0
CATEGORIES= benchmarks
MASTER_SITES= ftp://ftp.nosc.mil/pub/aburto/heapsort/
EXTRACT_SUFX= #empty
MAINTAINER= root@garbled.net
COMMENT= benchmark program for variable sized arrays
WRKSRC= ${WRKDIR}
do-extract:
${MKDIR} ${WRKSRC}
${CP} ${DISTDIR}/heapsort.c ${WRKSRC}/heapsort.c
do-build:
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -DUNIX -o heapsort heapsort.c -lm)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/heapsort ${PREFIX}/bin
benchmark:
-@${WRKSRC}/heapsort | tee ${WRKSRC}/heapsort.out
results:
@${MKDIR} /tmp/benches/`domainname`
-@${CP} ${WRKSRC}/heapsort.out /tmp/benches/`domainname`/heapsort.`uname`-`uname -m`-`uname -r`.`hostname`
.include "../../mk/bsd.pkg.mk"