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