Makefile revision 31928
131928Swosch# $Id: Makefile,v 1.10 1997/12/20 18:46:06 wosch Exp $ 231900Swosch 331928SwoschCFLAGS=-g 431900SwoschGREP_LIBZ= YES 531900SwoschGREP_FTS= YES 631900Swosch 761SnatePROG= grep 85498SacheSRCS= dfa.c grep.c getopt.c kwset.c obstack.c search.c 994SnateCFLAGS+=-DGREP -DHAVE_STRING_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_UNISTD_H=1 \ 1094Snate -DHAVE_GETPAGESIZE=1 -DHAVE_MEMCHR=1 -DHAVE_STRERROR=1 \ 1131900Swosch -DHAVE_VALLOC=1 1294Snate 13130SrgrimesLINKS+= ${BINDIR}/grep ${BINDIR}/egrep \ 14130Srgrimes ${BINDIR}/grep ${BINDIR}/fgrep 15107SconklinMLINKS= grep.1 egrep.1 grep.1 fgrep.1 1694Snate 175498SacheDPADD+= ${LIBGNUREGEX} 185498SacheLDADD+= -lgnuregex 195498Sache 2031900Swosch.if defined(GREP_LIBZ) && !empty(GREP_LIBZ) 2131900SwoschLDADD+= -lz 2231900SwoschDPADD+= ${LIBZ} 2331900SwoschCFLAGS+= -DHAVE_LIBZ=1 2431928SwoschLINKS+= ${BINDIR}/grep ${BINDIR}/zgrep \ 2531928Swosch ${BINDIR}/grep ${BINDIR}/zegrep \ 2631928Swosch ${BINDIR}/grep ${BINDIR}/zfgrep 2731900Swosch.endif 2831900Swosch.if defined(GREP_FTS) && !empty(GREP_FTS) 2931900SwoschCFLAGS+= -DHAVE_FTS=1 3031900Swosch.endif 3131900Swosch 32107Sconklincheck: all 33107Sconklin sh ${.CURDIR}/tests/check.sh ${.CURDIR}/tests 3494Snate 3561Snate.include <bsd.prog.mk> 36