pkgsrc/benchmarks/randread/patches/patch-Makefile
obache 583b33d851 Update randread to 0.2.
Based on PR#44354 by Tony Young.
set LICENSE=public-domain, unit-test support by me.

Version 0.2  2002-09-11

    Added unit test framework.
    Read from a list of files, rather than just one, seeking evenly within
	all of them based on the number of blocks in each.
    Allow reading several contiguous blocks for each seek, so we can do
	sequential/random and sequential read testing.
    Print more and clearer information.
    Added disktest shell scripts.
2011-02-03 14:15:12 +00:00

31 lines
884 B
Text

$NetBSD: patch-Makefile,v 1.1 2011/02/03 14:15:12 obache Exp $
* proper CPPFLAGS and LDFLAGS will be set by pkgsrc
* honor CFLAGS
--- Makefile.orig 2002-09-11 04:55:38.000000000 +0000
+++ Makefile
@@ -2,11 +2,11 @@
# Add alternative directories for includes files and libraries.
-CPPFLAGS=-I/usr/pkg/include
-LDFLAGS=-L/usr/pkg/lib
+CPPFLAGS?=-I/usr/pkg/include
+LDFLAGS?=-L/usr/pkg/lib
CC=cc ${CPPFLAGS}
randread: randread.c
- ${CC} -g -Wall -o randread randread.c filelist.c
+ ${CC} ${CFLAGS} -Wall -o randread randread.c filelist.c
tarfile: clean
@@ -18,6 +18,6 @@ tarfile: clean
#
test::
- ${CC} -g -Wall -o test test.c ${LDFLAGS} -lcheck
- ${CC} -g -Wall -o filelist_test filelist_test.c filelist.c \
+ ${CC} ${CFLAGS} -Wall -o test test.c ${LDFLAGS} -lcheck
+ ${CC} ${CFLAGS} -Wall -o filelist_test filelist_test.c filelist.c \
${LDFLAGS} -lcheck
./test