blob: 55d2f77efc9571ef321a1c119f382229985e23d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# $NetBSD: Makefile,v 1.2 1998/12/26 15:59:56 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 | 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"
|