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