]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - gnu/usr.bin/grep/Makefile
Added myself as maintainer.
[FreeBSD/FreeBSD.git] / gnu / usr.bin / grep / Makefile
1 #       $Id: Makefile,v 1.14 1998/11/14 23:37:32 wosch Exp $
2
3 MAINTAINER= wosch
4
5 GREP_LIBZ= YES
6 GREP_FTS=  YES
7
8 PROG=   grep
9 SRCS=   dfa.c grep.c getopt.c kwset.c obstack.c search.c
10 CFLAGS+=-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
14 LINKS+= ${BINDIR}/grep ${BINDIR}/egrep \
15         ${BINDIR}/grep ${BINDIR}/fgrep
16 MLINKS= grep.1 egrep.1 grep.1 fgrep.1
17
18 DPADD+= ${LIBGNUREGEX}
19 LDADD+= -lgnuregex
20
21 .if defined(GREP_LIBZ) && !empty(GREP_LIBZ)
22 LDADD+= -lz
23 DPADD+= ${LIBZ}
24 CFLAGS+= -DHAVE_LIBZ=1
25 LINKS+= ${BINDIR}/grep ${BINDIR}/zgrep \
26         ${BINDIR}/grep ${BINDIR}/zegrep \
27         ${BINDIR}/grep ${BINDIR}/zfgrep 
28 MLINKS+= grep.1 zgrep.1 grep.1 zegrep.1 grep.1 zfgrep.1
29 .endif
30 .if defined(GREP_FTS) && !empty(GREP_FTS)
31 CFLAGS+= -DHAVE_FTS=1
32 .endif
33
34 check:  all
35         sh ${.CURDIR}/tests/check.sh ${.CURDIR}/tests
36
37 .include <bsd.prog.mk>