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]
|
|
|
|
#
|
|
|
|
# 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}]
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# 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
|
2006-03-18 10:54:09 +00:00
|
|
|
.if exists(${SRCCONF})
|
|
|
|
.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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
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 \
|
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})
|
2011-11-29 08:20:23 +00:00
|
|
|
.if defined(WITH_${var})
|
|
|
|
.undef WITH_${var}
|
|
|
|
.endif
|
2006-03-17 18:54:44 +00:00
|
|
|
WITHOUT_${var}=
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compat NO_* options (same as above, except their use is deprecated).
|
|
|
|
#
|
|
|
|
.if !defined(BURN_BRIDGES)
|
|
|
|
.for var in \
|
|
|
|
ACPI \
|
|
|
|
ATM \
|
|
|
|
AUDIT \
|
|
|
|
AUTHPF \
|
|
|
|
BIND \
|
|
|
|
BIND_DNSSEC \
|
|
|
|
BIND_ETC \
|
|
|
|
BIND_LIBS_LWRES \
|
|
|
|
BIND_MTREE \
|
|
|
|
BIND_NAMED \
|
|
|
|
BIND_UTILS \
|
|
|
|
BLUETOOTH \
|
|
|
|
BOOT \
|
|
|
|
CALENDAR \
|
|
|
|
CPP \
|
|
|
|
CRYPT \
|
|
|
|
CVS \
|
|
|
|
CXX \
|
|
|
|
DICT \
|
|
|
|
DYNAMICROOT \
|
|
|
|
EXAMPLES \
|
|
|
|
FORTH \
|
|
|
|
FP_LIBC \
|
|
|
|
GAMES \
|
|
|
|
GCOV \
|
|
|
|
GDB \
|
|
|
|
GNU \
|
|
|
|
GPIB \
|
|
|
|
GROFF \
|
|
|
|
HTML \
|
|
|
|
INET6 \
|
|
|
|
INFO \
|
|
|
|
IPFILTER \
|
|
|
|
IPX \
|
|
|
|
KERBEROS \
|
2006-03-25 06:37:36 +00:00
|
|
|
LIB32 \
|
2006-03-17 18:54:44 +00:00
|
|
|
LIBPTHREAD \
|
|
|
|
LIBTHR \
|
|
|
|
LOCALES \
|
|
|
|
LPR \
|
|
|
|
MAILWRAPPER \
|
|
|
|
NETCAT \
|
|
|
|
NIS \
|
|
|
|
NLS \
|
|
|
|
NLS_CATALOGS \
|
2006-04-28 12:03:38 +00:00
|
|
|
NS_CACHING \
|
2006-03-17 18:54:44 +00:00
|
|
|
OPENSSH \
|
|
|
|
OPENSSL \
|
|
|
|
PAM \
|
|
|
|
PF \
|
|
|
|
RCMDS \
|
|
|
|
RCS \
|
|
|
|
RESCUE \
|
|
|
|
SENDMAIL \
|
|
|
|
SETUID_LOGIN \
|
|
|
|
SHAREDOCS \
|
|
|
|
SYSCONS \
|
|
|
|
TCSH \
|
|
|
|
TOOLCHAIN \
|
|
|
|
USB \
|
|
|
|
WPA_SUPPLICANT_EAPOL
|
|
|
|
.if defined(NO_${var})
|
|
|
|
#.warning NO_${var} is deprecated in favour of WITHOUT_${var}=
|
|
|
|
WITHOUT_${var}=
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
.endif # !defined(BURN_BRIDGES)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Older-style variables that enabled behaviour when set.
|
|
|
|
#
|
|
|
|
.if defined(YES_HESIOD)
|
|
|
|
WITH_HESIOD=
|
|
|
|
.endif
|
|
|
|
.if defined(MAKE_IDEA)
|
|
|
|
WITH_IDEA=
|
|
|
|
.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 \
|
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 \
|
|
|
|
BIND \
|
|
|
|
BIND_DNSSEC \
|
|
|
|
BIND_ETC \
|
|
|
|
BIND_LIBS_LWRES \
|
|
|
|
BIND_MTREE \
|
|
|
|
BIND_NAMED \
|
|
|
|
BIND_UTILS \
|
2011-05-19 05:13:25 +00:00
|
|
|
BINUTILS \
|
2006-03-17 18:54:44 +00:00
|
|
|
BLUETOOTH \
|
|
|
|
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 \
|
2006-11-01 09:02:11 +00:00
|
|
|
CDDL \
|
2006-03-17 18:54:44 +00:00
|
|
|
CPP \
|
|
|
|
CRYPT \
|
2008-09-21 22:02:26 +00:00
|
|
|
CTM \
|
2006-03-17 18:54:44 +00:00
|
|
|
CVS \
|
|
|
|
CXX \
|
|
|
|
DICT \
|
|
|
|
DYNAMICROOT \
|
|
|
|
EXAMPLES \
|
2008-09-21 22:02:26 +00:00
|
|
|
FLOPPY \
|
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 \
|
2011-05-19 05:13:25 +00:00
|
|
|
GCC \
|
2006-03-17 18:54:44 +00:00
|
|
|
GCOV \
|
|
|
|
GDB \
|
|
|
|
GNU \
|
|
|
|
GPIB \
|
2011-04-05 08:49:47 +00:00
|
|
|
GPIO \
|
2006-03-17 18:54:44 +00:00
|
|
|
GROFF \
|
|
|
|
HTML \
|
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 \
|
2006-03-17 18:54:44 +00:00
|
|
|
IPX \
|
2008-09-21 22:02:26 +00:00
|
|
|
JAIL \
|
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 \
|
2008-09-21 22:02:26 +00:00
|
|
|
LEGACY_CONSOLE \
|
2006-03-25 06:37:36 +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 \
|
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 \
|
2006-03-20 14:24:58 +00:00
|
|
|
NCP \
|
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 \
|
|
|
|
PF \
|
2008-09-21 22:02:26 +00:00
|
|
|
PKGTOOLS \
|
|
|
|
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 \
|
|
|
|
RCS \
|
|
|
|
RESCUE \
|
2008-09-21 22:02:26 +00:00
|
|
|
ROUTED \
|
2006-03-17 18:54:44 +00:00
|
|
|
SENDMAIL \
|
|
|
|
SETUID_LOGIN \
|
|
|
|
SHAREDOCS \
|
2007-05-19 04:42:59 +00:00
|
|
|
SSP \
|
2008-09-21 22:02:26 +00:00
|
|
|
SYSINSTALL \
|
2007-05-13 14:12:40 +00:00
|
|
|
SYMVER \
|
2006-03-17 18:54:44 +00:00
|
|
|
SYSCONS \
|
|
|
|
TCSH \
|
2008-09-21 22:02:26 +00:00
|
|
|
TELNET \
|
|
|
|
TEXTPROC \
|
2006-03-17 18:54:44 +00:00
|
|
|
TOOLCHAIN \
|
|
|
|
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 = \
|
|
|
|
BSD_GREP \
|
|
|
|
BIND_IDN \
|
|
|
|
BIND_LARGE_FILE \
|
|
|
|
BIND_LIBS \
|
|
|
|
BIND_SIGCHASE \
|
|
|
|
BIND_XML \
|
2011-11-30 18:11:49 +00:00
|
|
|
CTF \
|
2011-04-05 08:49:47 +00:00
|
|
|
HESIOD \
|
|
|
|
ICONV \
|
|
|
|
IDEA \
|
2011-11-26 03:26:06 +00:00
|
|
|
LIBCPLUSPLUS \
|
2011-12-02 09:09:54 +00:00
|
|
|
OFED
|
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
|
2011-05-10 10:48:43 +00:00
|
|
|
# to allow defaults for some things like clang and fdt to vary by target
|
2011-04-05 08:49:47 +00:00
|
|
|
# architecture.
|
|
|
|
#
|
|
|
|
.if defined(TARGET_ARCH)
|
|
|
|
__T=${TARGET_ARCH}
|
|
|
|
.else
|
|
|
|
__T=${MACHINE_ARCH}
|
|
|
|
.endif
|
2011-11-21 00:49:46 +00:00
|
|
|
# Clang is only for x86 and powerpc right now, by default.
|
|
|
|
.if ${__T} == "amd64" || ${__T} == "i386" || ${__T:Mpowerpc*}
|
2011-04-05 08:49:47 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=CLANG
|
|
|
|
.else
|
|
|
|
__DEFAULT_NO_OPTIONS+=CLANG
|
|
|
|
.endif
|
2011-11-21 00:49:46 +00:00
|
|
|
# FDT is needed only for arm, mips and powerpc
|
|
|
|
.if ${__T:Marm*} || ${__T:Mpowerpc*} || ${__T:Mmips*}
|
2011-04-05 08:49:47 +00:00
|
|
|
__DEFAULT_YES_OPTIONS+=FDT
|
|
|
|
.else
|
|
|
|
__DEFAULT_NO_OPTIONS+=FDT
|
|
|
|
.endif
|
|
|
|
.undef __T
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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})
|
|
|
|
.error MK_${var} can't be set by a user.
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_${var})
|
|
|
|
MK_${var}:= no
|
|
|
|
.else
|
|
|
|
MK_${var}:= yes
|
|
|
|
.endif
|
|
|
|
.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})
|
|
|
|
.error MK_${var} can't be set by a user.
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_${var})
|
|
|
|
MK_${var}:= yes
|
|
|
|
.else
|
|
|
|
MK_${var}:= no
|
|
|
|
.endif
|
|
|
|
.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
|
|
|
|
|
2008-03-29 17:44:40 +00:00
|
|
|
.if ${MK_LIBTHR} == "no"
|
2007-10-12 08:03:51 +00:00
|
|
|
MK_BIND:= no
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_BIND} == "no"
|
|
|
|
MK_BIND_DNSSEC:= no
|
|
|
|
MK_BIND_ETC:= no
|
|
|
|
MK_BIND_LIBS:= no
|
|
|
|
MK_BIND_LIBS_LWRES:= no
|
|
|
|
MK_BIND_MTREE:= no
|
|
|
|
MK_BIND_NAMED:= no
|
|
|
|
MK_BIND_UTILS:= no
|
|
|
|
.endif
|
|
|
|
|
2006-04-01 18:11:42 +00:00
|
|
|
.if ${MK_BIND_MTREE} == "no"
|
|
|
|
MK_BIND_ETC:= 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
|
|
|
|
|
2006-03-20 14:24:58 +00:00
|
|
|
.if ${MK_IPX} == "no"
|
|
|
|
MK_NCP:= no
|
|
|
|
.endif
|
|
|
|
|
2008-09-21 22:02:26 +00:00
|
|
|
.if ${MK_MAIL} == "no"
|
|
|
|
MK_MAILWRAPPER:= no
|
|
|
|
MK_SENDMAIL:= no
|
|
|
|
.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
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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 \
|
|
|
|
IPX \
|
|
|
|
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
|
|
|
|
|
2011-11-30 18:11:49 +00:00
|
|
|
.if ${MK_CTF} != "no"
|
|
|
|
CTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
|
|
|
.elif ${MAKE_VERSION} >= 5201111300
|
|
|
|
CTFCONVERT_CMD=
|
|
|
|
.else
|
|
|
|
CTFCONVERT_CMD= @:
|
|
|
|
.endif
|
|
|
|
|
2006-11-19 16:28:52 +00:00
|
|
|
.endif # !_WITHOUT_SRCCONF
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2005-04-11 07:13:29 +00:00
|
|
|
.endif # !target(__<bsd.own.mk>__)
|