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 # LINTLIBDIR Base path for lint libraries. [/usr/libdata/lint]
35 # SHLIBDIR Base path for shared libraries. [${LIBDIR}]
37 # LIBOWN Library owner. [${BINOWN}]
39 # LIBGRP Library group. [${BINGRP}]
41 # LIBMODE Library mode. [${NOBINMODE}]
44 # KMODDIR Base path for loadable kernel modules
45 # (see kld(4)). [/boot/kernel]
47 # KMODOWN KLD owner. [${BINOWN}]
49 # KMODGRP KLD group. [${BINGRP}]
51 # KMODMODE KLD mode. [${BINMODE}]
54 # SHAREDIR Base path for architecture-independent ascii
55 # text files. [/usr/share]
57 # SHAREOWN ASCII text file owner. [root]
59 # SHAREGRP ASCII text file group. [wheel]
61 # SHAREMODE ASCII text file mode. [${NOBINMODE}]
64 # DOCDIR Base path for system documentation (e.g. PSD, USD,
65 # handbook, FAQ etc.). [${SHAREDIR}/doc]
67 # DOCOWN Documentation owner. [${SHAREOWN}]
69 # DOCGRP Documentation group. [${SHAREGRP}]
71 # DOCMODE Documentation mode. [${NOBINMODE}]
74 # INFODIR Base path for GNU's hypertext system
75 # called Info (see info(1)). [${SHAREDIR}/info]
77 # INFOOWN Info owner. [${SHAREOWN}]
79 # INFOGRP Info group. [${SHAREGRP}]
81 # INFOMODE Info mode. [${NOBINMODE}]
84 # MANDIR Base path for manual installation. [${SHAREDIR}/man/man]
86 # MANOWN Manual owner. [${SHAREOWN}]
88 # MANGRP Manual group. [${SHAREGRP}]
90 # MANMODE Manual mode. [${NOBINMODE}]
93 # NLSDIR Base path for National Language Support files
94 # installation. [${SHAREDIR}/nls]
96 # NLSOWN National Language Support files owner. [${SHAREOWN}]
98 # NLSGRP National Language Support files group. [${SHAREGRP}]
100 # NLSMODE National Language Support files mode. [${NOBINMODE}]
102 # INCLUDEDIR Base path for standard C include files [/usr/include]
104 .if !target(__<bsd.own.mk>__)
107 .if !defined(_WITHOUT_SRCCONF)
108 SRCCONF?= /etc/src.conf
109 .if exists(${SRCCONF})
110 .include "${SRCCONF}"
120 .if defined(MODULES_WITH_WORLD)
121 KMODDIR?= /boot/modules
123 KMODDIR?= /boot/kernel
127 KMODMODE?= ${BINMODE}
130 LIBCOMPATDIR?= /usr/lib/compat
131 LIBDATADIR?= /usr/libdata
132 LINTLIBDIR?= /usr/libdata/lint
136 LIBMODE?= ${NOBINMODE}
140 SHAREDIR?= /usr/share
143 SHAREMODE?= ${NOBINMODE}
145 MANDIR?= ${SHAREDIR}/man/man
148 MANMODE?= ${NOBINMODE}
150 DOCDIR?= ${SHAREDIR}/doc
153 DOCMODE?= ${NOBINMODE}
155 INFODIR?= ${SHAREDIR}/info
156 INFOOWN?= ${SHAREOWN}
157 INFOGRP?= ${SHAREGRP}
158 INFOMODE?= ${NOBINMODE}
160 NLSDIR?= ${SHAREDIR}/nls
163 NLSMODE?= ${NOBINMODE}
165 INCLUDEDIR?= /usr/include
168 .if !defined(DEBUG_FLAGS)
172 COMPRESS_CMD?= gzip -cn
175 .if !defined(_WITHOUT_SRCCONF)
177 # Define MK_* variables (which are either "yes" or "no") for users
178 # to set via WITH_*/WITHOUT_* in /etc/src.conf and override in the
179 # make(1) environment.
180 # These should be tested with `== "no"' or `!= "no"' in makefiles.
181 # The NO_* variables should only be set by makefiles.
185 # Supported NO_* options (if defined, MK_* will be forced to "no",
186 # regardless of user's setting).
191 .if defined(NO_${var})
197 # Compat NO_* options (same as above, except their use is deprecated).
199 .if !defined(BURN_BRIDGES)
265 .if defined(NO_${var})
266 #.warning NO_${var} is deprecated in favour of WITHOUT_${var}=
270 .endif # !defined(BURN_BRIDGES)
273 # Older-style variables that enabled behaviour when set.
275 .if defined(YES_HESIOD)
278 .if defined(MAKE_IDEA)
283 # MK_* options which default to "yes".
356 .if defined(WITH_${var}) && defined(WITHOUT_${var})
357 .error WITH_${var} and WITHOUT_${var} can't both be set.
359 .if defined(MK_${var})
360 .error MK_${var} can't be set by a user.
362 .if defined(WITHOUT_${var})
370 # MK_* options which default to "no".
376 .if defined(WITH_${var}) && defined(WITHOUT_${var})
377 .error WITH_${var} and WITHOUT_${var} can't both be set.
379 .if defined(MK_${var})
380 .error MK_${var} can't be set by a user.
382 .if defined(WITH_${var})
390 # Force some options off if their dependencies are off.
392 .if ${MK_BIND} == "no"
396 MK_BIND_LIBS_LWRES:= no
402 .if ${MK_BIND_MTREE} == "no"
406 .if ${MK_CRYPT} == "no"
412 .if ${MK_IPX} == "no"
416 .if ${MK_OPENSSL} == "no"
425 .if ${MK_TOOLCHAIN} == "no"
430 # Set defaults for the MK_*_SUPPORT variables.
434 # MK_*_SUPPORT options which default to "yes" unless their corresponding
435 # MK_* variable is set to "no".
444 .if defined(WITH_${var}_SUPPORT) && defined(WITHOUT_${var}_SUPPORT)
445 .error WITH_${var}_SUPPORT and WITHOUT_${var}_SUPPORT can't both be set.
447 .if defined(MK_${var}_SUPPORT)
448 .error MK_${var}_SUPPORT can't be set by a user.
450 .if defined(WITHOUT_${var}_SUPPORT) || ${MK_${var}} == "no"
451 MK_${var}_SUPPORT:= no
453 MK_${var}_SUPPORT:= yes
456 .endif # !_WITHOUT_SRCCONF
458 .endif # !target(__<bsd.own.mk>__)