xref: /freebsd/usr.bin/grep/Makefile (revision aa339f1d5df9e38f36a34eb522355c4eebcae6c4)
1#	$NetBSD: Makefile,v 1.4 2011/02/16 01:31:33 joerg Exp $
2#	$OpenBSD: Makefile,v 1.6 2003/06/25 15:00:04 millert Exp $
3
4.include <src.opts.mk>
5
6PACKAGE=	runtime
7
8PROG=	grep
9MAN1=	grep.1 zgrep.1
10
11SRCS=	file.c grep.c queue.c util.c
12
13SCRIPTS=	zgrep.sh
14LINKS=		${BINDIR}/zgrep ${BINDIR}/zfgrep \
15		${BINDIR}/zgrep ${BINDIR}/zegrep \
16		${BINDIR}/zgrep ${BINDIR}/bzgrep \
17		${BINDIR}/zgrep ${BINDIR}/bzegrep \
18		${BINDIR}/zgrep ${BINDIR}/bzfgrep \
19		${BINDIR}/zgrep ${BINDIR}/lzgrep \
20		${BINDIR}/zgrep ${BINDIR}/lzegrep \
21		${BINDIR}/zgrep ${BINDIR}/lzfgrep \
22		${BINDIR}/zgrep ${BINDIR}/xzgrep \
23		${BINDIR}/zgrep ${BINDIR}/xzegrep \
24		${BINDIR}/zgrep ${BINDIR}/xzfgrep \
25		${BINDIR}/zgrep ${BINDIR}/zstdgrep \
26		${BINDIR}/zgrep ${BINDIR}/zstdegrep \
27		${BINDIR}/zgrep ${BINDIR}/zstdfgrep
28
29LINKS+=		${BINDIR}/grep ${BINDIR}/egrep \
30		${BINDIR}/grep ${BINDIR}/fgrep \
31		${BINDIR}/grep ${BINDIR}/rgrep \
32
33MLINKS=		zgrep.1 zfgrep.1 \
34		zgrep.1 zegrep.1 \
35		zgrep.1 bzgrep.1 \
36		zgrep.1 bzegrep.1 \
37		zgrep.1 bzfgrep.1 \
38		zgrep.1 lzgrep.1 \
39		zgrep.1 lzegrep.1 \
40		zgrep.1 lzfgrep.1 \
41		zgrep.1 xzgrep.1 \
42		zgrep.1 xzegrep.1 \
43		zgrep.1 xzfgrep.1 \
44		zgrep.1 zstdgrep.1 \
45		zgrep.1 zstdegrep.1 \
46		zgrep.1 zstdfgrep.1
47
48MLINKS+=	grep.1 egrep.1 \
49		grep.1 fgrep.1 \
50		grep.1 rgrep.1
51
52CFLAGS.gcc+= --param max-inline-insns-single=500
53
54.if !defined(BOOTSTRAPPING)
55LIBADD+=	regex
56.endif
57
58HAS_TESTS=
59SUBDIR.${MK_TESTS}+= tests
60
61.include <bsd.prog.mk>
62