xref: /freebsd/share/man/man5/make.conf.5 (revision 729362425c09cf6b362366aabc6fb547eee8035a)
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$
26.\"
27.Dd November 3, 2000
28.Dt MAKE.CONF 5
29.Os
30.Sh NAME
31.Nm make.conf
32.Nd system build information
33.Sh DESCRIPTION
34The file
35.Nm
36contains settings that control the compilation of the
37.Fx
38sources
39and ported applications.
40The file
41.Nm
42is generally created by the system administrator when the values need
43to be changed from their defaults.
44.Pp
45The purpose of
46.Nm
47is not to run commands or perform compilation actions
48directly.
49Instead, it is included by the
50various makefiles in
51.Pa /usr/src ,
52.Pa /usr/ports
53and
54.Pa /usr/doc
55which conditionalize their
56internal actions according to the settings found there.
57.Pp
58The
59.Pa /etc/make.conf
60file is included from the appropriate
61.Pa Makefile
62which specifies the default settings for all the available options.
63Options need only be specified in
64.Pa /etc/make.conf
65when the system administrator wishes to override these defaults.
66.Pp
67The build procedures occur in four broad areas: the world, the kernel,
68documentations and ports.
69Variables set in
70.Nm
71may be applicable during builds in one, two, or all four of these
72areas.
73They may be specified for a particular build via the
74.Fl D
75option of
76.Xr make 1 .
77.Pp
78The following lists provide a name and short description for each
79variable you can use during the indicated builds.
80The values of
81variables flagged as
82.Vt bool
83are ignored; the variable being
84set at all (even to
85.Dq Li FALSE
86or
87.Dq Li NO )
88causes it to
89be treated as if it were set.
90.Pp
91The following list provides a name and short description for variables
92that are used for all builds, or are used by the
93.Pa makefiles
94for things other than builds.
95.Bl -tag -width Ar
96.It Va CFLAGS
97.Pq Vt str
98Controls the compiler setting when compiling C code.
99Optimization levels above
100.Fl O
101.Pq Fl O2 , No ...
102are not supported.
103.Va BDECFLAGS
104is provided as a set of
105.Xr gcc 1
106settings suggested by
107.An "Bruce Evans" Aq bde@FreeBSD.org
108for developing and testing changes.
109They can be used, if set, by:
110.Pp
111.Bd -literal -offset indent
112CFLAGS+=${BDECFLAGS}
113.Ed
114.It Va CPUTYPE
115.Pq Vt str
116Controls which processor should be targeted for generated
117code.
118This controls processor-specific optimizations in
119certain code (currently only OpenSSL) as well as modifying
120the value of
121.Va CFLAGS
122and
123.Va COPTFLAGS
124to contain the appropriate optimization directive to
125.Xr gcc 1 .
126The automatic setting of
127.Va CFLAGS
128and
129.Va COPTFLAGS
130may be overridden using the
131.Va NO_CPU_CFLAGS
132and
133.Va NO_CPU_COPTFLAGS
134variables, respectively.
135Refer to
136.Pa /usr/share/examples/etc/make.conf
137for a list of recognized
138.Va CPUTYPE
139options.
140.It Va NO_CPU_CFLAGS
141.Pq Vt str
142Setting this variable will prevent CPU specific compiler flags
143from being automatically added to
144.Va CFLAGS
145during compile time.
146.It Va NO_CPU_COPTFLAGS
147.Pq Vt str
148Setting this variable will prevent CPU specific compiler flags
149from being automatically added to
150.Va COPTFLAGS
151during compile time.
152.It Va CVS_UPDATE
153.Pq Vt bool
154Set this to use
155.Xr cvs 1
156to update your ports with
157.Dq Li "make update" .
158.It Va CXXFLAGS
159.Pq Vt str
160Controls the compiler settings when compiling C++ code.
161.Va CXXFLAGS
162is initially set to the value of
163.Va CFLAGS .
164If you want to
165add to the
166.Va CXXFLAGS
167value, use
168.Dq Li +=
169instead of
170.Dq Li = .
171.It Va INSTALL
172.Pq Vt str
173the default install command.
174To have commands compared before doing
175the install, use
176.Bd -literal -offset indent
177INSTALL="install -C"
178.Ed
179.It Va LOCAL_DIRS
180.Pq Vt str
181List any directories that should be entered when doing
182make's in
183.Pa /usr/src
184in this variable.
185.It Va MAKE_SHELL
186.Pq Vt str
187Controls the shell used internally by
188.Xr make 1
189to process the command scripts in makefiles.
190.Xr sh 1 ,
191.Xr ksh 1 ,
192and
193.Xr csh 1
194all currently supported.
195.Pp
196.Dl "MAKE_SHELL?=sh"
197.It Va MTREE_FOLLOWS_SYMLINKS
198.Pq Vt str
199Set this to
200.Dq Fl L
201to cause
202.Xr mtree 8
203to follow symlinks.
204.It Va NO_DOCUPDATE
205.Pq Vt bool
206Set this to not update the doc tree during
207.Dq Li "make update" .
208.It Va NO_PORTSUPDATE
209.Pq Vt bool
210Set this to not update the ports tree during
211.Dq Li "make update" .
212.It Va SUP_UPDATE
213.Pq Vt bool
214Set this to use
215.Xr cvsup 1
216to update your ports with
217.Dq Li "make update" .
218.It Va SUP
219.Pq Vt str
220The location of the
221.Xr cvsup 1
222command for
223.Dq Li "make update" .
224.It Va SUPFLAGS
225.Pq Vt str
226The flag for the
227.Xr sup 1
228command when doing
229.Dq Li "make update" .
230This defaults to
231.Op Fl g L Ar 2 .
232.It Va SUPHOST
233.Pq Vt str
234The hostname of the sup server to use when doing
235.Dq Li "make update" .
236.It Va SUPFILE
237.Pq Vt str
238The first
239.Ar supfile
240to use when doing a
241.Dq Li "make update" .
242This defaults to
243.Pa /usr/share/examples/cvsup/standard\-supfile .
244.It Va SUPFILE1
245.Pq Vt str
246The second
247.Ar supfile
248to use when doing a
249.Dq Li "make update" .
250This defaults to
251.Pa /usr/share/examples/cvsup/secure\-supfile .
252.It Va SUPFILE2
253.Pq Vt str
254The third
255.Ar supfile
256to use when doing a
257.Dq Li "make update" .
258This defaults to
259.Pa /usr/share/examples/cvsup/secure\-supfile .
260.It Va PORTSSUPFILE
261.Pq Vt str
262The ports
263.Ar supfile
264to use when doing a
265.Dq Li "make update" .
266This defaults to
267.Pa /usr/share/examples/cvsup/ports\-supfile .
268.It Va DOCSUPFILE
269.Pq Vt str
270The documentation
271.Ar supfile
272to use when doing a
273.Dq Li "make update" .
274This defaults to
275.Pa /usr/share/examples/cvsup/doc\-supfile .
276.El
277.Pp
278The following list provides a name and short description for variables
279that are only used doing a kernel build:
280.Bl -tag -width Ar
281.It Va BOOT_COMCONSOLE_PORT
282.Pq Vt str
283The port address to use for the console if the boot blocks have
284been configured to use a serial console instead of the keyboard/video card.
285.It Va BOOT_COMCONSOLE_SPEED
286.Pq Vt int
287The baud rate to use for the console if the boot blocks have
288been configured to use a serial console instead of the keyboard/video card.
289.It Va BOOTWAIT
290.Pq Vt int
291Controls the amount of time the kernel waits for a console keypress
292before booting the default kernel.
293The value is approximately milliseconds.
294Keypresses are accepted by the BIOS before booting from disk,
295making it possible to give custom boot parameters even when this is
296set to 0.
297.It Va COPTFLAGS
298.Pq Vt str
299Controls the compiler settings when building the
300kernel.
301Optimization levels above
302.Oo Fl O ( O2 , No ...\& ) Oc
303are not guaranteed to work.
304.It Va KERNCONF
305.Pq Vt str
306Controls which kernel configurations will be
307built by
308.Dq Li "${MAKE} buildkernel"
309and installed by
310.Dq Li "${MAKE} installkernel" .
311For example,
312.Bd -literal -offset indent
313KERNCONF=MINE DEBUG GENERIC OTHERMACHINE
314.Ed
315.Pp
316will build the kernels specified by the config files
317.Pa MINE , DEBUG , GENERIC ,
318and
319.Pa OTHERMACHINE ,
320and install the kernel specified by the config file
321.Pa MINE .
322It defaults to
323.Pa GENERIC .
324.It Va LOADER_TFTP_SUPPORT
325.Pq Vt bool
326While not a buildkernel-affected option, there is no better place for this.
327By default the
328.Xr pxeboot 8
329loader retrieves the kernel via NFS.
330Defining this and recompiling
331.Pa /usr/src/sys/boot
332will cause it to retrieve the kernel via TFTP.
333This allows
334.Xr pxeboot 8
335to load a custom BOOTP diskless kernel yet
336still mount the server's
337.Pa /
338rather than load the server's kernel.
339.It Va MODULES_OVERRIDE
340.Pq Vt str
341Set to a list of modules to build instead of all of them.
342.It Va NO_KERNELCONFIG
343.Pq Vt bool
344Set this to skip running
345.Xr config 8
346during
347.Dq Li "${MAKE} buildkernel" .
348.It Va NO_KERNELDEPEND
349.Pq Vt bool
350Set this to skip running
351.Dq Li "${MAKE} depend"
352during
353.Dq Li "${MAKE} buildkernel" .
354.It Va NO_MODULES
355.Pq Vt bool
356Set to not build modules with the kernel.
357.El
358.Pp
359The following list provides a name and short description for variables
360that are used during the world build:
361.Bl -tag -width Ar
362.It Va COMPAT1X
363.Pq Vt bool
364Set to install the
365.Fx
3661 compatibility libraries.
367.It Va COMPAT20
368.Pq Vt bool
369Set to install the
370.Fx 2.0
371compatibility libraries.
372.It Va COMPAT21
373.Pq Vt bool
374Set to install the
375.Fx 2.1
376compatibility libraries.
377.It Va COMPAT22
378.Pq Vt bool
379Set to install the
380.Fx 2.2
381compatibility libraries.
382.It Va COMPAT3X
383.Pq Vt bool
384Set to install the
385.Fx
3863
387compatibility libraries.
388.It Va COMPAT4X
389.Pq Vt bool
390Set to install the
391.Fx
3924
393compatibility libraries.
394.It Va FETCH_CMD
395.Pq Vt str
396Command to use to fetch files.
397Normally
398.Xr fetch 1 .
399.It Va KRB5_HOME
400.Pq Vt str
401If you want to install the MIT Kerberos5 port somewhere other than
402.Pa /usr/local ,
403define this.
404This is also used to tell ssh1 that Kerberos is needed.
405.It Va MAKE_IDEA
406.Pq Vt bool
407Set to build the IDEA encryption code.
408This code is patented in the USA and many European countries.
409It is
410.Em "YOUR RESPONSIBILITY"
411to determine if you can legally use IDEA.
412.It Va MAKE_KERBEROS5
413.Pq Vt bool
414Set this to build Kerberos5 (KTH Heimdal).
415.Em WARNING !
416This is still experimental code.
417If you need stable Kerberos5, use the
418port(s).
419.It Va ENABLE_SUID_K5SU
420.Pq Vt bool
421Set this if you wish to use the k5su utility.
422Otherwise, it will be
423installed without the set-user-ID bit set.
424.It Va ENABLE_SUID_NEWGRP
425.Pq Vt bool
426Set this to install
427.Xr newgrp 1
428with the set-user-ID bit set.
429Otherwise,
430.Xr newgrp 1
431will not be able to change users' groups.
432.It Va ENABLE_SUID_SSH
433.Pq Vt bool
434Set this to install
435.Xr ssh 1
436with the set-user-ID bit turned on.
437.It Va MODULES_WITH_WORLD
438.Pq Vt bool
439Set to build modules with the system instead of the kernel.
440.It Va NO_CVS
441.Pq Vt bool
442Set to not build CVS.
443.It Va NO_CXX
444.Pq Vt bool
445Set to not build
446.Xr g++ 1
447and related libraries.
448.It Va NO_BIND
449.Pq Vt bool
450Set to not build BIND.
451.It Va NO_FORTRAN
452.Pq Vt bool
453Set to not build
454.Xr g77 1
455and related libraries.
456.It Va NO_GDB
457.Pq Vt bool
458Set to not build
459.Xr gdb 1 .
460.It Va NO_I4B
461.Pq Vt bool
462Set to not build isdn4bsd package.
463.It Va NO_IPFILTER
464.Pq Vt bool
465Set to not build IP Filter package.
466.It Va NO_LPR
467.Pq Vt bool
468Set to not build
469.Xr lpr 1
470and related programs.
471.It Va NO_MAILWRAPPER
472.Pq Vt bool
473Set to not build the
474.Xr mailwrapper 8
475MTA selector.
476.It Va NOMAN
477.Pq Vt bool
478Set to not build manual pages.
479.It Va NO_OBJC
480.Pq Vt bool
481Set to not build Objective C support.
482.It Va NO_OPENSSH
483.Pq Vt bool
484Set to not build OpenSSH.
485.It Va NO_OPENSSL
486.Pq Vt bool
487Set to not build OpenSSL (implies
488.Va NO_OPENSSH ) .
489.It Va NO_SENDMAIL
490.Pq Vt bool
491Set to not build
492.Xr sendmail 8
493and related programs.
494.It Va NO_SHAREDOCS
495.Pq Vt bool
496Set to not build the
497.Bx 4.4
498legacy docs.
499.It Va NO_TCSH
500.Pq Vt bool
501Set to not build and install
502.Pa /bin/csh
503(which is
504.Xr tcsh 1 ) .
505.It Va NO_X
506.Pq Vt bool
507Set to not compile in X\-Windows support (e.g.\&
508.Xr doscmd 1 ) .
509.It Va NOCLEAN
510.Pq Vt bool
511Set this to disable cleaning during
512.Dq Li "make buildworld" .
513This should not be set unless you know what you are doing.
514.It Va NOCLEANDIR
515.Pq Vt bool
516Set this to run
517.Dq Li "${MAKE} clean"
518instead of
519.Dq Li "${MAKE} cleandir" .
520.It Va NOCRYPT
521.Pq Vt bool
522Set to not build any crypto code.
523.It Va NOGAMES
524.Pq Vt bool
525Set to not build games.
526.It Va NOINFO
527.Pq Vt bool
528Set to not make or install
529.Xr info 5
530files.
531.It Va NOLIBC_R
532.Pq Vt bool
533Set to not build
534.Nm libc_r
535(reentrant version of
536.Nm libc ) .
537.It Va NOMANCOMPRESS
538.Pq Vt bool
539Set to install man pages uncompressed.
540.It Va NOPROFILE
541.Pq Vt bool
542Set to avoid compiling profiled libraries.
543.It Va NOSECURE
544.Pq Vt bool
545set to not build crypto code in
546.Pa secure
547subdir.
548.It Va NOSHARE
549.Pq Vt bool
550Set to not build in the
551.Pa share
552subdir.
553.It Va PPP_NOSUID
554.Pq Vt bool
555Set to disable the installation of
556.Xr ppp 8
557as an suid root program.
558.It Va SENDMAIL_MC
559.Pq Vt str
560The default m4 configuration file to use at install time.
561The value should include the full path to the
562.Pa .mc
563file, e.g.,
564.Pa /etc/mail/myconfig.mc .
565Use with caution as a make install will overwrite any existing
566.Pa /etc/mail/sendmail.cf .
567Note that
568.Va SENDMAIL_CF
569is now deprecated.
570Avoid using a value of
571.Pa /etc/mail/sendmail.mc ,
572as a buildworld will create
573.Pa /etc/mail/sendmail.cf
574before installworld installs an updated
575.Xr sendmail 8
576binary.
577.It Va SENDMAIL_SUBMIT_MC
578.Pq Vt str
579The default m4 configuration file for mail submission
580to use at install time.
581The value should include the full path to the
582.Pa .mc
583file, e.g.,
584.Pa /etc/mail/mysubmit.mc .
585Use with caution as a make install will overwrite any existing
586.Pa /etc/mail/submit.cf .
587Avoid using a value of
588.Pa /etc/mail/submit.mc ,
589as a buildworld will create
590.Pa /etc/mail/submit.cf
591before installworld installs an updated
592.Xr sendmail 8
593binary.
594.It Va SENDMAIL_ADDITIONAL_MC
595.Pq Vt str
596Additional
597.Pa .mc
598files which should be built into
599.Pa .cf
600files at build time.
601The value should include the full path to the
602.Pa .mc
603file(s), e.g.,
604.Pa /etc/mail/foo.mc
605.Pa /etc/mail/bar.mc .
606Avoid using a value of
607.Pa /etc/mail/sendmail.mc ,
608as a buildworld will create
609.Pa /etc/mail/sendmail.cf
610before installworld installs an updated
611.Xr sendmail 8
612binary.
613.It Va SENDMAIL_M4_FLAGS
614.Pq Vt str
615Flags passed to m4 when building a
616.Pa .cf
617file from a
618.Pa .mc
619file.
620.It Va SENDMAIL_CFLAGS
621.Pq Vt str
622Flags to pass to the compile command when building
623.Xr sendmail 8 .
624The
625.Va SENDMAIL_*
626flags can be used to provide SASL support with setting such as:
627.Bd -literal -offset indent
628SENDMAIL_CFLAGS=-I/usr/local/include -DSASL
629SENDMAIL_LDFLAGS=-L/usr/local/lib
630SENDMAIL_LDADD=-lsasl
631.Ed
632.It Va SENDMAIL_LDFLAGS
633.Pq Vt str
634Flags to pass to the
635.Xr ld 1
636command when building
637.Xr sendmail 8 .
638.It Va SENDMAIL_LDADD
639.Pq Vt str
640Flags to add to the end of the
641.Xr ld 1
642command when building
643.Xr sendmail 8 .
644.It Va SENDMAIL_DPADD
645.Pq Vt str
646Extra dependencies to add when building
647.Xr sendmail 8 .
648.It Va SENDMAIL_SET_USER_ID
649.Pq Vt bool
650If set, install
651.Xr sendmail 8
652as a set-user-ID root binary instead of a set-group-ID binary
653and do not install
654.Pa /etc/mail/submit.{cf,mc} .
655Use of this flag is not recommended and the alternative advice in
656.Pa /etc/mail/README
657should be followed instead if at all possible.
658.It Va SENDMAIL_MAP_PERMS
659.Pq Vt str
660Mode to use when generating alias and map database files using
661.Pa /etc/mail/Makefile .
662The default value is 0640.
663.It Va TOP_TABLE_SIZE
664.Pq Vt int
665.Xr top 1
666uses a hash table for the user names.
667The size of this hash can be tuned to match the number of local users.
668The table size should be a prime number
669approximately twice as large as the number of lines in
670.Pa /etc/passwd .
671The default number is 20011.
672.It Va WANT_EXT2FS_MODULE
673.Pq Vt bool
674Set this if you always want to build the Linux ext2fs kernel module when you
675build modules.
676.It Va WANT_FORCE_OPTIMIZATION_DOWNGRADE
677.Pq Vt int
678Causes the system compiler to be built such that it forces high optimization
679levels to a lower one.
680.Xr gcc 1
681.Fl O2
682and above is known to trigger known optimizer bugs at various
683times \(em this is worse on the Alpha platform.
684The value assigned is the highest optimization value used.
685.El
686.Pp
687The following list provides a name and short description for variables
688that are used when building documentation.
689.Bl -tag -width Ar
690.It Va DISTDIR
691.Pq Vt str
692Where distfiles are kept.
693Normally, this is
694.Pa distfiles
695in
696.Va PORTSDIR .
697.It Va DOC_LANG
698.Pq Vt str
699The list of languages and encodings to build and install.
700.It Va PRINTERDEVICE
701.Pq Vt str
702The default format for system documentation, depends on your
703printer.
704This can be set to
705.Dq Li ascii
706for simple printers, or
707.Dq Li ps
708for postscript or graphics printers with a ghostscript
709filter, or both.
710.El
711.Sh FILES
712.Bl -tag -width ".Pa /usr/share/examples/etc/make.conf" -compact
713.It Pa /etc/make.conf
714.It Pa /usr/doc/Makefile
715.It Pa /usr/share/examples/etc/make.conf
716.It Pa /usr/src/Makefile
717.It Pa /usr/src/Makefile.inc1
718.El
719.Sh SEE ALSO
720.Xr gcc 1 ,
721.Xr install 1 ,
722.Xr make 1 ,
723.Xr ports 7 ,
724.Xr lpd 8 ,
725.Xr sendmail 8
726.Sh HISTORY
727The
728.Nm
729file appeared sometime before
730.Fx 4.0 .
731.Sh AUTHORS
732This
733manual page was written by
734.An Mike W. Meyer Aq mwm@mired.org .
735.Sh BUGS
736This manual page may occasionally be out of date with respect to
737the options currently available for use in
738.Nm .
739Please check the
740.Pa /usr/share/examples/etc/make.conf
741file for the latest options which are available.
742