1# $FreeBSD$ 2 3DIFFSRC=${SRCTOP}/contrib/diff/src 4.PATH: ${DIFFSRC} \ 5 ${SRCTOP}/contrib/diff/lib \ 6 ${SRCTOP}/contrib/diff/man 7 8PROG= diff3 9SRCS= diff3.c version-etc.c \ 10 xmalloc.c error.c c-stack.c exitfail.c cmpbuf.c 11 12# Important for ctype macros! 13CFLAGS+=-funsigned-char 14 15CFLAGS+=-I${SRCTOP}/contrib/diff/ 16CFLAGS+=-I${SRCTOP}/contrib/diff/src 17CFLAGS+=-I${SRCTOP}/contrib/diff/lib 18CFLAGS+=-DHAVE_CONFIG_H 19CFLAGS+=-DDEFAULT_DIFF_PROGRAM=\"/usr/bin/diff\" 20 21WARNS?= 0 22 23.for f in diff3.c 24${f}: ${DIFFSRC}/${f} ${.CURDIR}/${f}.diff 25 patch -s -o ${.TARGET} < ${.CURDIR}/${f}.diff ${DIFFSRC}/${f} 26CLEANFILES+= ${f} 27.endfor 28 29.include <bsd.prog.mk> 30