aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/grep/Makefile
blob: 661efbd9f0ac80bb7bf1ac9df4e02f15153c7477 (plain) (blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#	$NetBSD: Makefile,v 1.4 2011/02/16 01:31:33 joerg Exp $
#	$FreeBSD$
#	$OpenBSD: Makefile,v 1.6 2003/06/25 15:00:04 millert Exp $

.include <src.opts.mk>

PACKAGE=	runtime

PROG=	grep
MAN1=	grep.1 zgrep.1

SRCS=	file.c grep.c queue.c util.c

SCRIPTS=	zgrep.sh
LINKS=		${BINDIR}/zgrep ${BINDIR}/zfgrep \
		${BINDIR}/zgrep ${BINDIR}/zegrep \
		${BINDIR}/zgrep ${BINDIR}/bzgrep \
		${BINDIR}/zgrep ${BINDIR}/bzegrep \
		${BINDIR}/zgrep ${BINDIR}/bzfgrep \
		${BINDIR}/zgrep ${BINDIR}/lzgrep \
		${BINDIR}/zgrep ${BINDIR}/lzegrep \
		${BINDIR}/zgrep ${BINDIR}/lzfgrep \
		${BINDIR}/zgrep ${BINDIR}/xzgrep \
		${BINDIR}/zgrep ${BINDIR}/xzegrep \
		${BINDIR}/zgrep ${BINDIR}/xzfgrep \
		${BINDIR}/zgrep ${BINDIR}/zstdgrep \
		${BINDIR}/zgrep ${BINDIR}/zstdegrep \
		${BINDIR}/zgrep ${BINDIR}/zstdfgrep

LINKS+=		${BINDIR}/grep ${BINDIR}/egrep \
		${BINDIR}/grep ${BINDIR}/fgrep \
		${BINDIR}/grep ${BINDIR}/rgrep \

MLINKS=		zgrep.1 zfgrep.1 \
		zgrep.1 zegrep.1 \
		zgrep.1 bzgrep.1 \
		zgrep.1 bzegrep.1 \
		zgrep.1 bzfgrep.1 \
		zgrep.1 lzgrep.1 \
		zgrep.1 lzegrep.1 \
		zgrep.1 lzfgrep.1 \
		zgrep.1 xzgrep.1 \
		zgrep.1 xzegrep.1 \
		zgrep.1 xzfgrep.1 \
		zgrep.1 zstdgrep.1 \
		zgrep.1 zstdegrep.1 \
		zgrep.1 zstdfgrep.1

MLINKS+=	grep.1 egrep.1 \
		grep.1 fgrep.1 \
		grep.1 rgrep.1

CFLAGS.gcc+= --param max-inline-insns-single=500

.if !defined(BOOTSTRAPPING)
LIBADD+=	regex
.endif

HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests

.include <bsd.prog.mk>