1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1997-10-29 16:50:42 +00:00
|
|
|
|
2017-03-12 18:59:16 +00:00
|
|
|
DIFFSRC=${SRCTOP}/contrib/diff/src
|
2007-06-15 07:09:34 +00:00
|
|
|
.PATH: ${DIFFSRC} \
|
2017-03-12 18:59:16 +00:00
|
|
|
${SRCTOP}/contrib/diff/lib \
|
|
|
|
${SRCTOP}/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
|
|
|
|
|
2017-03-12 18:59:16 +00:00
|
|
|
CFLAGS+=-I${SRCTOP}/contrib/diff/
|
|
|
|
CFLAGS+=-I${SRCTOP}/contrib/diff/src
|
|
|
|
CFLAGS+=-I${SRCTOP}/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
|
2010-02-22 22:32:24 +00:00
|
|
|
patch -s -o ${.TARGET} < ${.CURDIR}/${f}.diff ${DIFFSRC}/${f}
|
2007-06-15 07:09:34 +00:00
|
|
|
CLEANFILES+= ${f}
|
|
|
|
.endfor
|
1993-06-29 08:19:28 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|