mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
Taken from: https://github.com/freebsd/freebsd.git Commit id: d44ce30d3054a38723f89a161c5e003e64d1aaae
27 lines
703 B
Makefile
27 lines
703 B
Makefile
# $FreeBSD$
|
|
|
|
DIFFSRC=${.CURDIR}/../../../contrib/diff/src
|
|
.PATH: ${DIFFSRC} \
|
|
${.CURDIR}/../../../contrib/diff/lib \
|
|
${.CURDIR}/../../../contrib/diff/man
|
|
|
|
PROG= diff3
|
|
SRCS= diff3.c version-etc.c \
|
|
xmalloc.c error.c c-stack.c exitfail.c cmpbuf.c
|
|
|
|
# Important for ctype macros!
|
|
CFLAGS+=-funsigned-char
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../../contrib/diff/
|
|
CFLAGS+=-I${.CURDIR}/../../../contrib/diff/src
|
|
CFLAGS+=-I${.CURDIR}/../../../contrib/diff/lib
|
|
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
|
|
|
|
.include <bsd.prog.mk>
|