summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/grep/Makefile
blob: b77bf9a99f7365964d454b7cb0d6a035ee738aaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#	$OpenBSD: Makefile,v 1.5 2002/12/09 23:43:11 millert Exp $
#	$NetBSD: Makefile,v 1.6 1995/04/23 07:58:41 cgd Exp $

PROG=	grep
SRCS=	dfa.c grep.c kwset.c obstack.c regex.c savedir.c search.c stpcpy.c
CFLAGS+=-I${.CURDIR} -DVERSION=\"2.4.1\" -DPACKAGE=\"grep\" -DGREP \
	-DSTDC_HEADERS  -DHAVE_MEMCHR -DHAVE_MEMMOVE -DHAVE_MEMCPY \
	-DHAVE_DIRENT_H -DHAVE_UNISTD_H -DHAVE_STRERROR \
	-DHAVE_SETMODE -DHAVE_GETPAGESIZE -DHAVE_MMAP

LINKS+= ${BINDIR}/grep ${BINDIR}/egrep \
	${BINDIR}/grep ${BINDIR}/fgrep
MLINKS= grep.1 egrep.1 grep.1 fgrep.1


check:	all
	GREP=./grep sh ${.CURDIR}/tests/bre.sh ${.CURDIR}/tests
	#GREP=./grep sh ${.CURDIR}/tests/ere.sh ${.CURDIR}/tests
	GREP=./grep sh ${.CURDIR}/tests/khadafy.sh ${.CURDIR}/tests
	GREP=./grep sh ${.CURDIR}/tests/options.sh ${.CURDIR}/tests
	GREP=./grep sh ${.CURDIR}/tests/spencer1.sh ${.CURDIR}/tests
	GREP=./grep sh ${.CURDIR}/tests/status.sh ${.CURDIR}/tests
	GREP=./grep sh ${.CURDIR}/tests/warning.sh ${.CURDIR}/tests

.include <bsd.prog.mk>