Add a build option to support WITH_CDDL and WITHOUT_CDDL, defaulting

to WITH_CDDL.

This option enables building code that is licensed under Sun's CDDL.
The DTrace code is licensed that way, so by default it will get built
unless the WITHOUT_CDDL option is used.

There is another build toggle, NO_CTF, which turns off execution of
ctfconvert and ctfmerge in sys.mk, but this can't be implemented as
WITH_/WITHOUT because bsd.own.mk isn't included in all Makefiles and
sys.mk is included automatically by make.
This commit is contained in:
John Birrell 2006-11-01 09:02:11 +00:00
parent 0415f45d48
commit 87d0f81ce7
2 changed files with 3 additions and 0 deletions

View file

@ -295,6 +295,7 @@ WITH_IDEA=
BLUETOOTH \
BOOT \
CALENDAR \
CDDL \
CPP \
CRYPT \
CVS \

View file

@ -0,0 +1,2 @@
.\" $FreeBSD$
Set to not build code licensed under Sun's CDDL.