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 7PROG= grep 8MAN1= grep.1 zgrep.1 9 10SRCS= file.c grep.c queue.c util.c 11 12SCRIPTS= zgrep.sh 13LINKS= ${BINDIR}/zgrep ${BINDIR}/zfgrep \ 14 ${BINDIR}/zgrep ${BINDIR}/zegrep \ 15 ${BINDIR}/zgrep ${BINDIR}/bzgrep \ 16 ${BINDIR}/zgrep ${BINDIR}/bzegrep \ 17 ${BINDIR}/zgrep ${BINDIR}/bzfgrep \ 18 ${BINDIR}/zgrep ${BINDIR}/lzgrep \ 19 ${BINDIR}/zgrep ${BINDIR}/lzegrep \ 20 ${BINDIR}/zgrep ${BINDIR}/lzfgrep \ 21 ${BINDIR}/zgrep ${BINDIR}/xzgrep \ 22 ${BINDIR}/zgrep ${BINDIR}/xzegrep \ 23 ${BINDIR}/zgrep ${BINDIR}/xzfgrep \ 24 ${BINDIR}/zgrep ${BINDIR}/zstdgrep \ 25 ${BINDIR}/zgrep ${BINDIR}/zstdegrep \ 26 ${BINDIR}/zgrep ${BINDIR}/zstdfgrep 27 28LINKS+= ${BINDIR}/grep ${BINDIR}/egrep \ 29 ${BINDIR}/grep ${BINDIR}/fgrep \ 30 ${BINDIR}/grep ${BINDIR}/rgrep \ 31 32MLINKS= zgrep.1 zfgrep.1 \ 33 zgrep.1 zegrep.1 \ 34 zgrep.1 bzgrep.1 \ 35 zgrep.1 bzegrep.1 \ 36 zgrep.1 bzfgrep.1 \ 37 zgrep.1 lzgrep.1 \ 38 zgrep.1 lzegrep.1 \ 39 zgrep.1 lzfgrep.1 \ 40 zgrep.1 xzgrep.1 \ 41 zgrep.1 xzegrep.1 \ 42 zgrep.1 xzfgrep.1 \ 43 zgrep.1 zstdgrep.1 \ 44 zgrep.1 zstdegrep.1 \ 45 zgrep.1 zstdfgrep.1 46 47MLINKS+= grep.1 egrep.1 \ 48 grep.1 fgrep.1 \ 49 grep.1 rgrep.1 50 51CFLAGS.gcc+= --param max-inline-insns-single=500 52 53.if !defined(BOOTSTRAPPING) 54LIBADD+= regex 55.endif 56 57HAS_TESTS= 58SUBDIR.${MK_TESTS}+= tests 59 60.include <bsd.prog.mk> 61