Submitted by Xavier Santolaria <xavier@santolaria.net>. Randread is a small, simple benchmark program that reads or writes randomly chosen blocks or lengths of blocks from a file or raw disk partition. This can be used to test both random and sequential read and write performance.
31 lines
735 B
Makefile
31 lines
735 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2003/07/04 15:30:53 naddy Exp $
|
|
|
|
COMMENT= "help benchmark random read performance"
|
|
|
|
DISTNAME= randread-0.2
|
|
CATEGORIES= benchmarks
|
|
|
|
HOMEPAGE= http://randread.sourceforge.net/
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=randread/}
|
|
|
|
MAINTAINER= Xavier Santolaria <xavier@santolaria.net>
|
|
|
|
# Public Domain
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && \
|
|
${CC} ${CFLAGS} -o randread randread.c filelist.c
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/randread ${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/randread
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/randread
|
|
|
|
.include <bsd.port.mk>
|