150476Speter# $FreeBSD: stable/11/share/mk/bsd.own.mk 320294 2017-06-23 19:44:20Z bdrewery $ 215903Swosch# 3290426Sbdrewery# The include file <bsd.own.mk> set common variables for owner, 415903Swosch# group, mode, and directories. Defaults are in brackets. 515903Swosch# 615903Swosch# 715903Swosch# +++ variables +++ 815903Swosch# 915903Swosch# DESTDIR Change the tree where the file gets installed. [not set] 1015903Swosch# 1115903Swosch# DISTDIR Change the tree where the file for a distribution 1215903Swosch# gets installed (see /usr/src/release/Makefile). [not set] 1315903Swosch# 14139761Skrion# COMPRESS_CMD Program to compress documents. 1534678Sbde# Output is to stdout. [gzip -cn] 1623546Swosch# 1723546Swosch# COMPRESS_EXT File name extension of ${COMPRESS_CMD} command. [.gz] 1823546Swosch# 1939161Sobrien# BINOWN Binary owner. [root] 2015903Swosch# 2139161Sobrien# BINGRP Binary group. [wheel] 2215903Swosch# 2315903Swosch# BINMODE Binary mode. [555] 2415903Swosch# 2515903Swosch# NOBINMODE Mode for non-executable files. [444] 2615903Swosch# 2715903Swosch# LIBDIR Base path for libraries. [/usr/lib] 2815903Swosch# 2932216Swosch# LIBCOMPATDIR Base path for compat libraries. [/usr/lib/compat] 3032216Swosch# 3132216Swosch# LIBDATADIR Base path for misc. utility data files. [/usr/libdata] 3232216Swosch# 33218525Skeramida# LIBEXECDIR Base path for system daemons and utilities. [/usr/libexec] 34218525Skeramida# 3515903Swosch# LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint] 3615903Swosch# 3715903Swosch# SHLIBDIR Base path for shared libraries. [${LIBDIR}] 3815903Swosch# 39119057Sobrien# LIBOWN Library owner. [${BINOWN}] 4015903Swosch# 4115903Swosch# LIBGRP Library group. [${BINGRP}] 4215903Swosch# 4315903Swosch# LIBMODE Library mode. [${NOBINMODE}] 4415903Swosch# 4515903Swosch# 46251512Semaste# DEBUGDIR Base path for standalone debug files. [/usr/lib/debug] 47251512Semaste# 48251512Semaste# DEBUGMODE Mode for debug files. [${NOBINMODE}] 49251512Semaste# 50251512Semaste# 5115903Swosch# KMODDIR Base path for loadable kernel modules 52300763Sjhb# (see kld(4)). [/boot/module] 5315903Swosch# 54186894Sbz# KMODOWN Kernel and KLD owner. [${BINOWN}] 5515903Swosch# 56186894Sbz# KMODGRP Kernel and KLD group. [${BINGRP}] 5715903Swosch# 5853033Sphantom# KMODMODE KLD mode. [${BINMODE}] 5915903Swosch# 6015903Swosch# 6115903Swosch# SHAREDIR Base path for architecture-independent ascii 6215903Swosch# text files. [/usr/share] 6315903Swosch# 6439161Sobrien# SHAREOWN ASCII text file owner. [root] 6515903Swosch# 6639161Sobrien# SHAREGRP ASCII text file group. [wheel] 6715903Swosch# 6815903Swosch# SHAREMODE ASCII text file mode. [${NOBINMODE}] 6915903Swosch# 7015903Swosch# 71223596Sse# CONFDIR Base path for configuration files. [/etc] 72223596Sse# 73223596Sse# CONFOWN Configuration file owner. [root] 74223596Sse# 75223596Sse# CONFGRP Configuration file group. [wheel] 76223596Sse# 77223596Sse# CONFMODE Configuration file mode. [644] 78223596Sse# 79223596Sse# 8015903Swosch# DOCDIR Base path for system documentation (e.g. PSD, USD, 8115903Swosch# handbook, FAQ etc.). [${SHAREDIR}/doc] 8215903Swosch# 8315903Swosch# DOCOWN Documentation owner. [${SHAREOWN}] 8415903Swosch# 8515903Swosch# DOCGRP Documentation group. [${SHAREGRP}] 8615903Swosch# 8715903Swosch# DOCMODE Documentation mode. [${NOBINMODE}] 8815903Swosch# 8915903Swosch# 9015903Swosch# INFODIR Base path for GNU's hypertext system 9115903Swosch# called Info (see info(1)). [${SHAREDIR}/info] 9215903Swosch# 9315903Swosch# INFOOWN Info owner. [${SHAREOWN}] 9415903Swosch# 9515903Swosch# INFOGRP Info group. [${SHAREGRP}] 9615903Swosch# 9715903Swosch# INFOMODE Info mode. [${NOBINMODE}] 9815903Swosch# 9915903Swosch# 10015903Swosch# MANDIR Base path for manual installation. [${SHAREDIR}/man/man] 10115903Swosch# 10215903Swosch# MANOWN Manual owner. [${SHAREOWN}] 10315903Swosch# 10415903Swosch# MANGRP Manual group. [${SHAREGRP}] 10515903Swosch# 10615903Swosch# MANMODE Manual mode. [${NOBINMODE}] 10715903Swosch# 10815903Swosch# 10915903Swosch# NLSDIR Base path for National Language Support files 11090627Sphantom# installation. [${SHAREDIR}/nls] 11115903Swosch# 11290626Sphantom# NLSOWN National Language Support files owner. [${SHAREOWN}] 11315903Swosch# 11490626Sphantom# NLSGRP National Language Support files group. [${SHAREGRP}] 11515903Swosch# 11661462Sghelmer# NLSMODE National Language Support files mode. [${NOBINMODE}] 11715903Swosch# 11832216Swosch# INCLUDEDIR Base path for standard C include files [/usr/include] 119317259Sgjb# 120317259Sgjb# PKG_CMD Program for creating and manipulating packages. 121317259Sgjb# [pkg] 12215903Swosch 12394982Sru.if !target(__<bsd.own.mk>__) 12494982Sru__<bsd.own.mk>__: 12594982Sru 126266756Simp.include <bsd.opts.mk> # options now here or src.opts.mk 127264661Simp 128164411Sru.if !defined(_WITHOUT_SRCCONF) 129264661Simp 130264661Simp.if ${MK_CTF} != "no" 131264661SimpCTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} 132264661Simp.elif defined(.PARSEDIR) || (defined(MAKE_VERSION) && ${MAKE_VERSION} >= 5201111300) 133264661SimpCTFCONVERT_CMD= 134264661Simp.else 135264661SimpCTFCONVERT_CMD= @: 136264661Simp.endif 137264661Simp 138264661Simp.endif # !_WITHOUT_SRCCONF 139264661Simp 14014968Swosch# Binaries 14139161SobrienBINOWN?= root 14239161SobrienBINGRP?= wheel 14314573SwoschBINMODE?= 555 14414968SwoschNOBINMODE?= 444 14514573Swosch 146111853SruKMODDIR?= /boot/modules 14748204SjmgKMODOWN?= ${BINOWN} 14848204SjmgKMODGRP?= ${BINGRP} 14948204SjmgKMODMODE?= ${BINMODE} 150278462SimpDTBDIR?= /boot/dtb 151278462SimpDTBOWN?= root 152278462SimpDTBGRP?= wheel 153278462SimpDTBMODE?= 444 15448204Sjmg 155320294Sbdrewery# Use make.conf / environment LIBDIR as default if set... 156320294Sbdrewery.if !empty(_PREMK_LIBDIR) 157320294SbdreweryLIBDIR_BASE?= ${_PREMK_LIBDIR} 158320294Sbdrewery.endif 159320294Sbdrewery# otherwise use our expected default value. 160320294SbdreweryLIBDIR_BASE?= /usr/lib 161320294SbdreweryLIBDIR?= ${LIBDIR_BASE} 16232226SsteveLIBCOMPATDIR?= /usr/lib/compat 16332226SsteveLIBDATADIR?= /usr/libdata 164218525SkeramidaLIBEXECDIR?= /usr/libexec 16514573SwoschLINTLIBDIR?= /usr/libdata/lint 16614573SwoschSHLIBDIR?= ${LIBDIR} 16714968SwoschLIBOWN?= ${BINOWN} 16814968SwoschLIBGRP?= ${BINGRP} 16914968SwoschLIBMODE?= ${NOBINMODE} 17014573Swosch 171251512SemasteDEBUGDIR?= /usr/lib/debug 172251512SemasteDEBUGMODE?= ${NOBINMODE} 17314968Swosch 174251512Semaste 17514968Swosch# Share files 17614968SwoschSHAREDIR?= /usr/share 17739161SobrienSHAREOWN?= root 17839161SobrienSHAREGRP?= wheel 17914968SwoschSHAREMODE?= ${NOBINMODE} 18014968Swosch 181223596SseCONFDIR?= /etc 182223596SseCONFOWN?= root 183223596SseCONFGRP?= wheel 184223596SseCONFMODE?= 644 185223596Sse 18614968SwoschMANDIR?= ${SHAREDIR}/man/man 18714968SwoschMANOWN?= ${SHAREOWN} 18814968SwoschMANGRP?= ${SHAREGRP} 18914968SwoschMANMODE?= ${NOBINMODE} 19014968Swosch 19114968SwoschDOCDIR?= ${SHAREDIR}/doc 19214968SwoschDOCOWN?= ${SHAREOWN} 19314968SwoschDOCGRP?= ${SHAREGRP} 19414968SwoschDOCMODE?= ${NOBINMODE} 19514968Swosch 19614968SwoschINFODIR?= ${SHAREDIR}/info 19714968SwoschINFOOWN?= ${SHAREOWN} 19814968SwoschINFOGRP?= ${SHAREGRP} 19914968SwoschINFOMODE?= ${NOBINMODE} 20014968Swosch 20114968SwoschNLSDIR?= ${SHAREDIR}/nls 20290626SphantomNLSOWN?= ${SHAREOWN} 20390626SphantomNLSGRP?= ${SHAREGRP} 20461462SghelmerNLSMODE?= ${NOBINMODE} 20514968Swosch 20632216SwoschINCLUDEDIR?= /usr/include 20732216Swosch 208245752Sbrooks# 209245752Sbrooks# install(1) parameters. 210245752Sbrooks# 211245752SbrooksHRDLINK?= -l h 212245752SbrooksSYMLINK?= -l s 213284898SbaptRSYMLINK?= -l rs 214245752Sbrooks 215245752SbrooksINSTALL_LINK?= ${INSTALL} ${HRDLINK} 216245752SbrooksINSTALL_SYMLINK?= ${INSTALL} ${SYMLINK} 217284898SbaptINSTALL_RSYMLINK?= ${INSTALL} ${RSYMLINK} 218245752Sbrooks 21914968Swosch# Common variables 220125494Sru.if !defined(DEBUG_FLAGS) 221125494SruSTRIP?= -s 222125494Sru.endif 223125494Sru 22434678SbdeCOMPRESS_CMD?= gzip -cn 22523546SwoschCOMPRESS_EXT?= .gz 22694982Sru 227278926Srpaulo# Set XZ_THREADS to 1 to disable multi-threading. 228278926SrpauloXZ_THREADS?= 0 229278926Srpaulo 230278926Srpaulo.if !empty(XZ_THREADS) 231278926SrpauloXZ_CMD?= xz -T ${XZ_THREADS} 232278926Srpaulo.else 233278926SrpauloXZ_CMD?= xz 234278926Srpaulo.endif 235278926Srpaulo 236317259SgjbPKG_CMD?= pkg 237317259Sgjb 238257096Srpaulo# Pointer to the top directory into which tests are installed. Should not be 239257096Srpaulo# overriden by Makefiles, but the user may choose to set this in src.conf(5). 240257096SrpauloTESTSBASE?= /usr/tests 241257096Srpaulo 242296062SbdreweryDEPENDFILE?= .depend 243296062Sbdrewery 244288911Simp# Compat for the moment -- old bsd.own.mk only included this when _WITHOUT_SRCCONF 245288911Simp# wasn't defined. bsd.ports.mk and friends depend on this behavior. Remove in 12. 246288911Simp.if !defined(_WITHOUT_SRCCONF) 247265420Simp.include <bsd.compiler.mk> 248288911Simp.endif # !_WITHOUT_SRCCONF 249265420Simp 250144893Sharti.endif # !target(__<bsd.own.mk>__) 251