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