1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1997-10-29 16:36:57 +00:00
|
|
|
|
2014-10-09 02:07:34 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2007-06-15 07:09:34 +00:00
|
|
|
DIFFSRC=${.CURDIR}/../../../contrib/diff/src
|
|
|
|
.PATH: ${DIFFSRC} \
|
|
|
|
${.CURDIR}/../../../contrib/diff/lib \
|
2015-03-02 11:49:01 +00:00
|
|
|
${.CURDIR}/../../../contrib/diff/man \
|
|
|
|
${.CURDIR}/../../../contrib/diff/doc
|
1997-10-29 16:36:57 +00:00
|
|
|
|
1993-06-29 08:13:44 +00:00
|
|
|
PROG= diff
|
2007-06-15 07:09:34 +00:00
|
|
|
SRCS= analyze.c context.c diff.c dir.c ed.c ifdef.c io.c \
|
|
|
|
normal.c side.c util.c \
|
|
|
|
xmalloc.c strtoumax.c cmpbuf.c exitfail.c error.c quotesys.c \
|
|
|
|
strftime.c c-stack.c basename.c exclude.c hard-locale.c \
|
|
|
|
file-type.c posixver.c prepargs.c version-etc.c
|
1997-10-29 16:36:57 +00:00
|
|
|
|
|
|
|
# Important for ctype macros!
|
|
|
|
CFLAGS+=-funsigned-char
|
|
|
|
|
2007-10-12 18:03:00 +00:00
|
|
|
CFLAGS+=-DHAVE_CONFIG_H
|
|
|
|
CFLAGS+=-DPR_PROGRAM=\"/usr/bin/pr\"
|
2007-06-15 07:09:34 +00:00
|
|
|
CFLAGS+=-I${.CURDIR}/../../../contrib/diff
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../../contrib/diff/src
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../../contrib/diff/lib
|
2013-06-06 11:59:38 +00:00
|
|
|
CFLAGS+=-I${DESTDIR}/usr/include/gnu
|
1995-01-11 05:45:48 +00:00
|
|
|
|
2015-03-02 11:49:01 +00:00
|
|
|
MAN= diff.1 diff.7
|
|
|
|
|
2014-11-25 21:18:18 +00:00
|
|
|
LIBADD+= gnuregex
|
1993-06-29 08:13:44 +00:00
|
|
|
|
2014-10-09 02:07:34 +00:00
|
|
|
.if ${MK_TESTS} != "no"
|
|
|
|
SUBDIR+= tests
|
|
|
|
.endif
|
|
|
|
|
1993-06-29 08:13:44 +00:00
|
|
|
.include <bsd.prog.mk>
|