Makefile revision 31900
131900Swosch# $Id$ 231900Swosch 331900SwoschGREP_LIBZ= YES 431900SwoschGREP_FTS= YES 531900Swosch 661SnatePROG= grep 75498SacheSRCS= dfa.c grep.c getopt.c kwset.c obstack.c search.c 894SnateCFLAGS+=-DGREP -DHAVE_STRING_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_UNISTD_H=1 \ 994Snate -DHAVE_GETPAGESIZE=1 -DHAVE_MEMCHR=1 -DHAVE_STRERROR=1 \ 1031900Swosch -DHAVE_VALLOC=1 1194Snate 12130SrgrimesLINKS+= ${BINDIR}/grep ${BINDIR}/egrep \ 13130Srgrimes ${BINDIR}/grep ${BINDIR}/fgrep 14107SconklinMLINKS= grep.1 egrep.1 grep.1 fgrep.1 1594Snate 165498SacheDPADD+= ${LIBGNUREGEX} 175498SacheLDADD+= -lgnuregex 185498Sache 1931900Swosch.if defined(GREP_LIBZ) && !empty(GREP_LIBZ) 2031900SwoschLDADD+= -lz 2131900SwoschDPADD+= ${LIBZ} 2231900SwoschCFLAGS+= -DHAVE_LIBZ=1 2331900Swosch.endif 2431900Swosch.if defined(GREP_FTS) && !empty(GREP_FTS) 2531900SwoschCFLAGS+= -DHAVE_FTS=1 2631900Swosch.endif 2731900Swosch 28107Sconklincheck: all 29107Sconklin sh ${.CURDIR}/tests/check.sh ${.CURDIR}/tests 3094Snate 3161Snate.include <bsd.prog.mk> 32