Makefile revision 1.9
1# $NetBSD: Makefile,v 1.9 2018/08/12 08:00:32 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 5PROG= grep 6SRCS= fastgrep.c file.c grep.c queue.c util.c 7 8LINKS= ${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 14MLINKS= 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 20LDADD+= -lz 21DPADD+= ${LIBZ} 22 23.if empty(HOST_CPPFLAGS:M*-DWITHOUT_BZ2*) 24LDADD+= -lbz2 25DPADD+= ${LIBBZ2} 26.endif 27 28.if empty(HOST_CPPFLAGS:M*-DWITHOUT_NLS*) 29.PATH: ${.CURDIR}/nls 30 31NLS= 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 44COPTS.grep.c += -Wno-format-nonliteral 45COPTS.util.c += -Wno-format-nonliteral 46 47.include <bsd.prog.mk> 48