freebsd-dev/gnu/usr.bin/diff3/Makefile

28 lines
712 B
Makefile
Raw Normal View History

1999-08-27 23:37:10 +00:00
# $FreeBSD$
1997-10-29 16:50:42 +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
PROG= diff3
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
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
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>