6 SRCS= closeout.c dfa.c error.c exclude.c grep.c grepmat.c hard-locale.c \
7 isdir.c kwset.c obstack.c quotearg.c savedir.c search.c xmalloc.c \
10 CFLAGS+=-I${.CURDIR} -I${DESTDIR}/usr/include/gnu -DHAVE_CONFIG_H
12 LINKS+= ${BINDIR}/grep ${BINDIR}/egrep \
13 ${BINDIR}/grep ${BINDIR}/fgrep
14 MLINKS= grep.1 egrep.1 grep.1 fgrep.1
16 DPADD= ${LIBGNUREGEX} ${LIBBZ2}
17 LDADD= -lgnuregex -lbz2
19 LINKS+= ${BINDIR}/grep ${BINDIR}/bzgrep \
20 ${BINDIR}/grep ${BINDIR}/bzegrep \
21 ${BINDIR}/grep ${BINDIR}/bzfgrep
22 MLINKS+=grep.1 bzgrep.1 grep.1 bzegrep.1 grep.1 bzfgrep.1
24 .if defined(GREP_LIBZ) && !empty(GREP_LIBZ)
28 LINKS+= ${BINDIR}/grep ${BINDIR}/zgrep \
29 ${BINDIR}/grep ${BINDIR}/zegrep \
30 ${BINDIR}/grep ${BINDIR}/zfgrep
31 MLINKS+=grep.1 zgrep.1 grep.1 zegrep.1 grep.1 zfgrep.1
38 for tst in ${TESTS}; do \
39 total=$$(($$total+1)); \
40 if GREP=${.OBJDIR}/${PROG} srcdir=${.CURDIR}/tests \
41 ${.CURDIR}/tests/$$tst; then \
44 failed=$$(($$failed+1)); \
48 if [ "$$failed" -eq 0 ]; then \
49 echo "All $$total tests passed"; \
51 echo "$$failed of $$total tests failed"; \
54 TESTS= warning.sh khadafy.sh spencer1.sh bre.sh ere.sh status.sh empty.sh \
55 options.sh backref.sh file.sh
57 .include <bsd.prog.mk>