3 # The include file <bsd.own.mk> set common variables for owner,
4 # group, mode, and directories. Defaults are in brackets.
9 # DESTDIR Change the tree where the file gets installed. [not set]
11 # DISTDIR Change the tree where the file for a distribution
12 # gets installed (see /usr/src/release/Makefile). [not set]
14 # COMPRESS_CMD Program to compress documents.
15 # Output is to stdout. [gzip -cn]
17 # COMPRESS_EXT File name extension of ${COMPRESS_CMD} command. [.gz]
19 # BINOWN Binary owner. [root]
21 # BINGRP Binary group. [wheel]
23 # BINMODE Binary mode. [555]
25 # NOBINMODE Mode for non-executable files. [444]
27 # LIBDIR Base path for libraries. [/usr/lib]
29 # LIBCOMPATDIR Base path for compat libraries. [/usr/lib/compat]
31 # LIBDATADIR Base path for misc. utility data files. [/usr/libdata]
33 # LIBEXECDIR Base path for system daemons and utilities. [/usr/libexec]
35 # LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint]
37 # SHLIBDIR Base path for shared libraries. [${LIBDIR}]
39 # LIBOWN Library owner. [${BINOWN}]
41 # LIBGRP Library group. [${BINGRP}]
43 # LIBMODE Library mode. [${NOBINMODE}]
45 # COVERAGEDIR Base path for coverage files. [/usr/lib/cov]
47 # DEBUGDIR Base path for standalone debug files. [/usr/lib/debug]
49 # DEBUGMODE Mode for debug files. [${NOBINMODE}]
52 # KMODDIR Base path for loadable kernel modules
53 # (see kld(4)). [/boot/module]
55 # KMODOWN Kernel and KLD owner. [${BINOWN}]
57 # KMODGRP Kernel and KLD group. [${BINGRP}]
59 # KMODMODE KLD mode. [${BINMODE}]
62 # SHAREDIR Base path for architecture-independent ascii
63 # text files. [/usr/share]
65 # SHAREOWN ASCII text file owner. [root]
67 # SHAREGRP ASCII text file group. [wheel]
69 # SHAREMODE ASCII text file mode. [${NOBINMODE}]
72 # CONFDIR Base path for configuration files. [/etc]
74 # CONFOWN Configuration file owner. [root]
76 # CONFGRP Configuration file group. [wheel]
78 # CONFMODE Configuration file mode. [644]
81 # DOCDIR Base path for system documentation (e.g. PSD, USD,
82 # handbook, FAQ etc.). [${SHAREDIR}/doc]
84 # DOCOWN Documentation owner. [${SHAREOWN}]
86 # DOCGRP Documentation group. [${SHAREGRP}]
88 # DOCMODE Documentation mode. [${NOBINMODE}]
91 # INFODIR Base path for GNU's hypertext system
92 # called Info (see info(1)). [${SHAREDIR}/info]
94 # INFOOWN Info owner. [${SHAREOWN}]
96 # INFOGRP Info group. [${SHAREGRP}]
98 # INFOMODE Info mode. [${NOBINMODE}]
101 # MANDIR Base path for manual installation. [${SHAREDIR}/man/man]
103 # MANOWN Manual owner. [${SHAREOWN}]
105 # MANGRP Manual group. [${SHAREGRP}]
107 # MANMODE Manual mode. [${NOBINMODE}]
110 # NLSDIR Base path for National Language Support files
111 # installation. [${SHAREDIR}/nls]
113 # NLSOWN National Language Support files owner. [${SHAREOWN}]
115 # NLSGRP National Language Support files group. [${SHAREGRP}]
117 # NLSMODE National Language Support files mode. [${NOBINMODE}]
119 # INCLUDEDIR Base path for standard C include files [/usr/include]
121 # PKG_CMD Program for creating and manipulating packages.
124 .if !target(__<bsd.own.mk>__)
127 .include <bsd.opts.mk> # options now here or src.opts.mk
129 .if !defined(_WITHOUT_SRCCONF)
131 .if ${MK_CTF} != "no"
132 CTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
133 .elif defined(.PARSEDIR) || (defined(MAKE_VERSION) && ${MAKE_VERSION} >= 5201111300)
139 .endif # !_WITHOUT_SRCCONF
147 KMODDIR?= /boot/modules
150 KMODMODE?= ${BINMODE}
156 # Use make.conf / environment LIBDIR as default if set...
157 .if !empty(_PREMK_LIBDIR)
158 LIBDIR_BASE?= ${_PREMK_LIBDIR}
160 # otherwise use our expected default value.
161 LIBDIR_BASE?= /usr/lib
162 LIBDIR?= ${LIBDIR_BASE}
163 LIBCOMPATDIR?= /usr/lib/compat
164 LIBDATADIR?= /usr/libdata
165 LIBEXECDIR?= /usr/libexec
166 LINTLIBDIR?= /usr/libdata/lint
170 LIBMODE?= ${NOBINMODE}
172 COVERAGEDIR?= /usr/lib/cov
174 DEBUGDIR?= /usr/lib/debug
175 DEBUGMODE?= ${NOBINMODE}
179 SHAREDIR?= /usr/share
182 SHAREMODE?= ${NOBINMODE}
189 MANDIR?= ${SHAREDIR}/man/man
192 MANMODE?= ${NOBINMODE}
194 DOCDIR?= ${SHAREDIR}/doc
197 DOCMODE?= ${NOBINMODE}
199 INFODIR?= ${SHAREDIR}/info
200 INFOOWN?= ${SHAREOWN}
201 INFOGRP?= ${SHAREGRP}
202 INFOMODE?= ${NOBINMODE}
204 NLSDIR?= ${SHAREDIR}/nls
207 NLSMODE?= ${NOBINMODE}
209 INCLUDEDIR?= /usr/include
212 # install(1) parameters.
218 INSTALL_LINK?= ${INSTALL} ${HRDLINK}
219 INSTALL_SYMLINK?= ${INSTALL} ${SYMLINK}
220 INSTALL_RSYMLINK?= ${INSTALL} ${RSYMLINK}
223 .if !defined(DEBUG_FLAGS)
227 COMPRESS_CMD?= gzip -cn
230 # Set XZ_THREADS to 1 to disable multi-threading.
233 .if !empty(XZ_THREADS)
234 XZ_CMD?= xz -T ${XZ_THREADS}
239 .if !defined(SVNVERSION_CMD) && empty(SVNVERSION_CMD)
240 . for _D in ${PATH:S,:, ,g}
241 . if exists(${_D}/svnversion)
242 SVNVERSION_CMD?=${_D}/svnversion
244 . if exists(${_D}/svnliteversion)
245 SVNVERSION_CMD?=${_D}/svnliteversion
252 # Pointer to the top directory into which tests are installed. Should not be
253 # overriden by Makefiles, but the user may choose to set this in src.conf(5).
254 TESTSBASE?= /usr/tests
258 # Compat for the moment -- old bsd.own.mk only included this when _WITHOUT_SRCCONF
259 # wasn't defined. bsd.ports.mk and friends depend on this behavior. Remove in 12.
260 .if !defined(_WITHOUT_SRCCONF)
261 .include <bsd.compiler.mk>
262 .endif # !_WITHOUT_SRCCONF
264 .endif # !target(__<bsd.own.mk>__)