Makefile revision 31900
160786Sps# $Id$ 260786Sps 360786SpsGREP_LIBZ= YES 460786SpsGREP_FTS= YES 560786Sps 660786SpsPROG= grep 789019SpsSRCS= dfa.c grep.c getopt.c kwset.c obstack.c search.c 860786SpsCFLAGS+=-DGREP -DHAVE_STRING_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_UNISTD_H=1 \ 960786Sps -DHAVE_GETPAGESIZE=1 -DHAVE_MEMCHR=1 -DHAVE_STRERROR=1 \ 10237613Sdelphij -DHAVE_VALLOC=1 1160786Sps 1260786SpsLINKS+= ${BINDIR}/grep ${BINDIR}/egrep \ 1360786Sps ${BINDIR}/grep ${BINDIR}/fgrep 14250592SdelphijMLINKS= grep.1 egrep.1 grep.1 fgrep.1 15242584Sdelphij 16250592SdelphijDPADD+= ${LIBGNUREGEX} 17250592SdelphijLDADD+= -lgnuregex 18242584Sdelphij 19242584Sdelphij.if defined(GREP_LIBZ) && !empty(GREP_LIBZ) 20242584SdelphijLDADD+= -lz 21242584SdelphijDPADD+= ${LIBZ} 22242584SdelphijCFLAGS+= -DHAVE_LIBZ=1 23242584Sdelphij.endif 24242584Sdelphij.if defined(GREP_FTS) && !empty(GREP_FTS) 25242584SdelphijCFLAGS+= -DHAVE_FTS=1 26242584Sdelphij.endif 27242584Sdelphij 28242584Sdelphijcheck: all 29250592Sdelphij sh ${.CURDIR}/tests/check.sh ${.CURDIR}/tests 30250592Sdelphij 31242584Sdelphij.include <bsd.prog.mk> 32242584Sdelphij