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}
132 .elif defined(.PARSEDIR) || (defined(MAKE_VERSION) && ${MAKE_VERSION} >= 5201111300)
138 .if ${MK_INSTALL_AS_USER} != "no"
145 .for x in BIN CONF DOC INFO KMOD LIB MAN NLS SHARE
152 .endif # !_WITHOUT_SRCCONF
160 .if defined(MODULES_WITH_WORLD)
161 KMODDIR?= /boot/modules
163 KMODDIR?= /boot/kernel
167 KMODMODE?= ${BINMODE}
170 LIBCOMPATDIR?= /usr/lib/compat
171 LIBPRIVATEDIR?= /usr/lib/private
172 LIBDATADIR?= /usr/libdata
173 LIBEXECDIR?= /usr/libexec
174 LINTLIBDIR?= /usr/libdata/lint
178 LIBMODE?= ${NOBINMODE}
180 DEBUGDIR?= /usr/lib/debug
181 DEBUGMODE?= ${NOBINMODE}
185 SHAREDIR?= /usr/share
188 SHAREMODE?= ${NOBINMODE}
195 MANDIR?= ${SHAREDIR}/man/man
198 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.
223 INSTALL_LINK?= ${INSTALL} ${HRDLINK}
224 INSTALL_SYMLINK?= ${INSTALL} ${SYMLINK}
227 .if !defined(DEBUG_FLAGS)
231 COMPRESS_CMD?= gzip -cn
234 # Pointer to the top directory into which tests are installed. Should not be
235 # overriden by Makefiles, but the user may choose to set this in src.conf(5).
236 TESTSBASE?= /usr/tests
238 # Compat for the moment
239 .include <bsd.compiler.mk>
241 .endif # !target(__<bsd.own.mk>__)