1# $FreeBSD: head/gnu/usr.bin/diff3/Makefile 125910 2004-02-17 01:34:53Z ache $
| 1# $FreeBSD: head/gnu/usr.bin/diff3/Makefile 170758 2007-06-15 07:09:34Z delphij $
|
2
| 2
|
3.PATH: ${.CURDIR}/../../../contrib/diff
| 3DIFFSRC=${.CURDIR}/../../../contrib/diff/src 4.PATH: ${DIFFSRC} \ 5 ${.CURDIR}/../../../contrib/diff/lib \ 6 ${.CURDIR}/../../../contrib/diff/man
|
4 5PROG= diff3
| 7 8PROG= diff3
|
6SRCS= diff3.c version.c
| 9SRCS= diff3.c version-etc.c \ 10 xmalloc.c error.c c-stack.c exitfail.c cmpbuf.c
|
7 8# Important for ctype macros! 9CFLAGS+=-funsigned-char 10
| 11 12# Important for ctype macros! 13CFLAGS+=-funsigned-char 14
|
11CFLAGS+=-I${.CURDIR}/../../../contrib/diff
| 15CFLAGS+=-I${.CURDIR}/../../../contrib/diff/ 16CFLAGS+=-I${.CURDIR}/../../../contrib/diff/src 17CFLAGS+=-I${.CURDIR}/../../../contrib/diff/lib
|
12CFLAGS+=-DHAVE_CONFIG_H
| 18CFLAGS+=-DHAVE_CONFIG_H
|
13CFLAGS+=-DDIFF_PROGRAM=\"/usr/bin/diff\"
| 19CFLAGS+=-DDEFAULT_DIFF_PROGRAM=\"/usr/bin/diff\"
|
14
| 20
|
| 21.for f in diff3.c 22${f}: ${DIFFSRC}/${f} ${.CURDIR}/${f}.diff 23 patch -s -b .orig -o ${.TARGET} < ${.CURDIR}/${f}.diff ${DIFFSRC}/${f} 24CLEANFILES+= ${f} 25.endfor 26
|
15.include <bsd.prog.mk>
| 27.include <bsd.prog.mk>
|