1# $FreeBSD$ 2# 3# The include file <bsd.own.mk> set common variables for owner, 4# group, mode, and directories. Defaults are in brackets. 5# 6# 7# +++ variables +++ 8# 9# DESTDIR Change the tree where the file gets installed. [not set] 10# 11# DISTDIR Change the tree where the file for a distribution 12# gets installed (see /usr/src/release/Makefile). [not set] 13# 14# COMPRESS_CMD Program to compress documents. 15# Output is to stdout. [gzip -cn] 16# 17# COMPRESS_EXT File name extension of ${COMPRESS_CMD} command. [.gz] 18# 19# BINOWN Binary owner. [root] 20# 21# BINGRP Binary group. [wheel] 22# 23# BINMODE Binary mode. [555] 24# 25# NOBINMODE Mode for non-executable files. [444] 26# 27# LIBDIR Base path for libraries. [/usr/lib] 28# 29# LIBCOMPATDIR Base path for compat libraries. [/usr/lib/compat] 30# 31# LIBDATADIR Base path for misc. utility data files. [/usr/libdata] 32# 33# LIBEXECDIR Base path for system daemons and utilities. [/usr/libexec] 34# 35# SHLIBDIR Base path for shared libraries. [${LIBDIR}] 36# 37# LIBOWN Library owner. [${BINOWN}] 38# 39# LIBGRP Library group. [${BINGRP}] 40# 41# LIBMODE Library mode. [${NOBINMODE}] 42# 43# 44# DEBUGDIR Base path for standalone debug files. [/usr/lib/debug] 45# 46# DEBUGMODE Mode for debug files. [${NOBINMODE}] 47# 48# 49# KMODDIR Base path for loadable kernel modules 50# (see kld(4)). [/boot/module] 51# 52# KMODOWN Kernel and KLD owner. [${BINOWN}] 53# 54# KMODGRP Kernel and KLD group. [${BINGRP}] 55# 56# KMODMODE KLD mode. [${BINMODE}] 57# 58# 59# SHAREDIR Base path for architecture-independent ascii 60# text files. [/usr/share] 61# 62# SHAREOWN ASCII text file owner. [root] 63# 64# SHAREGRP ASCII text file group. [wheel] 65# 66# SHAREMODE ASCII text file mode. [${NOBINMODE}] 67# 68# 69# CONFDIR Base path for configuration files. [/etc] 70# 71# CONFOWN Configuration file owner. [root] 72# 73# CONFGRP Configuration file group. [wheel] 74# 75# CONFMODE Configuration file mode. [644] 76# 77# 78# DIROWN Directory owner. [root] 79# 80# DIRGRP Directory group. [wheel] 81# 82# DIRMODE Directory mode. [755] 83# 84# 85# DOCDIR Base path for system documentation (e.g. PSD, USD, 86# handbook, FAQ etc.). [${SHAREDIR}/doc] 87# 88# DOCOWN Documentation owner. [${SHAREOWN}] 89# 90# DOCGRP Documentation group. [${SHAREGRP}] 91# 92# DOCMODE Documentation mode. [${NOBINMODE}] 93# 94# 95# INFODIR Base path for GNU's hypertext system 96# called Info (see info(1)). [${SHAREDIR}/info] 97# 98# INFOOWN Info owner. [${SHAREOWN}] 99# 100# INFOGRP Info group. [${SHAREGRP}] 101# 102# INFOMODE Info mode. [${NOBINMODE}] 103# 104# 105# MANDIR Base path for manual installation. [${SHAREDIR}/man/man] 106# 107# MANOWN Manual owner. [${SHAREOWN}] 108# 109# MANGRP Manual group. [${SHAREGRP}] 110# 111# MANMODE Manual mode. [${NOBINMODE}] 112# 113# 114# NLSDIR Base path for National Language Support files 115# installation. [${SHAREDIR}/nls] 116# 117# NLSOWN National Language Support files owner. [${SHAREOWN}] 118# 119# NLSGRP National Language Support files group. [${SHAREGRP}] 120# 121# NLSMODE National Language Support files mode. [${NOBINMODE}] 122# 123# INCLUDEDIR Base path for standard C include files [/usr/include] 124# 125# PKG_CMD Program for creating and manipulating packages. 126# [pkg] 127 128.if !target(__<bsd.own.mk>__) 129__<bsd.own.mk>__: 130 131.include <bsd.opts.mk> # options now here or src.opts.mk 132 133.if !defined(_WITHOUT_SRCCONF) 134 135.if ${MK_CTF} != "no" 136CTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} 137.elif defined(.PARSEDIR) || (defined(MAKE_VERSION) && ${MAKE_VERSION} >= 5201111300) 138CTFCONVERT_CMD= 139.else 140CTFCONVERT_CMD= @: 141.endif 142 143.endif # !_WITHOUT_SRCCONF 144 145# Binaries 146BINOWN?= root 147BINGRP?= wheel 148BINMODE?= 555 149NOBINMODE?= 444 150 151KMODDIR?= /boot/modules 152KMODOWN?= ${BINOWN} 153KMODGRP?= ${BINGRP} 154KMODMODE?= ${BINMODE} 155DTBDIR?= /boot/dtb 156DTBODIR?= /boot/dtb/overlays 157DTBOWN?= root 158DTBGRP?= wheel 159DTBMODE?= 444 160 161# Use make.conf / environment LIBDIR as default if set... 162.if !empty(_PREMK_LIBDIR) 163LIBDIR_BASE?= ${_PREMK_LIBDIR} 164.endif 165# otherwise use our expected default value. 166LIBDIR_BASE?= /usr/lib 167LIBDIR?= ${LIBDIR_BASE} 168LIBCOMPATDIR?= /usr/lib/compat 169LIBDATADIR?= /usr/libdata 170LIBEXECDIR?= /usr/libexec 171SHLIBDIR?= ${LIBDIR} 172LIBOWN?= ${BINOWN} 173LIBGRP?= ${BINGRP} 174LIBMODE?= ${NOBINMODE} 175 176DEBUGDIR?= /usr/lib/debug 177DEBUGMODE?= ${NOBINMODE} 178 179 180# Share files 181SHAREDIR?= /usr/share 182SHAREOWN?= root 183SHAREGRP?= wheel 184SHAREMODE?= ${NOBINMODE} 185 186CONFDIR?= /etc 187CONFOWN?= root 188CONFGRP?= wheel 189CONFMODE?= 644 190 191MANDIR?= ${SHAREDIR}/man/man 192MANOWN?= ${SHAREOWN} 193MANGRP?= ${SHAREGRP} 194MANMODE?= ${NOBINMODE} 195 196DIROWN?= root 197DIRGRP?= wheel 198DIRMODE?= 755 199 200DOCDIR?= ${SHAREDIR}/doc 201DOCOWN?= ${SHAREOWN} 202DOCGRP?= ${SHAREGRP} 203DOCMODE?= ${NOBINMODE} 204 205INFODIR?= ${SHAREDIR}/info 206INFOOWN?= ${SHAREOWN} 207INFOGRP?= ${SHAREGRP} 208INFOMODE?= ${NOBINMODE} 209 210NLSDIR?= ${SHAREDIR}/nls 211NLSOWN?= ${SHAREOWN} 212NLSGRP?= ${SHAREGRP} 213NLSMODE?= ${NOBINMODE} 214 215INCLUDEDIR?= /usr/include 216 217# 218# install(1) parameters. 219# 220HRDLINK?= -l h 221SYMLINK?= -l s 222RSYMLINK?= -l rs 223 224INSTALL_LINK?= ${INSTALL} ${HRDLINK} 225INSTALL_SYMLINK?= ${INSTALL} ${SYMLINK} 226INSTALL_RSYMLINK?= ${INSTALL} ${RSYMLINK} 227 228# Common variables 229.if !defined(DEBUG_FLAGS) 230STRIP?= -s 231.endif 232 233COMPRESS_CMD?= gzip -cn 234COMPRESS_EXT?= .gz 235 236# Set XZ_THREADS to 1 to disable multi-threading. 237XZ_THREADS?= 0 238 239.if !empty(XZ_THREADS) 240XZ_CMD?= xz -T ${XZ_THREADS} 241.else 242XZ_CMD?= xz 243.endif 244 245PKG_CMD?= pkg 246 247# Pointer to the top directory into which tests are installed. Should not be 248# overriden by Makefiles, but the user may choose to set this in src.conf(5). 249TESTSBASE?= /usr/tests 250 251DEPENDFILE?= .depend 252 253# Compat for the moment -- old bsd.own.mk only included this when _WITHOUT_SRCCONF 254# wasn't defined. bsd.ports.mk and friends depend on this behavior. Remove in 12. 255.if !defined(_WITHOUT_SRCCONF) 256.include <bsd.compiler.mk> 257.endif # !_WITHOUT_SRCCONF 258 259.endif # !target(__<bsd.own.mk>__) 260