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

28 lines
643 B
Makefile
Raw Normal View History

1999-08-27 23:37:10 +00:00
# $FreeBSD$
1997-10-29 16:50:42 +00:00
DIFFSRC=${SRCTOP}/contrib/diff/src
.PATH: ${DIFFSRC} \
${SRCTOP}/contrib/diff/lib \
${SRCTOP}/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${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
CFLAGS+=-DDEFAULT_DIFF_PROGRAM=\"/usr/bin/diff\"
.for f in diff3.c
${f}: ${DIFFSRC}/${f} ${.CURDIR}/${f}.diff
patch -s -o ${.TARGET} < ${.CURDIR}/${f}.diff ${DIFFSRC}/${f}
CLEANFILES+= ${f}
.endfor
1993-06-29 08:19:28 +00:00
.include <bsd.prog.mk>