opnsense-src/gnu/usr.bin/diff3/Makefile
Ed Maste 77bec6e492 diff3: Move to own package
diff3 is the last remaining GPL-licensed userland component.  Move it
to its own package, so that it may be excluded if desired.

Reviewed by:	ivy
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52810

(cherry picked from commit e7258c42520c18c034f644b97377d8d2a0ad8b7c)
2025-10-03 09:52:43 -07:00

22 lines
505 B
Makefile

PACKAGE= diff3
DIFFSRC=${SRCTOP}/contrib/diff/src
.PATH: ${DIFFSRC} \
${SRCTOP}/contrib/diff/lib \
${SRCTOP}/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${SRCTOP}/contrib/diff/
CFLAGS+=-I${SRCTOP}/contrib/diff/src
CFLAGS+=-I${SRCTOP}/contrib/diff/lib
CFLAGS+=-DHAVE_CONFIG_H
CFLAGS+=-DDEFAULT_DIFF_PROGRAM=\"/usr/bin/diff\"
WARNS?= 0
.include <bsd.prog.mk>