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