Home | History | Annotate | Line # | Download | only in grep
Makefile revision 1.6
      1 #	$NetBSD: Makefile,v 1.6 2018/08/11 19:43:54 christos Exp $
      2 #	$FreeBSD: head/usr.bin/grep/Makefile 210389 2010-07-22 19:11:57Z gabor $
      3 #	$OpenBSD: Makefile,v 1.6 2003/06/25 15:00:04 millert Exp $
      4 
      5 PROG=	grep
      6 SRCS=	fastgrep.c file.c grep.c queue.c util.c
      7 
      8 LINKS=	${BINDIR}/grep ${BINDIR}/egrep	\
      9 	${BINDIR}/grep ${BINDIR}/fgrep	\
     10 	${BINDIR}/grep ${BINDIR}/zgrep	\
     11 	${BINDIR}/grep ${BINDIR}/zegrep	\
     12 	${BINDIR}/grep ${BINDIR}/zfgrep
     13 
     14 MLINKS=	grep.1 egrep.1	\
     15 	grep.1 fgrep.1	\
     16 	grep.1 zgrep.1	\
     17 	grep.1 zegrep.1	\
     18 	grep.1 zfgrep.1
     19 
     20 LDADD=	-lz -lbz2
     21 DPADD=	${LIBZ} ${LIBBZ2}
     22 
     23 .if empty(HOST_CPPFLAGS:M*-DWITHOUT_NLS*)
     24 .PATH: ${.CURDIR}/nls
     25 
     26 NLS=	C.msg \
     27 	es_ES.ISO8859-1.msg \
     28 	gl_ES.ISO8859-1.msg \
     29 	hu_HU.ISO8859-2.msg \
     30 	ja_JP.eucJP.msg \
     31 	ja_JP.SJIS.msg \
     32 	ja_JP.UTF-8.msg \
     33 	pt_BR.ISO8859-1.msg \
     34 	ru_RU.KOI8-R.msg \
     35 	uk_UA.UTF-8.msg \
     36 	zh_CN.UTF-8.msg
     37 .endif
     38 
     39 COPTS.grep.c += -Wno-format-nonliteral
     40 COPTS.util.c += -Wno-format-nonliteral
     41 
     42 .include <bsd.prog.mk>
     43