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