1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1997-10-29 16:50:42 +00:00
|
|
|
|
2007-06-15 07:09:34 +00:00
|
|
|
DIFFSRC=${.CURDIR}/../../../contrib/diff/src
|
|
|
|
.PATH: ${DIFFSRC} \
|
|
|
|
${.CURDIR}/../../../contrib/diff/lib \
|
|
|
|
${.CURDIR}/../../../contrib/diff/man
|
1997-10-29 16:50:42 +00:00
|
|
|
|
1993-07-09 20:36:06 +00:00
|
|
|
PROG= diff3
|
2007-06-15 07:09:34 +00:00
|
|
|
SRCS= diff3.c version-etc.c \
|
|
|
|
xmalloc.c error.c c-stack.c exitfail.c cmpbuf.c
|
1997-10-29 16:50:42 +00:00
|
|
|
|
|
|
|
# Important for ctype macros!
|
|
|
|
CFLAGS+=-funsigned-char
|
|
|
|
|
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
|
1997-10-29 16:50:42 +00:00
|
|
|
CFLAGS+=-DHAVE_CONFIG_H
|
2007-06-15 07:09:34 +00:00
|
|
|
CFLAGS+=-DDEFAULT_DIFF_PROGRAM=\"/usr/bin/diff\"
|
|
|
|
|
|
|
|
.for f in diff3.c
|
|
|
|
${f}: ${DIFFSRC}/${f} ${.CURDIR}/${f}.diff
|
|
|
|
patch -s -b .orig -o ${.TARGET} < ${.CURDIR}/${f}.diff ${DIFFSRC}/${f}
|
|
|
|
CLEANFILES+= ${f}
|
|
|
|
.endfor
|
1993-06-29 08:19:28 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|