3 # The include file <src.opts.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 # LIBPRIVATEDIR Base path for private libraries. [/usr/lib/private]
33 # LIBDATADIR Base path for misc. utility data files. [/usr/libdata]
35 # LIBEXECDIR Base path for system daemons and utilities. [/usr/libexec]
37 # LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint]
39 # SHLIBDIR Base path for shared libraries. [${LIBDIR}]
41 # LIBOWN Library owner. [${BINOWN}]
43 # LIBGRP Library group. [${BINGRP}]
45 # LIBMODE Library mode. [${NOBINMODE}]
48 # DEBUGDIR Base path for standalone debug files. [/usr/lib/debug]
50 # DEBUGMODE Mode for debug files. [${NOBINMODE}]
53 # KMODDIR Base path for loadable kernel modules
54 # (see kld(4)). [/boot/kernel]
56 # KMODOWN Kernel and KLD owner. [${BINOWN}]
58 # KMODGRP Kernel and KLD group. [${BINGRP}]
60 # KMODMODE KLD mode. [${BINMODE}]
63 # SHAREDIR Base path for architecture-independent ascii
64 # text files. [/usr/share]
66 # SHAREOWN ASCII text file owner. [root]
68 # SHAREGRP ASCII text file group. [wheel]
70 # SHAREMODE ASCII text file mode. [${NOBINMODE}]
73 # CONFDIR Base path for configuration files. [/etc]
75 # CONFOWN Configuration file owner. [root]
77 # CONFGRP Configuration file group. [wheel]
79 # CONFMODE Configuration file mode. [644]
82 # DOCDIR Base path for system documentation (e.g. PSD, USD,
83 # handbook, FAQ etc.). [${SHAREDIR}/doc]
85 # DOCOWN Documentation owner. [${SHAREOWN}]
87 # DOCGRP Documentation group. [${SHAREGRP}]
89 # DOCMODE Documentation mode. [${NOBINMODE}]
92 # INFODIR Base path for GNU's hypertext system
93 # called Info (see info(1)). [${SHAREDIR}/info]
95 # INFOOWN Info owner. [${SHAREOWN}]
97 # INFOGRP Info group. [${SHAREGRP}]
99 # INFOMODE Info mode. [${NOBINMODE}]
102 # MANDIR Base path for manual installation. [${SHAREDIR}/man/man]
104 # MANOWN Manual owner. [${SHAREOWN}]
106 # MANGRP Manual group. [${SHAREGRP}]
108 # MANMODE Manual mode. [${NOBINMODE}]
111 # NLSDIR Base path for National Language Support files
112 # installation. [${SHAREDIR}/nls]
114 # NLSOWN National Language Support files owner. [${SHAREOWN}]
116 # NLSGRP National Language Support files group. [${SHAREGRP}]
118 # NLSMODE National Language Support files mode. [${NOBINMODE}]
120 # INCLUDEDIR Base path for standard C include files [/usr/include]
122 .if !target(__<bsd.own.mk>__)
125 .include <bsd.opts.mk> # options now here or src.opts.mk
127 .if !defined(_WITHOUT_SRCCONF)
129 .if ${MK_CTF} != "no"
130 CTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
131 .elif defined(.PARSEDIR) || (defined(MAKE_VERSION) && ${MAKE_VERSION} >= 5201111300)
137 .if ${MK_INSTALL_AS_USER} != "no"
144 .for x in BIN CONF DOC INFO KMOD LIB MAN NLS SHARE
151 .endif # !_WITHOUT_SRCCONF
159 .if defined(MODULES_WITH_WORLD)
160 KMODDIR?= /boot/modules
162 KMODDIR?= /boot/kernel
166 KMODMODE?= ${BINMODE}
169 LIBCOMPATDIR?= /usr/lib/compat
170 LIBPRIVATEDIR?= /usr/lib/private
171 LIBDATADIR?= /usr/libdata
172 LIBEXECDIR?= /usr/libexec
173 LINTLIBDIR?= /usr/libdata/lint
177 LIBMODE?= ${NOBINMODE}
179 DEBUGDIR?= /usr/lib/debug
180 DEBUGMODE?= ${NOBINMODE}
184 SHAREDIR?= /usr/share
187 SHAREMODE?= ${NOBINMODE}
194 MANDIR?= ${SHAREDIR}/man/man
197 MANMODE?= ${NOBINMODE}
199 DOCDIR?= ${SHAREDIR}/doc
202 DOCMODE?= ${NOBINMODE}
204 INFODIR?= ${SHAREDIR}/info
205 INFOOWN?= ${SHAREOWN}
206 INFOGRP?= ${SHAREGRP}
207 INFOMODE?= ${NOBINMODE}
209 NLSDIR?= ${SHAREDIR}/nls
212 NLSMODE?= ${NOBINMODE}
214 INCLUDEDIR?= /usr/include
217 # install(1) parameters.
222 INSTALL_LINK?= ${INSTALL} ${HRDLINK}
223 INSTALL_SYMLINK?= ${INSTALL} ${SYMLINK}
226 .if !defined(DEBUG_FLAGS)
230 COMPRESS_CMD?= gzip -cn
233 # Pointer to the top directory into which tests are installed. Should not be
234 # overriden by Makefiles, but the user may choose to set this in src.conf(5).
235 TESTSBASE?= /usr/tests
237 # Compat for the moment
238 .include <bsd.compiler.mk>
240 .endif # !target(__<bsd.own.mk>__)