Files
pkgsrc-ng/benchmarks/randread/patches/patch-Makefile
2013-09-26 17:14:40 +02:00

32 lines
884 B
Plaintext

$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