summaryrefslogtreecommitdiff
path: root/benchmarks/heapsort/Makefile
diff options
context:
space:
mode:
authorgarbled <garbled@pkgsrc.org>1998-10-22 06:07:24 +0000
committergarbled <garbled@pkgsrc.org>1998-10-22 06:07:24 +0000
commit2c85e4c18655358319f4f2e7687411aa5ba4bce0 (patch)
tree2db3a6c51efd5455e81e691c729fdce22dc88dcb /benchmarks/heapsort/Makefile
parent039197971553de216bb08ff92b3b40c146f29e5e (diff)
downloadpkgsrc-2c85e4c18655358319f4f2e7687411aa5ba4bce0.tar.gz
Heapsort benchmark
benchmark program for variable sized arrays.
Diffstat (limited to 'benchmarks/heapsort/Makefile')
-rw-r--r--benchmarks/heapsort/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/benchmarks/heapsort/Makefile b/benchmarks/heapsort/Makefile
new file mode 100644
index 00000000000..312b82e2118
--- /dev/null
+++ b/benchmarks/heapsort/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 1998/10/22 06:07:24 garbled 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
+
+NO_WRKSUBDIR= yes
+
+do-extract:
+ ${MKDIR} ${WRKSRC}
+ ${CP} ${DISTDIR}/heapsort.c ${WRKSRC}/heapsort.c
+
+do-build:
+ (cd ${WRKSRC} ; cc -O2 -DUNIX -o heapsort heapsort.c -lm)
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/heapsort ${PREFIX}/bin
+
+benchmark:
+ -@${WRKSRC}/heapsort
+
+.include "../../mk/bsd.pkg.mk"