Home | History | Annotate | Line # | Download | only in grep
      1 #	$NetBSD: Makefile,v 1.10 2018/08/12 09:03:21 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 .if empty(HOST_CPPFLAGS:M*-DWITHOUT_GZIP*)
     21 LDADD+=	-lz
     22 DPADD+=	${LIBZ}
     23 .endif
     24 
     25 .if empty(HOST_CPPFLAGS:M*-DWITHOUT_BZ2*)
     26 LDADD+=	-lbz2
     27 DPADD+=	${LIBBZ2}
     28 .endif
     29 
     30 .if empty(HOST_CPPFLAGS:M*-DWITHOUT_NLS*)
     31 .PATH: ${.CURDIR}/nls
     32 
     33 NLS=	C.msg \
     34 	es_ES.ISO8859-1.msg \
     35 	gl_ES.ISO8859-1.msg \
     36 	hu_HU.ISO8859-2.msg \
     37 	ja_JP.eucJP.msg \
     38 	ja_JP.SJIS.msg \
     39 	ja_JP.UTF-8.msg \
     40 	pt_BR.ISO8859-1.msg \
     41 	ru_RU.KOI8-R.msg \
     42 	uk_UA.UTF-8.msg \
     43 	zh_CN.UTF-8.msg
     44 .endif
     45 
     46 COPTS.grep.c += -Wno-format-nonliteral
     47 COPTS.util.c += -Wno-format-nonliteral
     48 
     49 .include <bsd.prog.mk>
     50