]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/mk/bsd.own.mk
MFV r331695, 331700: 9166 zfs storage pool checkpoint
[FreeBSD/FreeBSD.git] / share / mk / bsd.own.mk
1 # $FreeBSD$
2 #
3 # The include file <bsd.own.mk> set common variables for owner,
4 # group, mode, and directories. Defaults are in brackets.
5 #
6 #
7 # +++ variables +++
8 #
9 # DESTDIR       Change the tree where the file gets installed. [not set]
10 #
11 # DISTDIR       Change the tree where the file for a distribution
12 #               gets installed (see /usr/src/release/Makefile). [not set]
13 #
14 # COMPRESS_CMD  Program to compress documents.
15 #               Output is to stdout. [gzip -cn]
16 #
17 # COMPRESS_EXT  File name extension of ${COMPRESS_CMD} command. [.gz]
18 #
19 # BINOWN        Binary owner. [root]
20 #
21 # BINGRP        Binary group. [wheel]
22 #
23 # BINMODE       Binary mode. [555]
24 #
25 # NOBINMODE     Mode for non-executable files. [444]
26 #
27 # LIBDIR        Base path for libraries. [/usr/lib]
28 #
29 # LIBCOMPATDIR  Base path for compat libraries. [/usr/lib/compat]
30 #
31 # LIBDATADIR    Base path for misc. utility data files. [/usr/libdata]
32 #
33 # LIBEXECDIR    Base path for system daemons and utilities. [/usr/libexec]
34 #
35 # SHLIBDIR      Base path for shared libraries. [${LIBDIR}]
36 #
37 # LIBOWN        Library owner. [${BINOWN}]
38 #
39 # LIBGRP        Library group. [${BINGRP}]
40 #
41 # LIBMODE       Library mode. [${NOBINMODE}]
42 #
43 #
44 # DEBUGDIR      Base path for standalone debug files. [/usr/lib/debug]
45 #
46 # DEBUGMODE     Mode for debug files. [${NOBINMODE}]
47 #
48 #
49 # KMODDIR       Base path for loadable kernel modules
50 #               (see kld(4)). [/boot/module]
51 #
52 # KMODOWN       Kernel and KLD owner. [${BINOWN}]
53 #
54 # KMODGRP       Kernel and KLD group. [${BINGRP}]
55 #
56 # KMODMODE      KLD mode. [${BINMODE}]
57 #
58 #
59 # SHAREDIR      Base path for architecture-independent ascii
60 #               text files. [/usr/share]
61 #
62 # SHAREOWN      ASCII text file owner. [root]
63 #
64 # SHAREGRP      ASCII text file group. [wheel]
65 #
66 # SHAREMODE     ASCII text file mode. [${NOBINMODE}]
67 #
68 #
69 # CONFDIR       Base path for configuration files. [/etc]
70 #
71 # CONFOWN       Configuration file owner. [root]
72 #
73 # CONFGRP       Configuration file group. [wheel]
74 #
75 # CONFMODE      Configuration file mode. [644]
76 #
77 #
78 # DOCDIR        Base path for system documentation (e.g. PSD, USD,
79 #               handbook, FAQ etc.). [${SHAREDIR}/doc]
80 #
81 # DOCOWN        Documentation owner. [${SHAREOWN}]
82 #
83 # DOCGRP        Documentation group. [${SHAREGRP}]
84 #
85 # DOCMODE       Documentation mode. [${NOBINMODE}]
86 #
87 #
88 # INFODIR       Base path for GNU's hypertext system
89 #               called Info (see info(1)). [${SHAREDIR}/info]
90 #
91 # INFOOWN       Info owner. [${SHAREOWN}]
92 #
93 # INFOGRP       Info group. [${SHAREGRP}]
94 #
95 # INFOMODE      Info mode. [${NOBINMODE}]
96 #
97 #
98 # MANDIR        Base path for manual installation. [${SHAREDIR}/man/man]
99 #
100 # MANOWN        Manual owner. [${SHAREOWN}]
101 #
102 # MANGRP        Manual group. [${SHAREGRP}]
103 #
104 # MANMODE       Manual mode. [${NOBINMODE}]
105 #
106 #
107 # NLSDIR        Base path for National Language Support files
108 #               installation. [${SHAREDIR}/nls]
109 #
110 # NLSOWN        National Language Support files owner. [${SHAREOWN}]
111 #
112 # NLSGRP        National Language Support files group. [${SHAREGRP}]
113 #
114 # NLSMODE       National Language Support files mode. [${NOBINMODE}]
115 #
116 # INCLUDEDIR    Base path for standard C include files [/usr/include]
117 #
118 # PKG_CMD       Program for creating and manipulating packages.
119 #               [pkg] 
120
121 .if !target(__<bsd.own.mk>__)
122 __<bsd.own.mk>__:
123
124 .include <bsd.opts.mk>          # options now here or src.opts.mk
125
126 .if !defined(_WITHOUT_SRCCONF)
127
128 .if ${MK_CTF} != "no"
129 CTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
130 .elif defined(.PARSEDIR) || (defined(MAKE_VERSION) && ${MAKE_VERSION} >= 5201111300)
131 CTFCONVERT_CMD=
132 .else
133 CTFCONVERT_CMD= @:
134 .endif 
135
136 .endif # !_WITHOUT_SRCCONF
137
138 # Binaries
139 BINOWN?=        root
140 BINGRP?=        wheel
141 BINMODE?=       555
142 NOBINMODE?=     444
143
144 KMODDIR?=       /boot/modules
145 KMODOWN?=       ${BINOWN}
146 KMODGRP?=       ${BINGRP}
147 KMODMODE?=      ${BINMODE}
148 DTBDIR?=        /boot/dtb
149 DTBODIR?=       /boot/dtb/overlays
150 DTBOWN?=        root
151 DTBGRP?=        wheel
152 DTBMODE?=       444
153
154 # Use make.conf / environment LIBDIR as default if set...
155 .if !empty(_PREMK_LIBDIR)
156 LIBDIR_BASE?=   ${_PREMK_LIBDIR}
157 .endif
158 # otherwise use our expected default value.
159 LIBDIR_BASE?=   /usr/lib
160 LIBDIR?=        ${LIBDIR_BASE}
161 LIBCOMPATDIR?=  /usr/lib/compat
162 LIBDATADIR?=    /usr/libdata
163 LIBEXECDIR?=    /usr/libexec
164 SHLIBDIR?=      ${LIBDIR}
165 LIBOWN?=        ${BINOWN}
166 LIBGRP?=        ${BINGRP}
167 LIBMODE?=       ${NOBINMODE}
168
169 DEBUGDIR?=      /usr/lib/debug
170 DEBUGMODE?=     ${NOBINMODE}
171
172
173 # Share files
174 SHAREDIR?=      /usr/share
175 SHAREOWN?=      root
176 SHAREGRP?=      wheel
177 SHAREMODE?=     ${NOBINMODE}
178
179 CONFDIR?=       /etc
180 CONFOWN?=       root
181 CONFGRP?=       wheel
182 CONFMODE?=      644
183
184 MANDIR?=        ${SHAREDIR}/man/man
185 MANOWN?=        ${SHAREOWN}
186 MANGRP?=        ${SHAREGRP}
187 MANMODE?=       ${NOBINMODE}
188
189 DOCDIR?=        ${SHAREDIR}/doc
190 DOCOWN?=        ${SHAREOWN}
191 DOCGRP?=        ${SHAREGRP}
192 DOCMODE?=       ${NOBINMODE}
193
194 INFODIR?=       ${SHAREDIR}/info
195 INFOOWN?=       ${SHAREOWN}
196 INFOGRP?=       ${SHAREGRP}
197 INFOMODE?=      ${NOBINMODE}
198
199 NLSDIR?=        ${SHAREDIR}/nls
200 NLSOWN?=        ${SHAREOWN}
201 NLSGRP?=        ${SHAREGRP}
202 NLSMODE?=       ${NOBINMODE}
203
204 INCLUDEDIR?=    /usr/include
205
206 #
207 # install(1) parameters.
208 #
209 HRDLINK?=       -l h
210 SYMLINK?=       -l s
211 RSYMLINK?=      -l rs
212
213 INSTALL_LINK?=          ${INSTALL} ${HRDLINK}
214 INSTALL_SYMLINK?=       ${INSTALL} ${SYMLINK}
215 INSTALL_RSYMLINK?=      ${INSTALL} ${RSYMLINK}
216
217 # Common variables
218 .if !defined(DEBUG_FLAGS)
219 STRIP?=         -s
220 .endif
221
222 COMPRESS_CMD?=  gzip -cn
223 COMPRESS_EXT?=  .gz
224
225 # Set XZ_THREADS to 1 to disable multi-threading.
226 XZ_THREADS?=    0
227
228 .if !empty(XZ_THREADS)
229 XZ_CMD?=        xz -T ${XZ_THREADS}
230 .else
231 XZ_CMD?=        xz
232 .endif
233
234 PKG_CMD?=       pkg
235
236 # Pointer to the top directory into which tests are installed.  Should not be
237 # overriden by Makefiles, but the user may choose to set this in src.conf(5).
238 TESTSBASE?= /usr/tests
239
240 DEPENDFILE?=    .depend
241
242 # Compat for the moment -- old bsd.own.mk only included this when _WITHOUT_SRCCONF
243 # wasn't defined. bsd.ports.mk and friends depend on this behavior. Remove in 12.
244 .if !defined(_WITHOUT_SRCCONF)
245 .include <bsd.compiler.mk>
246 .endif # !_WITHOUT_SRCCONF
247
248 .endif  # !target(__<bsd.own.mk>__)