Makefile revision 31900
1# $Id$ 2 3GREP_LIBZ= YES 4GREP_FTS= YES 5 6PROG= grep 7SRCS= dfa.c grep.c getopt.c kwset.c obstack.c search.c 8CFLAGS+=-DGREP -DHAVE_STRING_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_UNISTD_H=1 \ 9 -DHAVE_GETPAGESIZE=1 -DHAVE_MEMCHR=1 -DHAVE_STRERROR=1 \ 10 -DHAVE_VALLOC=1 11 12LINKS+= ${BINDIR}/grep ${BINDIR}/egrep \ 13 ${BINDIR}/grep ${BINDIR}/fgrep 14MLINKS= grep.1 egrep.1 grep.1 fgrep.1 15 16DPADD+= ${LIBGNUREGEX} 17LDADD+= -lgnuregex 18 19.if defined(GREP_LIBZ) && !empty(GREP_LIBZ) 20LDADD+= -lz 21DPADD+= ${LIBZ} 22CFLAGS+= -DHAVE_LIBZ=1 23.endif 24.if defined(GREP_FTS) && !empty(GREP_FTS) 25CFLAGS+= -DHAVE_FTS=1 26.endif 27 28check: all 29 sh ${.CURDIR}/tests/check.sh ${.CURDIR}/tests 30 31.include <bsd.prog.mk> 32