1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
|
|
|
# The include file <bsd.own.mk> set common variables for owner,
|
|
|
|
# group, mode, and directories. Defaults are in brackets.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# +++ variables +++
|
|
|
|
#
|
|
|
|
# DESTDIR Change the tree where the file gets installed. [not set]
|
|
|
|
#
|
|
|
|
# DISTDIR Change the tree where the file for a distribution
|
|
|
|
# gets installed (see /usr/src/release/Makefile). [not set]
|
|
|
|
#
|
2005-01-06 11:12:43 +00:00
|
|
|
# COMPRESS_CMD Program to compress documents.
|
1998-03-19 13:32:43 +00:00
|
|
|
# Output is to stdout. [gzip -cn]
|
1997-03-08 23:46:56 +00:00
|
|
|
#
|
|
|
|
# COMPRESS_EXT File name extension of ${COMPRESS_CMD} command. [.gz]
|
|
|
|
#
|
1998-09-14 08:34:45 +00:00
|
|
|
# BINOWN Binary owner. [root]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
1998-09-14 08:34:45 +00:00
|
|
|
# BINGRP Binary group. [wheel]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
|
|
|
# BINMODE Binary mode. [555]
|
|
|
|
#
|
|
|
|
# NOBINMODE Mode for non-executable files. [444]
|
|
|
|
#
|
|
|
|
# LIBDIR Base path for libraries. [/usr/lib]
|
|
|
|
#
|
1998-01-03 19:07:30 +00:00
|
|
|
# LIBCOMPATDIR Base path for compat libraries. [/usr/lib/compat]
|
|
|
|
#
|
2013-09-08 09:40:23 +00:00
|
|
|
# LIBPRIVATEDIR Base path for private libraries. [/usr/lib/private]
|
|
|
|
#
|
1998-01-03 19:07:30 +00:00
|
|
|
# LIBDATADIR Base path for misc. utility data files. [/usr/libdata]
|
|
|
|
#
|
2011-02-10 19:13:54 +00:00
|
|
|
# LIBEXECDIR Base path for system daemons and utilities. [/usr/libexec]
|
|
|
|
#
|
1996-05-25 23:09:49 +00:00
|
|
|
# LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint]
|
|
|
|
#
|
|
|
|
# SHLIBDIR Base path for shared libraries. [${LIBDIR}]
|
|
|
|
#
|
2003-08-18 00:33:35 +00:00
|
|
|
# LIBOWN Library owner. [${BINOWN}]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
|
|
|
# LIBGRP Library group. [${BINGRP}]
|
|
|
|
#
|
|
|
|
# LIBMODE Library mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
2013-06-07 21:40:02 +00:00
|
|
|
# DEBUGDIR Base path for standalone debug files. [/usr/lib/debug]
|
|
|
|
#
|
|
|
|
# DEBUGMODE Mode for debug files. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
1996-05-25 23:09:49 +00:00
|
|
|
# KMODDIR Base path for loadable kernel modules
|
2000-09-05 22:37:46 +00:00
|
|
|
# (see kld(4)). [/boot/kernel]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
2009-01-08 12:22:37 +00:00
|
|
|
# KMODOWN Kernel and KLD owner. [${BINOWN}]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
2009-01-08 12:22:37 +00:00
|
|
|
# KMODGRP Kernel and KLD group. [${BINGRP}]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
1999-11-09 00:08:58 +00:00
|
|
|
# KMODMODE KLD mode. [${BINMODE}]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# SHAREDIR Base path for architecture-independent ascii
|
|
|
|
# text files. [/usr/share]
|
|
|
|
#
|
1998-09-14 08:34:45 +00:00
|
|
|
# SHAREOWN ASCII text file owner. [root]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
1998-09-14 08:34:45 +00:00
|
|
|
# SHAREGRP ASCII text file group. [wheel]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
|
|
|
# SHAREMODE ASCII text file mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
2011-06-27 13:23:51 +00:00
|
|
|
# CONFDIR Base path for configuration files. [/etc]
|
|
|
|
#
|
|
|
|
# CONFOWN Configuration file owner. [root]
|
|
|
|
#
|
|
|
|
# CONFGRP Configuration file group. [wheel]
|
|
|
|
#
|
|
|
|
# CONFMODE Configuration file mode. [644]
|
|
|
|
#
|
|
|
|
#
|
1996-05-25 23:09:49 +00:00
|
|
|
# DOCDIR Base path for system documentation (e.g. PSD, USD,
|
|
|
|
# handbook, FAQ etc.). [${SHAREDIR}/doc]
|
|
|
|
#
|
|
|
|
# DOCOWN Documentation owner. [${SHAREOWN}]
|
|
|
|
#
|
|
|
|
# DOCGRP Documentation group. [${SHAREGRP}]
|
|
|
|
#
|
|
|
|
# DOCMODE Documentation mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# INFODIR Base path for GNU's hypertext system
|
|
|
|
# called Info (see info(1)). [${SHAREDIR}/info]
|
|
|
|
#
|
|
|
|
# INFOOWN Info owner. [${SHAREOWN}]
|
|
|
|
#
|
|
|
|
# INFOGRP Info group. [${SHAREGRP}]
|
|
|
|
#
|
|
|
|
# INFOMODE Info mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# MANDIR Base path for manual installation. [${SHAREDIR}/man/man]
|
|
|
|
#
|
|
|
|
# MANOWN Manual owner. [${SHAREOWN}]
|
|
|
|
#
|
|
|
|
# MANGRP Manual group. [${SHAREGRP}]
|
|
|
|
#
|
|
|
|
# MANMODE Manual mode. [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# NLSDIR Base path for National Language Support files
|
2002-02-13 18:18:13 +00:00
|
|
|
# installation. [${SHAREDIR}/nls]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
2002-02-13 18:16:34 +00:00
|
|
|
# NLSOWN National Language Support files owner. [${SHAREOWN}]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
2002-02-13 18:16:34 +00:00
|
|
|
# NLSGRP National Language Support files group. [${SHAREGRP}]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
2000-06-09 19:15:51 +00:00
|
|
|
# NLSMODE National Language Support files mode. [${NOBINMODE}]
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
1998-01-03 19:07:30 +00:00
|
|
|
# INCLUDEDIR Base path for standard C include files [/usr/include]
|
1996-05-25 23:09:49 +00:00
|
|
|
|
2002-04-18 06:37:48 +00:00
|
|
|
.if !target(__<bsd.own.mk>__)
|
|
|
|
__<bsd.own.mk>__:
|
|
|
|
|
2006-11-19 16:28:52 +00:00
|
|
|
.if !defined(_WITHOUT_SRCCONF)
|
2006-03-17 18:54:44 +00:00
|
|
|
SRCCONF?= /etc/src.conf
|
2013-03-26 20:11:09 +00:00
|
|
|
.if exists(${SRCCONF}) || ${SRCCONF} != "/etc/src.conf"
|
2006-03-18 10:54:09 +00:00
|
|
|
.include "${SRCCONF}"
|
|
|
|
.endif
|
2006-11-19 16:28:52 +00:00
|
|
|
.endif
|
2006-03-17 18:54:44 +00:00
|
|
|
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
# Binaries
|
1998-09-14 08:34:45 +00:00
|
|
|
BINOWN?= root
|
|
|
|
BINGRP?= wheel
|
add DOCDIR, DOCOWN, DOCGRP, DOCMODE for documents
add LIBDIR, LINTLIBDIR, SHLIBDIR, LIBOWN, LIBGRP, LIBMODE for libs
add KMODOWN, KMODGRP, KMODMODE
new variable KMODDIR similar to BINDIR
1996-03-12 00:07:28 +00:00
|
|
|
BINMODE?= 555
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
NOBINMODE?= 444
|
1996-03-24 00:31:56 +00:00
|
|
|
|
2003-03-03 22:54:35 +00:00
|
|
|
.if defined(MODULES_WITH_WORLD)
|
|
|
|
KMODDIR?= /boot/modules
|
|
|
|
.else
|
2000-09-05 22:37:46 +00:00
|
|
|
KMODDIR?= /boot/kernel
|
2003-03-03 22:54:35 +00:00
|
|
|
.endif
|
1999-06-24 22:50:24 +00:00
|
|
|
KMODOWN?= ${BINOWN}
|
|
|
|
KMODGRP?= ${BINGRP}
|
|
|
|
KMODMODE?= ${BINMODE}
|
|
|
|
|
add DOCDIR, DOCOWN, DOCGRP, DOCMODE for documents
add LIBDIR, LINTLIBDIR, SHLIBDIR, LIBOWN, LIBGRP, LIBMODE for libs
add KMODOWN, KMODGRP, KMODMODE
new variable KMODDIR similar to BINDIR
1996-03-12 00:07:28 +00:00
|
|
|
LIBDIR?= /usr/lib
|
1998-01-04 00:00:21 +00:00
|
|
|
LIBCOMPATDIR?= /usr/lib/compat
|
2013-09-08 09:40:23 +00:00
|
|
|
LIBPRIVATEDIR?= /usr/lib/private
|
1998-01-04 00:00:21 +00:00
|
|
|
LIBDATADIR?= /usr/libdata
|
2011-02-10 19:13:54 +00:00
|
|
|
LIBEXECDIR?= /usr/libexec
|
add DOCDIR, DOCOWN, DOCGRP, DOCMODE for documents
add LIBDIR, LINTLIBDIR, SHLIBDIR, LIBOWN, LIBGRP, LIBMODE for libs
add KMODOWN, KMODGRP, KMODMODE
new variable KMODDIR similar to BINDIR
1996-03-12 00:07:28 +00:00
|
|
|
LINTLIBDIR?= /usr/libdata/lint
|
|
|
|
SHLIBDIR?= ${LIBDIR}
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
LIBOWN?= ${BINOWN}
|
|
|
|
LIBGRP?= ${BINGRP}
|
|
|
|
LIBMODE?= ${NOBINMODE}
|
add DOCDIR, DOCOWN, DOCGRP, DOCMODE for documents
add LIBDIR, LINTLIBDIR, SHLIBDIR, LIBOWN, LIBGRP, LIBMODE for libs
add KMODOWN, KMODGRP, KMODMODE
new variable KMODDIR similar to BINDIR
1996-03-12 00:07:28 +00:00
|
|
|
|
2013-06-07 21:40:02 +00:00
|
|
|
DEBUGDIR?= /usr/lib/debug
|
|
|
|
DEBUGMODE?= ${NOBINMODE}
|
|
|
|
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
|
|
|
|
# Share files
|
|
|
|
SHAREDIR?= /usr/share
|
1998-09-14 08:34:45 +00:00
|
|
|
SHAREOWN?= root
|
|
|
|
SHAREGRP?= wheel
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
SHAREMODE?= ${NOBINMODE}
|
|
|
|
|
2011-06-27 13:23:51 +00:00
|
|
|
CONFDIR?= /etc
|
|
|
|
CONFOWN?= root
|
|
|
|
CONFGRP?= wheel
|
|
|
|
CONFMODE?= 644
|
|
|
|
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
MANDIR?= ${SHAREDIR}/man/man
|
|
|
|
MANOWN?= ${SHAREOWN}
|
|
|
|
MANGRP?= ${SHAREGRP}
|
|
|
|
MANMODE?= ${NOBINMODE}
|
|
|
|
|
|
|
|
DOCDIR?= ${SHAREDIR}/doc
|
|
|
|
DOCOWN?= ${SHAREOWN}
|
|
|
|
DOCGRP?= ${SHAREGRP}
|
|
|
|
DOCMODE?= ${NOBINMODE}
|
|
|
|
|
|
|
|
INFODIR?= ${SHAREDIR}/info
|
|
|
|
INFOOWN?= ${SHAREOWN}
|
|
|
|
INFOGRP?= ${SHAREGRP}
|
|
|
|
INFOMODE?= ${NOBINMODE}
|
|
|
|
|
|
|
|
NLSDIR?= ${SHAREDIR}/nls
|
2002-02-13 18:16:34 +00:00
|
|
|
NLSOWN?= ${SHAREOWN}
|
|
|
|
NLSGRP?= ${SHAREGRP}
|
2000-06-09 19:15:51 +00:00
|
|
|
NLSMODE?= ${NOBINMODE}
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
|
1998-01-03 19:07:30 +00:00
|
|
|
INCLUDEDIR?= /usr/include
|
|
|
|
|
2013-01-21 22:40:39 +00:00
|
|
|
#
|
|
|
|
# install(1) parameters.
|
|
|
|
#
|
|
|
|
HRDLINK?= -l h
|
|
|
|
SYMLINK?= -l s
|
|
|
|
|
|
|
|
INSTALL_LINK?= ${INSTALL} ${HRDLINK}
|
|
|
|
INSTALL_SYMLINK?= ${INSTALL} ${SYMLINK}
|
|
|
|
|
add SHAREDIR?=, SHAREOWN?=, SHAREGRP?=, SHAREMODE?=,
INFOOWN?=, INFOGRP?=, INFOMODE?=
set variables recursive, eg. change KMODOWN?=bin to KMODOWN?=${BINOWN}
from NetBSD:
add NLSDIR?=, NLSGRP?=, NLSOWN?=, NLSMODE?=,
BSDSRCDIR?=, BSDOBJDIR?=, NOBINMODE?=
1996-03-31 23:15:17 +00:00
|
|
|
# Common variables
|
2004-02-05 20:48:44 +00:00
|
|
|
.if !defined(DEBUG_FLAGS)
|
|
|
|
STRIP?= -s
|
|
|
|
.endif
|
|
|
|
|
1998-03-19 13:32:43 +00:00
|
|
|
COMPRESS_CMD?= gzip -cn
|
1997-03-08 23:46:56 +00:00
|
|
|
COMPRESS_EXT?= .gz
|
2002-04-18 06:37:48 +00:00
|
|
|
|
2006-11-19 16:28:52 +00:00
|
|
|
.if !defined(_WITHOUT_SRCCONF)
|
2006-03-17 18:54:44 +00:00
|
|
|
#
|
|
|
|
# Define MK_* variables (which are either "yes" or "no") for users
|
|
|
|
# to set via WITH_*/WITHOUT_* in /etc/src.conf and override in the
|
|
|
|
# make(1) environment.
|
|
|
|
# These should be tested with `== "no"' or `!= "no"' in makefiles.
|
|
|
|
# The NO_* variables should only be set by makefiles.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Supported NO_* options (if defined, MK_* will be forced to "no",
|
|
|
|
# regardless of user's setting).
|
|
|
|
#
|
|
|
|
.for var in \
|
2011-11-30 18:11:49 +00:00
|
|
|
CTF \
|
2013-06-07 21:40:02 +00:00
|
|
|
DEBUG_FILES \
|
2007-10-20 19:01:50 +00:00
|
|
|
INSTALLLIB \
|
2006-03-19 06:14:07 +00:00
|
|
|
MAN \
|
|
|
|
PROFILE
|
2006-03-17 18:54:44 +00:00
|
|
|
.if defined(NO_${var})
|
2014-03-30 22:24:45 +00:00
|
|
|
MK_${var}:=no
|
2006-03-17 18:54:44 +00:00
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
#
|
|
|
|
# Older-style variables that enabled behaviour when set.
|
|
|
|
#
|
|
|
|
.if defined(YES_HESIOD)
|
|
|
|
WITH_HESIOD=
|
|
|
|
.endif
|
|
|
|
|
2011-04-05 08:49:47 +00:00
|
|
|
__DEFAULT_YES_OPTIONS = \
|
2008-09-21 22:02:26 +00:00
|
|
|
ACCT \
|
2006-03-17 18:54:44 +00:00
|
|
|
ACPI \
|
2008-09-21 22:02:26 +00:00
|
|
|
AMD \
|
|
|
|
APM \
|
2013-07-16 19:15:19 +00:00
|
|
|
ARM_EABI \
|
2006-09-11 05:35:57 +00:00
|
|
|
ASSERT_DEBUG \
|
2008-09-21 22:02:26 +00:00
|
|
|
AT \
|
2006-03-17 18:54:44 +00:00
|
|
|
ATM \
|
|
|
|
AUDIT \
|
|
|
|
AUTHPF \
|
2011-05-19 05:13:25 +00:00
|
|
|
BINUTILS \
|
2006-03-17 18:54:44 +00:00
|
|
|
BLUETOOTH \
|
2013-05-16 15:28:38 +00:00
|
|
|
BMAKE \
|
2006-03-17 18:54:44 +00:00
|
|
|
BOOT \
|
2008-06-16 07:23:12 +00:00
|
|
|
BSD_CPIO \
|
2008-09-21 22:02:26 +00:00
|
|
|
BSNMP \
|
2007-01-26 10:19:08 +00:00
|
|
|
BZIP2 \
|
2006-03-17 18:54:44 +00:00
|
|
|
CALENDAR \
|
2012-01-02 21:57:58 +00:00
|
|
|
CAPSICUM \
|
2013-12-02 08:21:28 +00:00
|
|
|
CASPER \
|
2006-11-01 09:02:11 +00:00
|
|
|
CDDL \
|
2006-03-17 18:54:44 +00:00
|
|
|
CPP \
|
2013-05-15 14:30:03 +00:00
|
|
|
CROSS_COMPILER \
|
2006-03-17 18:54:44 +00:00
|
|
|
CRYPT \
|
2008-09-21 22:02:26 +00:00
|
|
|
CTM \
|
2006-03-17 18:54:44 +00:00
|
|
|
CXX \
|
|
|
|
DICT \
|
2014-02-22 13:05:23 +00:00
|
|
|
DMAGENT \
|
2006-03-17 18:54:44 +00:00
|
|
|
DYNAMICROOT \
|
2012-05-19 17:55:49 +00:00
|
|
|
ED_CRYPTO \
|
2006-03-17 18:54:44 +00:00
|
|
|
EXAMPLES \
|
2014-04-01 14:24:08 +00:00
|
|
|
FDT \
|
2008-09-21 22:02:26 +00:00
|
|
|
FLOPPY \
|
2014-01-30 21:37:43 +00:00
|
|
|
FMTREE \
|
2013-05-15 13:04:10 +00:00
|
|
|
FORMAT_EXTENSIONS \
|
2006-03-17 18:54:44 +00:00
|
|
|
FORTH \
|
|
|
|
FP_LIBC \
|
2008-09-21 22:02:26 +00:00
|
|
|
FREEBSD_UPDATE \
|
2006-03-17 18:54:44 +00:00
|
|
|
GAMES \
|
|
|
|
GCOV \
|
|
|
|
GDB \
|
|
|
|
GNU \
|
|
|
|
GPIB \
|
2011-04-05 08:49:47 +00:00
|
|
|
GPIO \
|
2014-02-28 18:29:09 +00:00
|
|
|
GPL_DTC \
|
2006-03-17 18:54:44 +00:00
|
|
|
GROFF \
|
|
|
|
HTML \
|
2013-08-13 07:15:01 +00:00
|
|
|
ICONV \
|
2011-04-30 17:58:28 +00:00
|
|
|
INET \
|
2006-03-17 18:54:44 +00:00
|
|
|
INET6 \
|
|
|
|
INFO \
|
2007-10-20 19:01:50 +00:00
|
|
|
INSTALLLIB \
|
2006-03-17 18:54:44 +00:00
|
|
|
IPFILTER \
|
2008-09-21 22:02:26 +00:00
|
|
|
IPFW \
|
|
|
|
JAIL \
|
2012-09-12 14:58:07 +00:00
|
|
|
KDUMP \
|
2006-03-17 18:54:44 +00:00
|
|
|
KERBEROS \
|
2011-05-22 18:01:52 +00:00
|
|
|
KERNEL_SYMBOLS \
|
2007-06-13 02:08:04 +00:00
|
|
|
KVM \
|
2013-02-15 13:44:18 +00:00
|
|
|
LDNS \
|
2013-09-24 14:33:31 +00:00
|
|
|
LDNS_UTILS \
|
2008-09-21 22:02:26 +00:00
|
|
|
LEGACY_CONSOLE \
|
2013-11-27 19:51:50 +00:00
|
|
|
LIB32 \
|
2006-03-17 18:54:44 +00:00
|
|
|
LIBPTHREAD \
|
|
|
|
LIBTHR \
|
|
|
|
LOCALES \
|
2008-09-21 22:02:26 +00:00
|
|
|
LOCATE \
|
2006-03-17 18:54:44 +00:00
|
|
|
LPR \
|
2012-05-19 18:05:00 +00:00
|
|
|
LS_COLORS \
|
2008-09-21 22:02:26 +00:00
|
|
|
MAIL \
|
2006-03-17 18:54:44 +00:00
|
|
|
MAILWRAPPER \
|
2008-09-21 22:02:26 +00:00
|
|
|
MAKE \
|
2006-03-17 18:54:44 +00:00
|
|
|
MAN \
|
2014-01-30 21:08:36 +00:00
|
|
|
NCURSESW \
|
2008-09-21 22:02:26 +00:00
|
|
|
NDIS \
|
2006-03-17 18:54:44 +00:00
|
|
|
NETCAT \
|
2008-09-21 22:02:26 +00:00
|
|
|
NETGRAPH \
|
2006-03-17 18:54:44 +00:00
|
|
|
NIS \
|
|
|
|
NLS \
|
|
|
|
NLS_CATALOGS \
|
2006-04-28 12:03:38 +00:00
|
|
|
NS_CACHING \
|
2008-09-21 22:02:26 +00:00
|
|
|
NTP \
|
2006-03-17 18:54:44 +00:00
|
|
|
OPENSSH \
|
|
|
|
OPENSSL \
|
|
|
|
PAM \
|
2013-01-18 15:57:09 +00:00
|
|
|
PC_SYSINSTALL \
|
2006-03-17 18:54:44 +00:00
|
|
|
PF \
|
2012-07-02 18:04:31 +00:00
|
|
|
PKGBOOTSTRAP \
|
2008-09-21 22:02:26 +00:00
|
|
|
PMC \
|
|
|
|
PORTSNAP \
|
|
|
|
PPP \
|
2011-12-02 09:09:54 +00:00
|
|
|
PROFILE \
|
2008-09-21 22:02:26 +00:00
|
|
|
QUOTAS \
|
2006-03-17 18:54:44 +00:00
|
|
|
RCMDS \
|
2013-10-09 17:07:20 +00:00
|
|
|
RCS \
|
2006-03-17 18:54:44 +00:00
|
|
|
RESCUE \
|
2008-09-21 22:02:26 +00:00
|
|
|
ROUTED \
|
2006-03-17 18:54:44 +00:00
|
|
|
SENDMAIL \
|
|
|
|
SETUID_LOGIN \
|
|
|
|
SHAREDOCS \
|
2012-12-21 02:18:11 +00:00
|
|
|
SOURCELESS \
|
|
|
|
SOURCELESS_HOST \
|
|
|
|
SOURCELESS_UCODE \
|
2007-05-19 04:42:59 +00:00
|
|
|
SSP \
|
2013-06-18 02:53:45 +00:00
|
|
|
SVNLITE \
|
2007-05-13 14:12:40 +00:00
|
|
|
SYMVER \
|
2006-03-17 18:54:44 +00:00
|
|
|
SYSCONS \
|
2012-12-21 02:18:11 +00:00
|
|
|
SYSINSTALL \
|
2006-03-17 18:54:44 +00:00
|
|
|
TCSH \
|
2008-09-21 22:02:26 +00:00
|
|
|
TELNET \
|
|
|
|
TEXTPROC \
|
2006-03-17 18:54:44 +00:00
|
|
|
TOOLCHAIN \
|
2013-09-15 14:51:23 +00:00
|
|
|
UNBOUND \
|
2006-03-17 18:54:44 +00:00
|
|
|
USB \
|
2011-06-17 21:30:21 +00:00
|
|
|
UTMPX \
|
2008-09-21 22:02:26 +00:00
|
|
|
WIRELESS \
|
2007-04-06 02:13:30 +00:00
|
|
|
WPA_SUPPLICANT_EAPOL \
|
2008-01-24 07:03:21 +00:00
|
|
|
ZFS \
|
|
|
|
ZONEINFO
|
2011-04-05 08:49:47 +00:00
|
|
|
|
|
|
|
__DEFAULT_NO_OPTIONS = \
|
2012-12-21 02:18:11 +00:00
|
|
|
BSD_GREP \
|
2012-02-05 23:56:22 +00:00
|
|
|
CLANG_EXTRAS \
|
2011-11-30 18:11:49 +00:00
|
|
|
CTF \
|
2013-06-07 21:40:02 +00:00
|
|
|
DEBUG_FILES \
|
2011-04-05 08:49:47 +00:00
|
|
|
HESIOD \
|
2012-06-26 23:15:55 +00:00
|
|
|
INSTALL_AS_USER \
|
2013-09-20 01:52:02 +00:00
|
|
|
LLDB \
|
2012-05-17 10:11:18 +00:00
|
|
|
NAND \
|
2012-04-29 09:32:44 +00:00
|
|
|
OFED \
|
2013-01-17 01:51:04 +00:00
|
|
|
OPENSSH_NONE_CIPHER \
|
2013-06-18 02:53:45 +00:00
|
|
|
SHARED_TOOLCHAIN \
|
2013-07-22 14:23:46 +00:00
|
|
|
SVN \
|
2013-10-25 06:37:43 +00:00
|
|
|
TESTS \
|
2013-07-22 14:23:46 +00:00
|
|
|
USB_GADGET_EXAMPLES
|
2011-04-05 08:49:47 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Default behaviour of some options depends on the architecture. Unfortunately
|
|
|
|
# this means that we have to test TARGET_ARCH (the buildworld case) as well
|
|
|
|
# as MACHINE_ARCH (the non-buildworld case). Normally TARGET_ARCH is not
|
|
|
|
# used at all in bsd.*.mk, but we have to make an exception here if we want
|
2014-04-01 14:24:08 +00:00
|
|
|
# to allow defaults for some things like clang to vary by target architecture.
|
2011-04-05 08:49:47 +00:00
|
|
|
#
|
|
|
|
.if defined(TARGET_ARCH)
|
|
|
|
__T=${TARGET_ARCH}
|
|
|
|
.else
|
|
|
|
__T=${MACHINE_ARCH}
|
|
|
|
.endif
|
2013-09-06 20:08:03 +00:00
|
|
|
.if defined(TARGET)
|
|
|
|
__TT=${TARGET}
|
|
|
|
.else
|
2013-09-06 20:23:15 +00:00
|
|
|
__TT=${MACHINE}
|
2013-09-06 20:08:03 +00:00
|
|
|
.endif
|
2013-02-05 05:16:02 +00:00
|
|
|
# Clang is only for x86, powerpc and little-endian arm right now, by default.
|
2012-05-07 17:13:36 +00:00
|
|
|
.if ${__T} == "amd64" || ${__T} == "i386" || ${__T:Mpowerpc*}
|
2013-02-02 22:28:29 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=CLANG CLANG_FULL
|
2014-03-23 12:49:25 +00:00
|
|
|
.elif ${__T} == "arm" || ${__T} == "armv6" || ${__T} == "armv6hf"
|
2013-02-05 05:16:02 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=CLANG
|
|
|
|
# GCC is unable to build the full clang on arm, disable it by default.
|
|
|
|
__DEFAULT_NO_OPTIONS+=CLANG_FULL
|
2011-04-05 08:49:47 +00:00
|
|
|
.else
|
2013-02-02 22:28:29 +00:00
|
|
|
__DEFAULT_NO_OPTIONS+=CLANG CLANG_FULL
|
2011-04-05 08:49:47 +00:00
|
|
|
.endif
|
2013-03-28 22:49:49 +00:00
|
|
|
# Clang the default system compiler only on little-endian arm and x86.
|
|
|
|
.if ${__T} == "amd64" || ${__T} == "arm" || ${__T} == "armv6" || \
|
2014-03-23 12:49:25 +00:00
|
|
|
${__T} == "armv6hf" || ${__T} == "i386"
|
2012-11-05 19:08:18 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=CLANG_IS_CC
|
2014-04-01 14:24:15 +00:00
|
|
|
__DEFAULT_NO_OPTIONS+=GNUCXX
|
2013-09-06 20:08:03 +00:00
|
|
|
# The pc98 bootloader requires gcc to build and so we must leave gcc enabled
|
|
|
|
# for pc98 for now.
|
|
|
|
.if ${__TT} == "pc98"
|
|
|
|
__DEFAULT_YES_OPTIONS+=GCC
|
|
|
|
.else
|
2014-04-01 14:24:15 +00:00
|
|
|
__DEFAULT_NO_OPTIONS+=GCC
|
2013-09-06 20:08:03 +00:00
|
|
|
.endif
|
2012-11-05 19:08:18 +00:00
|
|
|
.else
|
2013-09-06 20:08:03 +00:00
|
|
|
# If clang is not cc, then build gcc by default
|
2012-11-05 19:08:18 +00:00
|
|
|
__DEFAULT_NO_OPTIONS+=CLANG_IS_CC
|
2014-04-01 14:24:15 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=GCC GNUCXX
|
2012-11-05 19:08:18 +00:00
|
|
|
.endif
|
2011-04-05 08:49:47 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# MK_* options which default to "yes".
|
|
|
|
#
|
|
|
|
.for var in ${__DEFAULT_YES_OPTIONS}
|
2006-03-17 18:54:44 +00:00
|
|
|
.if defined(WITH_${var}) && defined(WITHOUT_${var})
|
|
|
|
.error WITH_${var} and WITHOUT_${var} can't both be set.
|
|
|
|
.endif
|
|
|
|
.if defined(MK_${var})
|
2014-03-30 22:24:45 +00:00
|
|
|
.if ${.MAKE.LEVEL} == 0
|
2006-03-17 18:54:44 +00:00
|
|
|
.error MK_${var} can't be set by a user.
|
|
|
|
.endif
|
2014-03-30 22:24:45 +00:00
|
|
|
.else
|
2006-03-17 18:54:44 +00:00
|
|
|
.if defined(WITHOUT_${var})
|
|
|
|
MK_${var}:= no
|
|
|
|
.else
|
|
|
|
MK_${var}:= yes
|
|
|
|
.endif
|
2014-03-30 22:24:45 +00:00
|
|
|
.endif
|
2006-03-17 18:54:44 +00:00
|
|
|
.endfor
|
2011-04-05 08:49:47 +00:00
|
|
|
.undef __DEFAULT_YES_OPTIONS
|
2006-03-17 18:54:44 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# MK_* options which default to "no".
|
|
|
|
#
|
2011-04-05 08:49:47 +00:00
|
|
|
.for var in ${__DEFAULT_NO_OPTIONS}
|
2006-03-17 18:54:44 +00:00
|
|
|
.if defined(WITH_${var}) && defined(WITHOUT_${var})
|
|
|
|
.error WITH_${var} and WITHOUT_${var} can't both be set.
|
|
|
|
.endif
|
|
|
|
.if defined(MK_${var})
|
2014-03-30 22:24:45 +00:00
|
|
|
.if ${.MAKE.LEVEL} == 0
|
2006-03-17 18:54:44 +00:00
|
|
|
.error MK_${var} can't be set by a user.
|
|
|
|
.endif
|
2014-03-30 22:24:45 +00:00
|
|
|
.else
|
2006-03-17 18:54:44 +00:00
|
|
|
.if defined(WITH_${var})
|
|
|
|
MK_${var}:= yes
|
|
|
|
.else
|
|
|
|
MK_${var}:= no
|
|
|
|
.endif
|
2014-03-30 22:24:45 +00:00
|
|
|
.endif
|
2006-03-17 18:54:44 +00:00
|
|
|
.endfor
|
2011-04-05 08:49:47 +00:00
|
|
|
.undef __DEFAULT_NO_OPTIONS
|
2006-03-17 18:54:44 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Force some options off if their dependencies are off.
|
2007-10-12 08:03:51 +00:00
|
|
|
# Order is somewhat important.
|
2006-03-17 18:54:44 +00:00
|
|
|
#
|
2007-10-12 08:03:51 +00:00
|
|
|
.if ${MK_LIBPTHREAD} == "no"
|
|
|
|
MK_LIBTHR:= no
|
|
|
|
.endif
|
|
|
|
|
2013-02-15 13:44:18 +00:00
|
|
|
.if ${MK_LDNS} == "no"
|
|
|
|
MK_LDNS_UTILS:= no
|
2013-09-15 14:51:23 +00:00
|
|
|
MK_UNBOUND:= no
|
2013-02-15 13:44:18 +00:00
|
|
|
.endif
|
|
|
|
|
2012-02-04 00:54:43 +00:00
|
|
|
.if ${MK_SOURCELESS} == "no"
|
|
|
|
MK_SOURCELESS_HOST:= no
|
|
|
|
MK_SOURCELESS_UCODE:= no
|
|
|
|
.endif
|
|
|
|
|
2007-04-06 02:13:30 +00:00
|
|
|
.if ${MK_CDDL} == "no"
|
|
|
|
MK_ZFS:= no
|
2011-11-30 18:11:49 +00:00
|
|
|
MK_CTF:= no
|
2007-04-06 02:13:30 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_CRYPT} == "no"
|
|
|
|
MK_OPENSSL:= no
|
|
|
|
MK_OPENSSH:= no
|
|
|
|
MK_KERBEROS:= no
|
|
|
|
.endif
|
|
|
|
|
2011-04-06 20:08:23 +00:00
|
|
|
.if ${MK_CXX} == "no"
|
|
|
|
MK_CLANG:= no
|
|
|
|
MK_GROFF:= no
|
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_MAIL} == "no"
|
|
|
|
MK_MAILWRAPPER:= no
|
|
|
|
MK_SENDMAIL:= no
|
2014-02-22 13:05:23 +00:00
|
|
|
MK_DMAGENT:= no
|
2008-09-21 22:02:26 +00:00
|
|
|
.endif
|
|
|
|
|
2010-01-16 12:20:26 +00:00
|
|
|
.if ${MK_NETGRAPH} == "no"
|
|
|
|
MK_ATM:= no
|
|
|
|
MK_BLUETOOTH:= no
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_OPENSSL} == "no"
|
|
|
|
MK_OPENSSH:= no
|
|
|
|
MK_KERBEROS:= no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_PF} == "no"
|
|
|
|
MK_AUTHPF:= no
|
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_TEXTPROC} == "no"
|
|
|
|
MK_GROFF:= no
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_TOOLCHAIN} == "no"
|
2011-05-19 05:13:25 +00:00
|
|
|
MK_BINUTILS:= no
|
2010-06-09 19:57:20 +00:00
|
|
|
MK_CLANG:= no
|
2011-05-19 05:13:25 +00:00
|
|
|
MK_GCC:= no
|
2006-03-17 18:54:44 +00:00
|
|
|
MK_GDB:= no
|
|
|
|
.endif
|
|
|
|
|
2012-02-29 22:58:51 +00:00
|
|
|
.if ${MK_CLANG} == "no"
|
2013-01-30 19:51:16 +00:00
|
|
|
MK_CLANG_EXTRAS:= no
|
2013-02-02 22:28:29 +00:00
|
|
|
MK_CLANG_FULL:= no
|
2012-02-29 22:58:51 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
#
|
|
|
|
# Set defaults for the MK_*_SUPPORT variables.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# MK_*_SUPPORT options which default to "yes" unless their corresponding
|
|
|
|
# MK_* variable is set to "no".
|
|
|
|
#
|
|
|
|
.for var in \
|
2007-01-26 10:19:08 +00:00
|
|
|
BZIP2 \
|
2006-03-17 18:54:44 +00:00
|
|
|
GNU \
|
2011-04-30 17:58:28 +00:00
|
|
|
INET \
|
2006-03-17 18:54:44 +00:00
|
|
|
INET6 \
|
|
|
|
KERBEROS \
|
2007-06-13 02:08:04 +00:00
|
|
|
KVM \
|
2008-09-21 22:02:26 +00:00
|
|
|
NETGRAPH \
|
|
|
|
PAM \
|
|
|
|
WIRELESS
|
2006-03-17 18:54:44 +00:00
|
|
|
.if defined(WITH_${var}_SUPPORT) && defined(WITHOUT_${var}_SUPPORT)
|
|
|
|
.error WITH_${var}_SUPPORT and WITHOUT_${var}_SUPPORT can't both be set.
|
|
|
|
.endif
|
|
|
|
.if defined(MK_${var}_SUPPORT)
|
|
|
|
.error MK_${var}_SUPPORT can't be set by a user.
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_${var}_SUPPORT) || ${MK_${var}} == "no"
|
|
|
|
MK_${var}_SUPPORT:= no
|
|
|
|
.else
|
|
|
|
MK_${var}_SUPPORT:= yes
|
|
|
|
.endif
|
|
|
|
.endfor
|
2007-12-12 16:39:32 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# MK_* options whose default value depends on another option.
|
|
|
|
#
|
|
|
|
.for vv in \
|
2010-05-19 23:56:26 +00:00
|
|
|
GSSAPI/KERBEROS \
|
|
|
|
MAN_UTILS/MAN
|
2007-12-12 16:39:32 +00:00
|
|
|
.if defined(WITH_${vv:H}) && defined(WITHOUT_${vv:H})
|
|
|
|
.error WITH_${vv:H} and WITHOUT_${vv:H} can't both be set.
|
|
|
|
.endif
|
|
|
|
.if defined(MK_${vv:H})
|
|
|
|
.error MK_${vv:H} can't be set by a user.
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_${vv:H})
|
|
|
|
MK_${vv:H}:= yes
|
|
|
|
.elif defined(WITHOUT_${vv:H})
|
|
|
|
MK_${vv:H}:= no
|
|
|
|
.else
|
|
|
|
MK_${vv:H}:= ${MK_${vv:T}}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
2012-09-26 17:25:15 +00:00
|
|
|
#
|
|
|
|
# MK_* options that default to "yes" if the compiler is a C++11 compiler.
|
|
|
|
#
|
|
|
|
.include <bsd.compiler.mk>
|
|
|
|
.for var in \
|
|
|
|
LIBCPLUSPLUS
|
|
|
|
.if defined(WITH_${var}) && defined(WITHOUT_${var})
|
|
|
|
.error WITH_${var} and WITHOUT_${var} can't both be set.
|
|
|
|
.endif
|
|
|
|
.if defined(MK_${var})
|
2014-03-30 22:24:45 +00:00
|
|
|
.if ${.MAKE.LEVEL} == 0
|
2012-09-26 17:25:15 +00:00
|
|
|
.error MK_${var} can't be set by a user.
|
|
|
|
.endif
|
2014-03-30 22:24:45 +00:00
|
|
|
.else
|
2012-09-26 17:25:15 +00:00
|
|
|
.if ${COMPILER_FEATURES:Mc++11}
|
|
|
|
.if defined(WITHOUT_${var})
|
|
|
|
MK_${var}:= no
|
|
|
|
.else
|
|
|
|
MK_${var}:= yes
|
|
|
|
.endif
|
|
|
|
.else
|
|
|
|
.if defined(WITH_${var})
|
|
|
|
MK_${var}:= yes
|
|
|
|
.else
|
|
|
|
MK_${var}:= no
|
|
|
|
.endif
|
|
|
|
.endif
|
2014-03-30 22:24:45 +00:00
|
|
|
.endif
|
2012-09-26 17:25:15 +00:00
|
|
|
.endfor
|
|
|
|
|
2013-12-17 18:30:37 +00:00
|
|
|
.if !${COMPILER_FEATURES:Mc++11}
|
|
|
|
MK_LLDB:= no
|
|
|
|
.endif
|
|
|
|
|
2011-11-30 18:11:49 +00:00
|
|
|
.if ${MK_CTF} != "no"
|
|
|
|
CTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
2012-11-22 04:53:09 +00:00
|
|
|
.elif defined(.PARSEDIR) || (defined(MAKE_VERSION) && ${MAKE_VERSION} >= 5201111300)
|
2011-11-30 18:11:49 +00:00
|
|
|
CTFCONVERT_CMD=
|
|
|
|
.else
|
|
|
|
CTFCONVERT_CMD= @:
|
|
|
|
.endif
|
|
|
|
|
2012-06-26 23:15:55 +00:00
|
|
|
.if ${MK_INSTALL_AS_USER} != "no"
|
2012-11-22 04:50:42 +00:00
|
|
|
_uid!= id -u
|
2012-06-26 23:15:55 +00:00
|
|
|
.if ${_uid} != 0
|
2012-11-22 04:50:42 +00:00
|
|
|
.if !defined(USER)
|
|
|
|
USER!= id -un
|
|
|
|
.endif
|
2012-06-26 23:15:55 +00:00
|
|
|
_gid!= id -gn
|
|
|
|
.for x in BIN CONF DOC INFO KMOD LIB MAN NLS SHARE
|
2012-11-22 04:50:42 +00:00
|
|
|
$xOWN= ${USER}
|
2012-06-26 23:15:55 +00:00
|
|
|
$xGRP= ${_gid}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2006-11-19 16:28:52 +00:00
|
|
|
.endif # !_WITHOUT_SRCCONF
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2013-10-25 05:12:31 +00:00
|
|
|
# Pointer to the top directory into which tests are installed. Should not be
|
|
|
|
# overriden by Makefiles, but the user may choose to set this in src.conf(5).
|
|
|
|
TESTSBASE?= /usr/tests
|
|
|
|
|
2005-04-11 07:13:29 +00:00
|
|
|
.endif # !target(__<bsd.own.mk>__)
|