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}]
46 # DEBUGDIR Base path for standalone debug files. [/usr/lib/debug]
48 # DEBUGMODE Mode for debug files. [${NOBINMODE}]
51 # KMODDIR Base path for loadable kernel modules
52 # (see kld(4)). [/boot/module]
54 # KMODOWN Kernel and KLD owner. [${BINOWN}]
56 # KMODGRP Kernel and KLD group. [${BINGRP}]
58 # KMODMODE KLD mode. [${BINMODE}]
61 # SHAREDIR Base path for architecture-independent ascii
62 # text files. [/usr/share]
64 # SHAREOWN ASCII text file owner. [root]
66 # SHAREGRP ASCII text file group. [wheel]
68 # SHAREMODE ASCII text file mode. [${NOBINMODE}]
71 # CONFDIR Base path for configuration files. [/etc]
73 # CONFOWN Configuration file owner. [root]
75 # CONFGRP Configuration file group. [wheel]
77 # CONFMODE Configuration file mode. [644]
80 # DOCDIR Base path for system documentation (e.g. PSD, USD,
81 # handbook, FAQ etc.). [${SHAREDIR}/doc]
83 # DOCOWN Documentation owner. [${SHAREOWN}]
85 # DOCGRP Documentation group. [${SHAREGRP}]
87 # DOCMODE Documentation mode. [${NOBINMODE}]
90 # INFODIR Base path for GNU's hypertext system
91 # called Info (see info(1)). [${SHAREDIR}/info]
93 # INFOOWN Info owner. [${SHAREOWN}]
95 # INFOGRP Info group. [${SHAREGRP}]
97 # INFOMODE Info mode. [${NOBINMODE}]
100 # MANDIR Base path for manual installation. [${SHAREDIR}/man/man]
102 # MANOWN Manual owner. [${SHAREOWN}]
104 # MANGRP Manual group. [${SHAREGRP}]
106 # MANMODE Manual mode. [${NOBINMODE}]
109 # NLSDIR Base path for National Language Support files
110 # installation. [${SHAREDIR}/nls]
112 # NLSOWN National Language Support files owner. [${SHAREOWN}]
114 # NLSGRP National Language Support files group. [${SHAREGRP}]
116 # NLSMODE National Language Support files mode. [${NOBINMODE}]
118 # INCLUDEDIR Base path for standard C include files [/usr/include]
120 # PKG_CMD Program for creating and manipulating packages.
123 .if !target(__<bsd.own.mk>__)
126 .include <bsd.opts.mk> # options now here or src.opts.mk
128 .if !defined(_WITHOUT_SRCCONF)
130 .if ${MK_CTF} != "no"
131 CTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
132 .elif defined(.PARSEDIR) || (defined(MAKE_VERSION) && ${MAKE_VERSION} >= 5201111300)
138 .endif # !_WITHOUT_SRCCONF
146 KMODDIR?= /boot/modules
149 KMODMODE?= ${BINMODE}
155 # Use make.conf / environment LIBDIR as default if set...
156 .if !empty(_PREMK_LIBDIR)
157 LIBDIR_BASE?= ${_PREMK_LIBDIR}
159 # otherwise use our expected default value.
160 LIBDIR_BASE?= /usr/lib
161 LIBDIR?= ${LIBDIR_BASE}
162 LIBCOMPATDIR?= /usr/lib/compat
163 LIBDATADIR?= /usr/libdata
164 LIBEXECDIR?= /usr/libexec
165 LINTLIBDIR?= /usr/libdata/lint
169 LIBMODE?= ${NOBINMODE}
171 DEBUGDIR?= /usr/lib/debug
172 DEBUGMODE?= ${NOBINMODE}
176 SHAREDIR?= /usr/share
179 SHAREMODE?= ${NOBINMODE}
186 MANDIR?= ${SHAREDIR}/man/man
189 MANMODE?= ${NOBINMODE}
191 DOCDIR?= ${SHAREDIR}/doc
194 DOCMODE?= ${NOBINMODE}
196 INFODIR?= ${SHAREDIR}/info
197 INFOOWN?= ${SHAREOWN}
198 INFOGRP?= ${SHAREGRP}
199 INFOMODE?= ${NOBINMODE}
201 NLSDIR?= ${SHAREDIR}/nls
204 NLSMODE?= ${NOBINMODE}
206 INCLUDEDIR?= /usr/include
209 # install(1) parameters.
215 INSTALL_LINK?= ${INSTALL} ${HRDLINK}
216 INSTALL_SYMLINK?= ${INSTALL} ${SYMLINK}
217 INSTALL_RSYMLINK?= ${INSTALL} ${RSYMLINK}
220 .if !defined(DEBUG_FLAGS)
224 COMPRESS_CMD?= gzip -cn
227 # Set XZ_THREADS to 1 to disable multi-threading.
230 .if !empty(XZ_THREADS)
231 XZ_CMD?= xz -T ${XZ_THREADS}
238 # Pointer to the top directory into which tests are installed. Should not be
239 # overriden by Makefiles, but the user may choose to set this in src.conf(5).
240 TESTSBASE?= /usr/tests
244 # Compat for the moment -- old bsd.own.mk only included this when _WITHOUT_SRCCONF
245 # wasn't defined. bsd.ports.mk and friends depend on this behavior. Remove in 12.
246 .if !defined(_WITHOUT_SRCCONF)
247 .include <bsd.compiler.mk>
248 .endif # !_WITHOUT_SRCCONF
250 .endif # !target(__<bsd.own.mk>__)