freebsd-dev/gnu/usr.bin/Makefile
Ed Maste 94ff3d0344 Add knobs to make GNU diff and GNU grep optional
This is added to facilitate experiments building FreeBSD without
copyleft software.

If WITHOUT_GNU_DIFF is set no /usr/bin/diff or /usr/bin/diff3 will
be built.

If WITHOUT_GNU_GREP is set then BSD grep will be installed as
/usr/bin/bsdgrep or /usr/bin/grep, depending on the WITH_BSD_GREP
knob.

Reviewed by:	brooks (earlier)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	Differential Revision: https://reviews.freebsd.org/D8288
2016-10-20 14:48:57 +00:00

28 lines
539 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
SUBDIR_DEPEND_gdb= ${_binutils}
.if ${MK_CXX} != "no"
SUBDIR.${MK_GCC}+= gperf
SUBDIR.${MK_GROFF}+= groff
.endif
SUBDIR.${MK_BINUTILS}+= binutils
SUBDIR.${MK_DIALOG}+= dialog
.if ${MK_BINUTILS} != "no"
SUBDIR.${MK_GDB}+= gdb
.endif
SUBDIR.${MK_GCC}+= cc
SUBDIR.${MK_GNU_DIFF}+= diff diff3
SUBDIR.${MK_GNU_GREP}+= grep
SUBDIR.${MK_GPL_DTC}+= dtc
SUBDIR.${MK_TESTS}+= tests
SUBDIR_PARALLEL=
.include <bsd.subdir.mk>