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 SRCCONF?= /etc/src.conf
108 .if exists(${SRCCONF})
109 .include "${SRCCONF}"
118 .if defined(MODULES_WITH_WORLD)
119 KMODDIR?= /boot/modules
121 KMODDIR?= /boot/kernel
125 KMODMODE?= ${BINMODE}
128 LIBCOMPATDIR?= /usr/lib/compat
129 LIBDATADIR?= /usr/libdata
130 LINTLIBDIR?= /usr/libdata/lint
134 LIBMODE?= ${NOBINMODE}
138 SHAREDIR?= /usr/share
141 SHAREMODE?= ${NOBINMODE}
143 MANDIR?= ${SHAREDIR}/man/man
146 MANMODE?= ${NOBINMODE}
148 DOCDIR?= ${SHAREDIR}/doc
151 DOCMODE?= ${NOBINMODE}
153 INFODIR?= ${SHAREDIR}/info
154 INFOOWN?= ${SHAREOWN}
155 INFOGRP?= ${SHAREGRP}
156 INFOMODE?= ${NOBINMODE}
158 NLSDIR?= ${SHAREDIR}/nls
161 NLSMODE?= ${NOBINMODE}
163 INCLUDEDIR?= /usr/include
166 .if !defined(DEBUG_FLAGS)
170 COMPRESS_CMD?= gzip -cn
174 # Define MK_* variables (which are either "yes" or "no") for users
175 # to set via WITH_*/WITHOUT_* in /etc/src.conf and override in the
176 # make(1) environment.
177 # These should be tested with `== "no"' or `!= "no"' in makefiles.
178 # The NO_* variables should only be set by makefiles.
182 # Supported NO_* options (if defined, MK_* will be forced to "no",
183 # regardless of user's setting).
188 .if defined(NO_${var})
194 # Compat NO_* options (same as above, except their use is deprecated).
196 .if !defined(BURN_BRIDGES)
263 .if defined(NO_${var})
264 #.warning NO_${var} is deprecated in favour of WITHOUT_${var}=
268 .endif # !defined(BURN_BRIDGES)
271 # Older-style variables that enabled behaviour when set.
273 .if defined(YES_HESIOD)
276 .if defined(MAKE_IDEA)
281 # MK_* options which default to "yes".
352 .if defined(WITH_${var}) && defined(WITHOUT_${var})
353 .error WITH_${var} and WITHOUT_${var} can't both be set.
355 .if defined(MK_${var})
356 .error MK_${var} can't be set by a user.
358 .if defined(WITHOUT_${var})
366 # MK_* options which default to "no".
372 .if defined(WITH_${var}) && defined(WITHOUT_${var})
373 .error WITH_${var} and WITHOUT_${var} can't both be set.
375 .if defined(MK_${var})
376 .error MK_${var} can't be set by a user.
378 .if defined(WITH_${var})
386 # Force some options off if their dependencies are off.
388 .if ${MK_BIND} == "no"
392 MK_BIND_LIBS_LWRES:= no
398 .if ${MK_BIND_MTREE} == "no"
402 .if ${MK_CRYPT} == "no"
408 .if ${MK_IPX} == "no"
412 .if ${MK_OPENSSL} == "no"
421 .if ${MK_TOOLCHAIN} == "no"
426 # Set defaults for the MK_*_SUPPORT variables.
430 # MK_*_SUPPORT options which default to "yes" unless their corresponding
431 # MK_* variable is set to "no".
439 .if defined(WITH_${var}_SUPPORT) && defined(WITHOUT_${var}_SUPPORT)
440 .error WITH_${var}_SUPPORT and WITHOUT_${var}_SUPPORT can't both be set.
442 .if defined(MK_${var}_SUPPORT)
443 .error MK_${var}_SUPPORT can't be set by a user.
445 .if defined(WITHOUT_${var}_SUPPORT) || ${MK_${var}} == "no"
446 MK_${var}_SUPPORT:= no
448 MK_${var}_SUPPORT:= yes
452 .endif # !target(__<bsd.own.mk>__)