11.10Schristos#	$NetBSD: Makefile,v 1.10 2018/08/12 09:03:21 christos Exp $
21.4Sjoerg#	$FreeBSD: head/usr.bin/grep/Makefile 210389 2010-07-22 19:11:57Z gabor $
31.4Sjoerg#	$OpenBSD: Makefile,v 1.6 2003/06/25 15:00:04 millert Exp $
41.1Scjep
51.1ScjepPROG=	grep
61.4SjoergSRCS=	fastgrep.c file.c grep.c queue.c util.c
71.1Scjep
81.4SjoergLINKS=	${BINDIR}/grep ${BINDIR}/egrep	\
91.2Srillig	${BINDIR}/grep ${BINDIR}/fgrep	\
101.2Srillig	${BINDIR}/grep ${BINDIR}/zgrep	\
111.2Srillig	${BINDIR}/grep ${BINDIR}/zegrep	\
121.2Srillig	${BINDIR}/grep ${BINDIR}/zfgrep
131.1Scjep
141.4SjoergMLINKS=	grep.1 egrep.1	\
151.2Srillig	grep.1 fgrep.1	\
161.2Srillig	grep.1 zgrep.1	\
171.2Srillig	grep.1 zegrep.1	\
181.2Srillig	grep.1 zfgrep.1
191.2Srillig
201.10Schristos.if empty(HOST_CPPFLAGS:M*-DWITHOUT_GZIP*)
211.7SchristosLDADD+=	-lz
221.7SchristosDPADD+=	${LIBZ}
231.10Schristos.endif
241.7Schristos
251.8Schristos.if empty(HOST_CPPFLAGS:M*-DWITHOUT_BZ2*)
261.9SchristosLDADD+=	-lbz2
271.9SchristosDPADD+=	${LIBBZ2}
281.7Schristos.endif
291.4Sjoerg
301.6Schristos.if empty(HOST_CPPFLAGS:M*-DWITHOUT_NLS*)
311.4Sjoerg.PATH: ${.CURDIR}/nls
321.4Sjoerg
331.4SjoergNLS=	C.msg \
341.4Sjoerg	es_ES.ISO8859-1.msg \
351.4Sjoerg	gl_ES.ISO8859-1.msg \
361.4Sjoerg	hu_HU.ISO8859-2.msg \
371.4Sjoerg	ja_JP.eucJP.msg \
381.4Sjoerg	ja_JP.SJIS.msg \
391.4Sjoerg	ja_JP.UTF-8.msg \
401.4Sjoerg	pt_BR.ISO8859-1.msg \
411.4Sjoerg	ru_RU.KOI8-R.msg \
421.4Sjoerg	uk_UA.UTF-8.msg \
431.4Sjoerg	zh_CN.UTF-8.msg
441.6Schristos.endif
451.2Srillig
461.5SchristosCOPTS.grep.c += -Wno-format-nonliteral
471.5SchristosCOPTS.util.c += -Wno-format-nonliteral
481.5Schristos
491.1Scjep.include <bsd.prog.mk>
50