1997-10-25 14:10:19 +04:00
|
|
|
# $NetBSD: Makefile,v 1.8 1997/10/25 10:11:22 lukem Exp $
|
1993-08-02 21:38:43 +04:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
PROG= grep
|
1993-07-07 21:25:52 +04:00
|
|
|
SRCS= dfa.c grep.c getopt.c kwset.c obstack.c regex.c search.c
|
1997-10-25 14:10:19 +04:00
|
|
|
CPPFLAGS+=-DGREP -DHAVE_STRING_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_UNISTD_H=1 \
|
1993-07-07 21:25:52 +04:00
|
|
|
-DHAVE_GETPAGESIZE=1 -DHAVE_MEMCHR=1 -DHAVE_STRERROR=1 \
|
|
|
|
-DHAVE_VALLOC=1
|
|
|
|
|
1993-10-07 10:23:44 +03:00
|
|
|
LDADD+= -lgnumalloc
|
1997-03-25 01:02:40 +03:00
|
|
|
DPADD+= ${LIBGNUMALLOC}
|
1993-10-07 10:23:44 +03:00
|
|
|
|
1993-08-10 04:02:45 +04:00
|
|
|
LINKS+= ${BINDIR}/grep ${BINDIR}/egrep \
|
|
|
|
${BINDIR}/grep ${BINDIR}/fgrep
|
1993-07-07 21:25:52 +04:00
|
|
|
MLINKS= grep.1 egrep.1 grep.1 fgrep.1
|
|
|
|
|
|
|
|
check: all
|
|
|
|
sh ${.CURDIR}/tests/check.sh ${.CURDIR}/tests
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|