2010-06-20 13:54:40 +02:00
|
|
|
# $OpenBSD: Makefile,v 1.5 2003/06/23 07:52:18 deraadt Exp $
|
|
|
|
|
|
|
|
PROG= grep
|
|
|
|
SRCS= binary.c file.c grep.c mmfile.c queue.c util.c
|
|
|
|
LINKS= ${BINDIR}/grep ${BINDIR}/egrep \
|
|
|
|
${BINDIR}/grep ${BINDIR}/fgrep \
|
|
|
|
${BINDIR}/grep ${BINDIR}/zgrep \
|
|
|
|
${BINDIR}/grep ${BINDIR}/zegrep \
|
|
|
|
${BINDIR}/grep ${BINDIR}/zfgrep \
|
|
|
|
|
|
|
|
OPSYS!= uname
|
|
|
|
MLINKS= grep.1 egrep.1 \
|
|
|
|
grep.1 fgrep.1 \
|
|
|
|
grep.1 zgrep.1 \
|
|
|
|
grep.1 zegrep.1 \
|
|
|
|
grep.1 zfgrep.1
|
|
|
|
|
2010-06-20 13:55:19 +02:00
|
|
|
LDADD= -lz
|
|
|
|
DPADD= ${LIBZ}
|
|
|
|
|
2010-06-20 14:32:41 +02:00
|
|
|
.if ${COMPILER_TYPE} == "gnu"
|
2011-04-27 15:00:52 +02:00
|
|
|
CFLAGS+= -Wall
|
2010-06-20 14:32:41 +02:00
|
|
|
.endif
|
|
|
|
|
2010-06-20 13:54:40 +02:00
|
|
|
.if ${OPSYS} == "Minix"
|
2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.prog.mk>
|
2010-06-20 13:54:40 +02:00
|
|
|
.else
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.endif
|