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 Kernel and KLD owner. [${BINOWN}]
49 # KMODGRP Kernel and 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 # CONFDIR Base path for configuration files. [/etc]
66 # CONFOWN Configuration file owner. [root]
68 # CONFGRP Configuration file group. [wheel]
70 # CONFMODE Configuration file mode. [644]
73 # DOCDIR Base path for system documentation (e.g. PSD, USD,
74 # handbook, FAQ etc.). [${SHAREDIR}/doc]
76 # DOCOWN Documentation owner. [${SHAREOWN}]
78 # DOCGRP Documentation group. [${SHAREGRP}]
80 # DOCMODE Documentation mode. [${NOBINMODE}]
83 # INFODIR Base path for GNU's hypertext system
84 # called Info (see info(1)). [${SHAREDIR}/info]
86 # INFOOWN Info owner. [${SHAREOWN}]
88 # INFOGRP Info group. [${SHAREGRP}]
90 # INFOMODE Info mode. [${NOBINMODE}]
93 # MANDIR Base path for manual installation. [${SHAREDIR}/man/man]
95 # MANOWN Manual owner. [${SHAREOWN}]
97 # MANGRP Manual group. [${SHAREGRP}]
99 # MANMODE Manual mode. [${NOBINMODE}]
102 # NLSDIR Base path for National Language Support files
103 # installation. [${SHAREDIR}/nls]
105 # NLSOWN National Language Support files owner. [${SHAREOWN}]
107 # NLSGRP National Language Support files group. [${SHAREGRP}]
109 # NLSMODE National Language Support files mode. [${NOBINMODE}]
111 # INCLUDEDIR Base path for standard C include files [/usr/include]
113 .if !target(__<bsd.own.mk>__)
116 .if !defined(_WITHOUT_SRCCONF)
117 SRCCONF?= /etc/src.conf
118 .if exists(${SRCCONF})
119 .include "${SRCCONF}"
129 .if defined(MODULES_WITH_WORLD)
130 KMODDIR?= /boot/modules
132 KMODDIR?= /boot/kernel
136 KMODMODE?= ${BINMODE}
139 LIBCOMPATDIR?= /usr/lib/compat
140 LIBDATADIR?= /usr/libdata
141 LINTLIBDIR?= /usr/libdata/lint
145 LIBMODE?= ${NOBINMODE}
149 SHAREDIR?= /usr/share
152 SHAREMODE?= ${NOBINMODE}
159 MANDIR?= ${SHAREDIR}/man/man
162 MANMODE?= ${NOBINMODE}
164 DOCDIR?= ${SHAREDIR}/doc
167 DOCMODE?= ${NOBINMODE}
169 INFODIR?= ${SHAREDIR}/info
170 INFOOWN?= ${SHAREOWN}
171 INFOGRP?= ${SHAREGRP}
172 INFOMODE?= ${NOBINMODE}
174 NLSDIR?= ${SHAREDIR}/nls
177 NLSMODE?= ${NOBINMODE}
179 INCLUDEDIR?= /usr/include
182 .if !defined(DEBUG_FLAGS)
186 COMPRESS_CMD?= gzip -cn
189 .if !defined(_WITHOUT_SRCCONF)
191 # Define MK_* variables (which are either "yes" or "no") for users
192 # to set via WITH_*/WITHOUT_* in /etc/src.conf and override in the
193 # make(1) environment.
194 # These should be tested with `== "no"' or `!= "no"' in makefiles.
195 # The NO_* variables should only be set by makefiles.
199 # Supported NO_* options (if defined, MK_* will be forced to "no",
200 # regardless of user's setting).
206 .if defined(NO_${var})
212 # Compat NO_* options (same as above, except their use is deprecated).
214 .if !defined(BURN_BRIDGES)
278 .if defined(NO_${var})
279 #.warning NO_${var} is deprecated in favour of WITHOUT_${var}=
283 .endif # !defined(BURN_BRIDGES)
286 # Older-style variables that enabled behaviour when set.
288 .if defined(YES_HESIOD)
291 .if defined(MAKE_IDEA)
296 # MK_* options which default to "yes".
400 WPA_SUPPLICANT_EAPOL \
403 .if defined(WITH_${var}) && defined(WITHOUT_${var})
404 .error WITH_${var} and WITHOUT_${var} can't both be set.
406 .if defined(MK_${var})
407 .error MK_${var} can't be set by a user.
409 .if defined(WITHOUT_${var})
417 # MK_* options which default to "no".
427 .if defined(WITH_${var}) && defined(WITHOUT_${var})
428 .error WITH_${var} and WITHOUT_${var} can't both be set.
430 .if defined(MK_${var})
431 .error MK_${var} can't be set by a user.
433 .if defined(WITH_${var})
441 # Force some options off if their dependencies are off.
442 # Order is somewhat important.
444 .if ${MK_LIBPTHREAD} == "no"
448 .if ${MK_LIBTHR} == "no"
452 .if ${MK_BIND} == "no"
456 MK_BIND_LIBS_LWRES:= no
462 .if ${MK_BIND_MTREE} == "no"
466 .if ${MK_CDDL} == "no"
470 .if ${MK_CRYPT} == "no"
476 .if ${MK_IPX} == "no"
480 .if ${MK_MAIL} == "no"
485 .if ${MK_NETGRAPH} == "no"
490 .if ${MK_OPENSSL} == "no"
499 .if ${MK_TEXTPROC} == "no"
503 .if ${MK_TOOLCHAIN} == "no"
508 # Set defaults for the MK_*_SUPPORT variables.
512 # MK_*_SUPPORT options which default to "yes" unless their corresponding
513 # MK_* variable is set to "no".
526 .if defined(WITH_${var}_SUPPORT) && defined(WITHOUT_${var}_SUPPORT)
527 .error WITH_${var}_SUPPORT and WITHOUT_${var}_SUPPORT can't both be set.
529 .if defined(MK_${var}_SUPPORT)
530 .error MK_${var}_SUPPORT can't be set by a user.
532 .if defined(WITHOUT_${var}_SUPPORT) || ${MK_${var}} == "no"
533 MK_${var}_SUPPORT:= no
535 MK_${var}_SUPPORT:= yes
540 # MK_* options whose default value depends on another option.
545 .if defined(WITH_${vv:H}) && defined(WITHOUT_${vv:H})
546 .error WITH_${vv:H} and WITHOUT_${vv:H} can't both be set.
548 .if defined(MK_${vv:H})
549 .error MK_${vv:H} can't be set by a user.
551 .if defined(WITH_${vv:H})
553 .elif defined(WITHOUT_${vv:H})
556 MK_${vv:H}:= ${MK_${vv:T}}
560 .endif # !_WITHOUT_SRCCONF
562 .endif # !target(__<bsd.own.mk>__)