1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1996-05-25 23:09:49 +00:00
|
|
|
#
|
2015-11-05 22:42:40 +00:00
|
|
|
# The include file <bsd.own.mk> set common variables for owner,
|
1996-05-25 23:09:49 +00:00
|
|
|
# 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
|
|
|
# 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
|
2018-08-09 16:42:13 +00:00
|
|
|
# (see kld(4)). [/boot/modules]
|
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]
|
|
|
|
#
|
|
|
|
#
|
2018-05-09 13:44:54 +00:00
|
|
|
# DIROWN Directory owner. [root]
|
|
|
|
#
|
|
|
|
# DIRGRP Directory group. [wheel]
|
|
|
|
#
|
|
|
|
# DIRMODE Directory mode. [755]
|
|
|
|
#
|
|
|
|
#
|
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]
|
2016-12-16 23:05:47 +00:00
|
|
|
#
|
|
|
|
# PKG_CMD Program for creating and manipulating packages.
|
|
|
|
# [pkg]
|
2018-06-29 16:07:56 +00:00
|
|
|
#
|
|
|
|
# LINKOWN Hard link owner [${BINOWN}]
|
|
|
|
#
|
|
|
|
# LINKGRP Hard link group [${BINGRP}]
|
|
|
|
#
|
|
|
|
# LINKMODE Hard link mode [${NOBINMODE}]
|
|
|
|
#
|
|
|
|
# SYMLINKOWN Symbolic link owner [${BINOWN} or ${LIBOWN}]
|
|
|
|
#
|
|
|
|
# SYMLINKGRP Symbolic link group [${BINGRP} or ${LIBGRP}]
|
|
|
|
#
|
|
|
|
# SYMLINKMODE Symbolic link mode [755]
|
1996-05-25 23:09:49 +00:00
|
|
|
|
2002-04-18 06:37:48 +00:00
|
|
|
.if !target(__<bsd.own.mk>__)
|
|
|
|
__<bsd.own.mk>__:
|
|
|
|
|
2014-05-27 16:30:54 +00:00
|
|
|
.include <bsd.opts.mk> # options now here or src.opts.mk
|
2014-04-18 17:04:09 +00:00
|
|
|
|
2006-11-19 16:28:52 +00:00
|
|
|
.if !defined(_WITHOUT_SRCCONF)
|
2014-04-18 17:04:09 +00:00
|
|
|
|
|
|
|
.if ${MK_CTF} != "no"
|
|
|
|
CTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
|
|
|
.elif defined(.PARSEDIR) || (defined(MAKE_VERSION) && ${MAKE_VERSION} >= 5201111300)
|
|
|
|
CTFCONVERT_CMD=
|
|
|
|
.else
|
|
|
|
CTFCONVERT_CMD= @:
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif # !_WITHOUT_SRCCONF
|
|
|
|
|
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
|
|
|
KMODDIR?= /boot/modules
|
1999-06-24 22:50:24 +00:00
|
|
|
KMODOWN?= ${BINOWN}
|
|
|
|
KMODGRP?= ${BINGRP}
|
|
|
|
KMODMODE?= ${BINMODE}
|
2015-02-09 16:21:49 +00:00
|
|
|
DTBDIR?= /boot/dtb
|
2018-03-24 21:30:24 +00:00
|
|
|
DTBODIR?= /boot/dtb/overlays
|
2015-02-09 16:21:49 +00:00
|
|
|
DTBOWN?= root
|
|
|
|
DTBGRP?= wheel
|
|
|
|
DTBMODE?= 444
|
1999-06-24 22:50:24 +00:00
|
|
|
|
2017-06-19 18:08:02 +00:00
|
|
|
# Use make.conf / environment LIBDIR as default if set...
|
|
|
|
.if !empty(_PREMK_LIBDIR)
|
|
|
|
LIBDIR_BASE?= ${_PREMK_LIBDIR}
|
|
|
|
.endif
|
|
|
|
# otherwise use our expected default value.
|
2017-06-17 20:33:11 +00:00
|
|
|
LIBDIR_BASE?= /usr/lib
|
|
|
|
LIBDIR?= ${LIBDIR_BASE}
|
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
|
|
|
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}
|
|
|
|
|
2018-05-09 13:44:54 +00:00
|
|
|
DIROWN?= root
|
|
|
|
DIRGRP?= wheel
|
|
|
|
DIRMODE?= 755
|
|
|
|
|
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
|
|
|
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.
|
|
|
|
#
|
2018-06-29 16:07:56 +00:00
|
|
|
_LINKOWN?= ${LINKOWN:U${BINOWN}}
|
|
|
|
_LINKGRP?= ${LINKGRP:U${BINGRP}}
|
|
|
|
_LINKMODE?= ${LINKMODE:U${NOBINMODE}}
|
|
|
|
_SYMLINKOWN?= ${SYMLINKOWN:U${BINOWN}}
|
|
|
|
_SYMLINKGRP?= ${SYMLINKGRP:U${BINGRP}}
|
|
|
|
_SYMLINKMODE?= ${SYMLINKMODE:U755}
|
|
|
|
HRDLINK?= -l h -o ${_LINKOWN} -g ${_LINKGRP} -m ${_LINKMODE}
|
|
|
|
MANHRDLINK?= -l h -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
|
|
|
|
SYMLINK?= -l s -o ${_SYMLINKOWN} -g ${_SYMLINKGRP} -m ${_SYMLINKMODE}
|
|
|
|
LSYMLINK?= -l s -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE}
|
|
|
|
RSYMLINK?= -l rs -o ${_SYMLINKOWN} -g ${_SYMLINKGRP} -m ${_SYMLINKMODE}
|
2013-01-21 22:40:39 +00:00
|
|
|
|
|
|
|
INSTALL_LINK?= ${INSTALL} ${HRDLINK}
|
2018-06-29 16:07:56 +00:00
|
|
|
INSTALL_MANLINK?= ${INSTALL} ${MANHRDLINK}
|
2013-01-21 22:40:39 +00:00
|
|
|
INSTALL_SYMLINK?= ${INSTALL} ${SYMLINK}
|
2018-06-29 16:07:56 +00:00
|
|
|
INSTALL_LIBSYMLINK?= ${INSTALL} ${LSYMLINK}
|
2015-06-27 23:28:56 +00:00
|
|
|
INSTALL_RSYMLINK?= ${INSTALL} ${RSYMLINK}
|
2013-01-21 22:40:39 +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
|
|
|
# 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
|
|
|
|
2015-02-17 23:13:45 +00:00
|
|
|
# Set XZ_THREADS to 1 to disable multi-threading.
|
|
|
|
XZ_THREADS?= 0
|
|
|
|
|
|
|
|
.if !empty(XZ_THREADS)
|
|
|
|
XZ_CMD?= xz -T ${XZ_THREADS}
|
|
|
|
.else
|
|
|
|
XZ_CMD?= xz
|
|
|
|
.endif
|
|
|
|
|
2016-12-16 23:05:47 +00:00
|
|
|
PKG_CMD?= pkg
|
|
|
|
|
2013-10-25 05:12:31 +00:00
|
|
|
# Pointer to the top directory into which tests are installed. Should not be
|
2018-07-27 10:44:38 +00:00
|
|
|
# overridden by Makefiles, but the user may choose to set this in src.conf(5).
|
2013-10-25 05:12:31 +00:00
|
|
|
TESTSBASE?= /usr/tests
|
|
|
|
|
2016-02-25 20:02:42 +00:00
|
|
|
DEPENDFILE?= .depend
|
|
|
|
|
2015-10-06 04:18:48 +00:00
|
|
|
# Compat for the moment -- old bsd.own.mk only included this when _WITHOUT_SRCCONF
|
|
|
|
# wasn't defined. bsd.ports.mk and friends depend on this behavior. Remove in 12.
|
|
|
|
.if !defined(_WITHOUT_SRCCONF)
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <bsd.compiler.mk>
|
2015-10-06 04:18:48 +00:00
|
|
|
.endif # !_WITHOUT_SRCCONF
|
2014-05-06 04:22:01 +00:00
|
|
|
|
2005-04-11 07:13:29 +00:00
|
|
|
.endif # !target(__<bsd.own.mk>__)
|