Merge branch 'vendor/EXPAT'
[dragonfly.git] / share / man / man5 / make.conf.5
1 .\" Copyright (c) 2000
2 .\"     Mike W. Meyer
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 .\" SUCH DAMAGE.
24 .\"
25 .\" $FreeBSD: src/share/man/man5/make.conf.5,v 1.12.2.30 2003/05/18 17:05:55 brueffer Exp $
26 .\" $DragonFly: src/share/man/man5/make.conf.5,v 1.38 2008/11/03 00:25:45 pavalos Exp $
27 .\"
28 .Dd December 20, 2009
29 .Dt MAKE.CONF 5
30 .Os
31 .Sh NAME
32 .Nm make.conf
33 .Nd system build information
34 .Sh DESCRIPTION
35 The file
36 .Nm
37 contains settings that control the compilation of the
38 .Dx
39 sources.
40 The file
41 .Nm
42 is generally created by the system administrator when the values need
43 to be changed from their defaults.
44 .Pp
45 The purpose of
46 .Nm
47 is not to run commands or perform compilation actions
48 directly.
49 Instead, it is included by the various makefiles in
50 .Pa /usr/src
51 which conditionalize their internal actions according to the settings
52 found there.
53 .Pp
54 The
55 .Pa /etc/make.conf
56 file is included from the appropriate
57 .Pa Makefile
58 which specifies the default settings for all the available options.
59 Options need only be specified in
60 .Pa /etc/make.conf
61 when the system administrator wishes to override these defaults.
62 .Pp
63 The build procedures occur in three areas: world, kernel, and
64 documentation.
65 Variables set in
66 .Nm
67 may be applicable during builds in one, two, or all of these areas.
68 They may be specified for a particular build via the
69 .Fl D
70 option of
71 .Xr make 1 .
72 .Pp
73 The following lists provide a name and short description for each
74 variable you can use during the indicated builds.
75 The values of variables flagged as
76 .Vt bool
77 are ignored; the variable being set at all (even to
78 .Dq Li FALSE
79 or
80 .Dq Li NO )
81 causes it to be treated as if it were set.
82 .Pp
83 The following list provides a name and short description for variables
84 that are used for all builds, or are used by the
85 .Pa makefiles
86 for things other than builds.
87 .Bl -tag -width Ar
88 .It Va CPUTYPE
89 .Pq Vt str
90 Controls which processor should be targeted for generated code.
91 This controls processor-specific optimizations in certain code
92 (currently only OpenSSL) as well as modifying the value of
93 .Va CFLAGS
94 and
95 .Va COPTFLAGS
96 to contain the appropriate optimization directive to
97 .Xr gcc 1 .
98 The automatic setting of
99 .Va CFLAGS
100 and
101 .Va COPTFLAGS
102 may be overridden using the
103 .Va NO_CPU_CFLAGS
104 and
105 .Va NO_CPU_COPTFLAGS
106 variables, respectively.  Refer to
107 .Pa /usr/share/examples/etc/defaults/make.conf
108 for a list of recognized
109 .Va CPUTYPE
110 options.
111 .It Va CCVER
112 .Pq Vt str
113 Controls which GCC version to use by default.
114 It should be set as
115 .Li CCVER?=
116 so as not to interfere with overrides from userland.
117 We currently recommend that an override NOT be set in
118 .Pa /etc/make.conf .
119 Currently accepted values for compilers which are part of
120 .Dx
121 are
122 .Dq gcc41
123 (default) and
124 .Dq gcc44 .
125 All other values will handled according to the settings in
126 .Xr compilers.conf 5 .
127 .It Va BINUTILSVER
128 .Pq Vt str
129 Controls which binutils to use by default.
130 Currently accepted values are
131 .Dq binutils217
132 (default) and
133 .Dq binutils220 .
134 .It Va CFLAGS
135 .Pq Vt str
136 Controls the compiler setting when compiling C code.
137 Optimization levels above
138 .Fl O
139 .Pq Fl O2 , No ...
140 are not supported.
141 .Va BDECFLAGS
142 is provided as a set of
143 .Xr gcc 1
144 settings suggested by
145 .An "Bruce Evans" Aq bde@FreeBSD.org
146 for developing and testing changes.
147 They can be used, if set, by:
148 .Bd -literal -offset indent
149 CFLAGS+=${BDECFLAGS}
150 .Ed
151 .It Va DEBUG_FLAGS
152 .Pq Vt str
153 Similar to
154 .Va CFLAGS
155 but it will cause
156 .Va STRIP
157 to be set to a blank value, if set.
158 Typically,
159 .Va DEBUG_FLAGS
160 is set to
161 .Fl g
162 for compiling with debug symbols.
163 .It Va NO_CPU_CFLAGS
164 .Pq Vt str
165 Setting this variable will prevent CPU specific compiler flags
166 from being automatically added to
167 .Va CFLAGS
168 during compile time.
169 .It Va CXXFLAGS
170 .Pq Vt str
171 Controls the compiler settings when compiling C++ code.
172 .Va CXXFLAGS
173 is initially set to the value of
174 .Va CFLAGS .
175 If you want to add to the
176 .Va CXXFLAGS
177 value, use
178 .Dq Li +=
179 instead of
180 .Dq Li = .
181 .It Va INSTALL
182 .Pq Vt str
183 the default install command.
184 To have components compared before doing the install, use
185 .Bd -literal -offset indent
186 INSTALL="install -C"
187 .Ed
188 .It Va LOCAL_DIRS
189 .Pq Vt str
190 List any directories that should be entered when running make
191 .Pa /usr/src
192 in this variable.
193 .It Va MAKE_SHELL
194 .Pq Vt str
195 Controls the shell used internally by
196 .Xr make 1
197 to process the command scripts in makefiles.
198 .Xr sh 1 ,
199 .Xr ksh 1 ,
200 and
201 .Xr csh 1
202 all currently supported.
203 .Bd -literal -offset indent
204 MAKE_SHELL?=sh
205 .Ed
206 .It Va MODULES_OVERRIDE
207 .Pq Vt str
208 Set to a list of modules to build instead of all of them.
209 .It Va MTREE_FOLLOWS_SYMLINKS
210 .Pq Vt str
211 Set this to
212 .Dq Fl L
213 to cause
214 .Xr mtree 8
215 to follow symlinks.
216 .It Va STRIP
217 .Pq Vt str
218 Set this to the flag to pass to the
219 .Xr strip 1
220 command.
221 If set to a blank value, debug symbols will not be removed.
222 .Va STRIP
223 is automatically set to a blank value if
224 .Va DEBUG_FLAGS
225 is set.
226 .It Va WANT_HESIOD
227 .Pq Vt bool
228 Set this to build
229 .Xr hesiod 3
230 support into libc.
231 .It Va NO_NS_CACHING
232 .Pq Vt bool
233 Set this to disable name caching in the nsswitch subsystem.
234 The generic caching daemon,
235 .Xr nscd 8 ,
236 will not be built either if this option is set.
237 .It Va NO_WERROR
238 Set this if you don't want
239 .Fl Werror
240 to be added to
241 .Va CWARNFLAGS
242 or used in the kernel build.
243 .It Va STATIC_LOCALES
244 .Pq Vt str
245 Set to a list of locales to build into statically-linked binaries.
246 Currently supported locales are: BIG5 EUC EUCTW ISO2022 MSKanji UTF8
247 .El
248 .Pp
249 The following list provides a name and short description for variables
250 that are only used doing a kernel build:
251 .Bl -tag -width Ar
252 .It Va BOOT_COMCONSOLE_PORT
253 .Pq Vt str
254 The port address to use for the console if the boot blocks have
255 been configured to use a serial console instead of the keyboard/video card.
256 .It Va BOOT_COMCONSOLE_SPEED
257 .Pq Vt int
258 The baud rate to use for the console if the boot blocks have
259 been configured to use a serial console instead of the keyboard/video card.
260 .It Va COPTFLAGS
261 .Pq Vt str
262 Controls the compiler settings when building the
263 kernel.
264 Optimization levels above
265 .Fl O
266 .Pq Fl O2 , No ...
267 are not guaranteed to work.
268 .It Va KERNCONF
269 .Pq Vt str
270 Controls which kernel configurations will be
271 built by
272 .Dq Li "${MAKE} buildkernel"
273 and installed by
274 .Dq Li "${MAKE} installkernel" .
275 For example,
276 .Bd -literal -offset indent
277 KERNCONF=MINE DEBUG GENERIC OTHERMACHINE
278 .Ed
279 .Pp
280 will build the kernels specified by the config files
281 .Pa MINE , DEBUG , GENERIC ,
282 and
283 .Pa OTHERMACHINE ,
284 and install the kernel specified by the config file
285 .Pa MINE .
286 It defaults to
287 .Pa GENERIC .
288 .It Va LOADER_TFTP_SUPPORT
289 .Pq Vt bool
290 While not a buildkernel-affected option, there is no better place for this.
291 By default the
292 .Xr pxeboot 8
293 loader retrieves the kernel via NFS.
294 Defining this and recompiling
295 .Pa /usr/src/sys/boot
296 will cause it to retrieve the kernel via TFTP.
297 This allows pxeboot to load a custom BOOTP diskless kernel yet
298 still mount the server's
299 .Pa /
300 rather than load the server's kernel.
301 .It Va NO_CPU_COPTFLAGS
302 .Pq Vt str
303 Setting this variable will prevent CPU specific compiler flags
304 from being automatically added to
305 .Va COPTFLAGS
306 during compile time.
307 .It Va NO_KERNELCLEAN
308 .Pq Vt bool
309 Set this to skip the clean target when using
310 .Dq Li "${MAKE} buildkernel" .
311 .It Va NO_KERNELCONFIG
312 .Pq Vt bool
313 Set this to skip running
314 .Xr config 8
315 during
316 .Dq Li "${MAKE} buildkernel" .
317 .It Va NO_KERNELDEPEND
318 .Pq Vt bool
319 Set this to skip running
320 .Dq Li "${MAKE} depend"
321 during
322 .Dq Li "${MAKE} buildkernel" .
323 .It Va NO_KERNEL_OLD_STRIP
324 .Pq Vt bool
325 Set this to skip stripping debugging symbols from old kernel and modules
326 (kernel.old, modules.old) during
327 .Dq Li "${MAKE} installkernel" .
328 .It Va NO_MODULES
329 .Pq Vt bool
330 Set to not build modules with the kernel.
331 .El
332 .Pp
333 The following list provides a name and short description for variables
334 that are used during the world build:
335 .Bl -tag -width Ar
336 .It Va ENABLE_SUID_SSH
337 .Pq Vt bool
338 Set this to install
339 .Xr ssh 1
340 with the setuid bit turned on.
341 .It Va MODULES_WITH_WORLD
342 .Pq Vt bool
343 Set to build modules with the system instead of the kernel.
344 .It Va NO_BIND
345 .Pq Vt bool
346 Set to not build BIND.
347 .It Va NO_BIND_DNSSEC
348 .Pq Vt bool
349 Set to not build DNSSEC support in BIND.
350 .It Va NO_CRYPT
351 .Pq Vt bool
352 Set to not build crypto code.
353 .It Va NO_CVS
354 .Pq Vt bool
355 Set to not build CVS.
356 .It Va NO_GAMES
357 .Pq Vt bool
358 Set to not build games.
359 .It Va NO_GCC44
360 .Pq Vt bool
361 Set to not build the newer version of GCC (4.4).
362 .It Va NO_GDB
363 .Pq Vt bool
364 Set to not build
365 .Xr gdb 1
366 .It Va NO_I4B
367 .Pq Vt bool
368 Set to not build isdn4bsd package.
369 .It Va NO_IPFILTER
370 .Pq Vt bool
371 Set to not build IP Filter package.
372 .It Va NO_LIBC_R
373 .Pq Vt bool
374 Set to not build
375 .Nm libc_r
376 (reentrant version of
377 .Nm libc ) .
378 .It Va NO_LPR
379 .Pq Vt bool
380 Set to not build
381 .Xr lpr 1
382 and related programs.
383 .It Va NO_MAILWRAPPER
384 .Pq Vt bool
385 Set to not build the
386 .Xr mailwrapper 8
387 MTA selector.
388 .It Va NO_OBJC
389 .Pq Vt bool
390 Set to not build Objective C support.
391 .It Va NO_OPENSSH
392 .Pq Vt bool
393 Set to not build OpenSSH.
394 .It Va NO_OPENSSL
395 .Pq Vt bool
396 Set to not build OpenSSL (implies
397 .Va NO_OPENSSH ) .
398 .It Va NO_SENDMAIL
399 .Pq Vt bool
400 Set to not build
401 .Xr sendmail 8
402 and related programs.
403 .It Va NO_SHARE
404 .Pq Vt bool
405 Set to not enter the share subdirectory.
406 .It Va NO_X
407 .Pq Vt bool
408 Set to not compile in X\-Windows support (e.g.\&
409 .Xr doscmd 1 ) .
410 .It Va NOCLEAN
411 .Pq Vt bool
412 Set this to disable cleaning during
413 .Dq Li "make buildworld" .
414 This should not be set unless you know what you are doing.
415 .It Va NOCLEANDIR
416 .Pq Vt bool
417 Set this to run
418 .Dq Li "${MAKE} clean"
419 instead of
420 .Dq Li "${MAKE} cleandir" .
421 .It Va NOFSCHG
422 .Pq Vt bool
423 Set to not install certain components with flag schg.
424 This is useful in a jailed environment.
425 .It Va NOINFO
426 .Pq Vt bool
427 Set to not make or install
428 .Xr info 5
429 files.
430 .It Va NOINFOCOMPRESS
431 .Pq Vt bool
432 Set to not compress the info pages.
433 .It Va NOMAN
434 .Pq Vt bool
435 Set to not build manual pages
436 .It Va NOMANCOMPRESS
437 .Pq Vt bool
438 Set to not compress the manual pages.
439 .It Va NOPROFILE
440 .Pq Vt bool
441 Set to avoid compiling profiled libraries.
442 .It Va PPP_NOSUID
443 .Pq Vt bool
444 Set to disable the installation of
445 .Xr ppp 8
446 with the set-user-ID bit on.
447 .It Va SENDMAIL_MC
448 .Pq Vt str
449 The default
450 .Xr m4 1
451 configuration file to use at install time.
452 The value should include the full path to the
453 .Pa .mc
454 file, e.g.,
455 .Pa /etc/mail/myconfig.mc .
456 Use with caution as a make install will overwrite any existing
457 .Pa /etc/mail/sendmail.cf .
458 Note that
459 .Va SENDMAIL_CF
460 is now deprecated.
461 .It Va SENDMAIL_SUBMIT_MC
462 .Pq Vt str
463 The default
464 .Xr m4 1
465 configuration file for mail submission
466 to use at install time.
467 The value should include the full path to the
468 .Pa .mc
469 file, e.g.,
470 .Pa /etc/mail/mysubmit.mc .
471 Use with caution as a make install will overwrite any existing
472 .Pa /etc/mail/submit.cf .
473 .It Va SENDMAIL_ADDITIONAL_MC
474 .Pq Vt str
475 Additional
476 .Pa .mc
477 files which should be built into
478 .Pa .cf
479 files at build time.
480 The value should include the full path to the
481 .Pa .mc
482 file(s), e.g.,
483 .Pa /etc/mail/foo.mc
484 .Pa /etc/mail/bar.mc .
485 .It Va SENDMAIL_CF_DIR
486 .Pq Vt str
487 Override the default location for the
488 .Xr m4 1
489 configuration files used to build a
490 .Pa .cf
491 file from a
492 .Pa .mc
493 file.
494 .It Va SENDMAIL_M4_FLAGS
495 .Pq Vt str
496 Flags passed to
497 .Xr m4 1
498 when building a
499 .Pa .cf
500 file from a
501 .Pa .mc
502 file.
503 .It Va SENDMAIL_CFLAGS
504 .Pq Vt str
505 Flags to pass to the compile command when building
506 .Xr sendmail 8 .
507 The
508 .Va SENDMAIL_*
509 flags can be used to provide SASL support with setting such as:
510 .Bd -literal -offset indent
511 SENDMAIL_CFLAGS=-I/usr/local/include -DSASL
512 SENDMAIL_LDFLAGS=-L/usr/local/lib
513 SENDMAIL_LDADD=-lsasl
514 .Ed
515 .It Va SENDMAIL_LDFLAGS
516 .Pq Vt str
517 Flags to pass to the
518 .Xr ld 1
519 command when building
520 .Xr sendmail 8 .
521 .It Va SENDMAIL_LDADD
522 .Pq Vt str
523 Flags to add to the end of the
524 .Xr ld 1
525 command when building
526 .Xr sendmail 8 .
527 .It Va SENDMAIL_DPADD
528 .Pq Vt str
529 Extra dependencies to add when building
530 .Xr sendmail 8 .
531 .It Va SENDMAIL_SET_USER_ID
532 .Pq Vt bool
533 If set, install
534 .Xr sendmail 8
535 as a set-user-ID root binary instead of a set-group-ID binary
536 and do not install
537 .Pa /etc/mail/submit.{cf,mc} .
538 Use of this flag is not recommended and the alternative advice in
539 .Pa /etc/mail/README
540 should be followed instead if at all possible.
541 .It Va SENDMAIL_MAP_PERMS
542 .Pq Vt str
543 Mode to use when generating alias and map database files using
544 .Pa /etc/mail/Makefile .
545 The default value is 0640.
546 .It Va THREAD_LIB
547 .Pq Vt str
548 Set to either
549 .Li c_r
550 or
551 .Li thread_xu
552 to configure the system's default threading library.
553 The default is
554 .Li thread_xu .
555 .It Va WANT_IDEA
556 .Pq Vt bool
557 Set to build the IDEA encryption code.
558 This code is patented in the USA and many European countries.
559 It is
560 .Em "YOUR RESPONSIBILITY"
561 to determine if you can legally use IDEA.
562 .It Va WANT_INSTALLER
563 .Pq Vt bool
564 Set to build the installer.
565 .El
566 .Pp
567 The following list provides a name and short description for variables
568 that are used when building documentation.
569 .Bl -tag -width Ar
570 .It Va DOC_LANG
571 .Pq Vt str
572 The list of languages and encodings to build and install.
573 .It Va PRINTERDEVICE
574 .Pq Vt str
575 The default format for system documentation, depends on your
576 printer.
577 This can be set to
578 .Dq Li ascii
579 for simple printers or
580 .Dq Li ps
581 for postscript or graphics printers with a ghostscript
582 filter.
583 .It Va GROFF_PAPER_SIZE
584 .Pq Vt str
585 The default paper size for
586 .Xr groff 1
587 (either
588 .Dq letter
589 or
590 .Dq A4 ) .
591 .El
592 .Sh FILES
593 .Bl -tag -width /etc/defaults/make.conf -compact
594 .It Pa /etc/defaults/make.conf
595 .It Pa /etc/make.conf
596 .It Pa /usr/src/Makefile
597 .It Pa /usr/src/Makefile.inc1
598 .El
599 .Sh SEE ALSO
600 .Xr gcc 1 ,
601 .Xr install 1 ,
602 .Xr make 1 ,
603 .Xr lpd 8 ,
604 .Xr sendmail 8
605 .Sh HISTORY
606 The
607 .Nm
608 file appeared sometime before
609 .Fx 4.0 .
610 .Sh AUTHORS
611 This manual page was written by
612 .An Mike W. Meyer Aq mwm@mired.org .