pkgsrc/benchmarks/heapsort/Makefile
2004-07-30 15:50:37 +00:00

35 lines
860 B
Makefile

# $NetBSD: Makefile,v 1.12 2004/07/30 15:50:37 minskim 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
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}
INSTALLATION_DIRS= bin
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"