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 # SHLIBDIR Base path for shared libraries. [${LIBDIR}]
37 # LIBOWN Library owner. [${BINOWN}]
39 # LIBGRP Library group. [${BINGRP}]
41 # LIBMODE Library mode. [${NOBINMODE}]
44 # DEBUGDIR Base path for standalone debug files. [/usr/lib/debug]
46 # DEBUGMODE Mode for debug files. [${NOBINMODE}]
49 # KMODDIR Base path for loadable kernel modules
50 # (see kld(4)). [/boot/module]
52 # KMODOWN Kernel and KLD owner. [${BINOWN}]
54 # KMODGRP Kernel and KLD group. [${BINGRP}]
56 # KMODMODE KLD mode. [${BINMODE}]
59 # SHAREDIR Base path for architecture-independent ascii
60 # text files. [/usr/share]
62 # SHAREOWN ASCII text file owner. [root]
64 # SHAREGRP ASCII text file group. [wheel]
66 # SHAREMODE ASCII text file mode. [${NOBINMODE}]
69 # CONFDIR Base path for configuration files. [/etc]
71 # CONFOWN Configuration file owner. [root]
73 # CONFGRP Configuration file group. [wheel]
75 # CONFMODE Configuration file mode. [644]
78 # DIROWN Directory owner. [root]
80 # DIRGRP Directory group. [wheel]
82 # DIRMODE Directory mode. [755]
85 # DOCDIR Base path for system documentation (e.g. PSD, USD,
86 # handbook, FAQ etc.). [${SHAREDIR}/doc]
88 # DOCOWN Documentation owner. [${SHAREOWN}]
90 # DOCGRP Documentation group. [${SHAREGRP}]
92 # DOCMODE Documentation mode. [${NOBINMODE}]
95 # INFODIR Base path for GNU's hypertext system
96 # called Info (see info(1)). [${SHAREDIR}/info]
98 # INFOOWN Info owner. [${SHAREOWN}]
100 # INFOGRP Info group. [${SHAREGRP}]
102 # INFOMODE Info mode. [${NOBINMODE}]
105 # MANDIR Base path for manual installation. [${SHAREDIR}/man/man]
107 # MANOWN Manual owner. [${SHAREOWN}]
109 # MANGRP Manual group. [${SHAREGRP}]
111 # MANMODE Manual mode. [${NOBINMODE}]
114 # NLSDIR Base path for National Language Support files
115 # installation. [${SHAREDIR}/nls]
117 # NLSOWN National Language Support files owner. [${SHAREOWN}]
119 # NLSGRP National Language Support files group. [${SHAREGRP}]
121 # NLSMODE National Language Support files mode. [${NOBINMODE}]
123 # INCLUDEDIR Base path for standard C include files [/usr/include]
125 # PKG_CMD Program for creating and manipulating packages.
128 .if !target(__<bsd.own.mk>__)
131 .include <bsd.opts.mk> # options now here or src.opts.mk
133 .if !defined(_WITHOUT_SRCCONF)
135 .if ${MK_CTF} != "no"
136 CTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
137 .elif defined(.PARSEDIR) || (defined(MAKE_VERSION) && ${MAKE_VERSION} >= 5201111300)
143 .endif # !_WITHOUT_SRCCONF
151 KMODDIR?= /boot/modules
154 KMODMODE?= ${BINMODE}
156 DTBODIR?= /boot/dtb/overlays
161 # Use make.conf / environment LIBDIR as default if set...
162 .if !empty(_PREMK_LIBDIR)
163 LIBDIR_BASE?= ${_PREMK_LIBDIR}
165 # otherwise use our expected default value.
166 LIBDIR_BASE?= /usr/lib
167 LIBDIR?= ${LIBDIR_BASE}
168 LIBCOMPATDIR?= /usr/lib/compat
169 LIBDATADIR?= /usr/libdata
170 LIBEXECDIR?= /usr/libexec
174 LIBMODE?= ${NOBINMODE}
176 DEBUGDIR?= /usr/lib/debug
177 DEBUGMODE?= ${NOBINMODE}
181 SHAREDIR?= /usr/share
184 SHAREMODE?= ${NOBINMODE}
191 MANDIR?= ${SHAREDIR}/man/man
194 MANMODE?= ${NOBINMODE}
200 DOCDIR?= ${SHAREDIR}/doc
203 DOCMODE?= ${NOBINMODE}
205 INFODIR?= ${SHAREDIR}/info
206 INFOOWN?= ${SHAREOWN}
207 INFOGRP?= ${SHAREGRP}
208 INFOMODE?= ${NOBINMODE}
210 NLSDIR?= ${SHAREDIR}/nls
213 NLSMODE?= ${NOBINMODE}
215 INCLUDEDIR?= /usr/include
218 # install(1) parameters.
224 INSTALL_LINK?= ${INSTALL} ${HRDLINK}
225 INSTALL_SYMLINK?= ${INSTALL} ${SYMLINK}
226 INSTALL_RSYMLINK?= ${INSTALL} ${RSYMLINK}
229 .if !defined(DEBUG_FLAGS)
233 COMPRESS_CMD?= gzip -cn
236 # Set XZ_THREADS to 1 to disable multi-threading.
239 .if !empty(XZ_THREADS)
240 XZ_CMD?= xz -T ${XZ_THREADS}
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).
249 TESTSBASE?= /usr/tests
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
259 .endif # !target(__<bsd.own.mk>__)