xref: /freebsd/share/man/man5/make.conf.5 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1786aa69aSBen Smithurst.\" Copyright (c) 2000
2786aa69aSBen Smithurst.\"	Mike W. Meyer
3786aa69aSBen Smithurst.\"
4786aa69aSBen Smithurst.\" Redistribution and use in source and binary forms, with or without
5786aa69aSBen Smithurst.\" modification, are permitted provided that the following conditions
6786aa69aSBen Smithurst.\" are met:
7786aa69aSBen Smithurst.\" 1. Redistributions of source code must retain the above copyright
8786aa69aSBen Smithurst.\"    notice, this list of conditions and the following disclaimer.
9786aa69aSBen Smithurst.\" 2. Redistributions in binary form must reproduce the above copyright
10786aa69aSBen Smithurst.\"    notice, this list of conditions and the following disclaimer in the
11786aa69aSBen Smithurst.\"    documentation and/or other materials provided with the distribution.
12786aa69aSBen Smithurst.\"
13786aa69aSBen Smithurst.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
14786aa69aSBen Smithurst.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15786aa69aSBen Smithurst.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16786aa69aSBen Smithurst.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE
17786aa69aSBen Smithurst.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18786aa69aSBen Smithurst.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19786aa69aSBen Smithurst.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20786aa69aSBen Smithurst.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21786aa69aSBen Smithurst.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22786aa69aSBen Smithurst.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23786aa69aSBen Smithurst.\" SUCH DAMAGE.
24786aa69aSBen Smithurst.\"
25*e1184adeSBaptiste Daroussin.Dd November 15, 2022
26786aa69aSBen Smithurst.Dt MAKE.CONF 5
27786aa69aSBen Smithurst.Os
28786aa69aSBen Smithurst.Sh NAME
29786aa69aSBen Smithurst.Nm make.conf
309c488872SRuslan Ermilov.Nd system build information
31786aa69aSBen Smithurst.Sh DESCRIPTION
32786aa69aSBen SmithurstThe file
33786aa69aSBen Smithurst.Nm
34253c3c73SYaroslav Tykhiycontains system-wide settings that will apply to every build using
35253c3c73SYaroslav Tykhiy.Xr make 1
36253c3c73SYaroslav Tykhiyand the standard
37253c3c73SYaroslav Tykhiy.Pa sys.mk
38253c3c73SYaroslav Tykhiyfile.
39253c3c73SYaroslav TykhiyThis is achieved as follows:
40253c3c73SYaroslav Tykhiy.Xr make 1
41253c3c73SYaroslav Tykhiyprocesses the system makefile
42253c3c73SYaroslav Tykhiy.Pa sys.mk
43253c3c73SYaroslav Tykhiybefore any other file by default, and
44253c3c73SYaroslav Tykhiy.Pa sys.mk
45253c3c73SYaroslav Tykhiyincludes
46253c3c73SYaroslav Tykhiy.Nm .
47253c3c73SYaroslav Tykhiy.Pp
489c488872SRuslan ErmilovThe file
49786aa69aSBen Smithurst.Nm
50253c3c73SYaroslav Tykhiyuses the standard makefile syntax.
51253c3c73SYaroslav TykhiyHowever,
52786aa69aSBen Smithurst.Nm
53253c3c73SYaroslav Tykhiyshould not specify any dependencies to
54253c3c73SYaroslav Tykhiy.Xr make 1 .
55253c3c73SYaroslav TykhiyInstead,
56253c3c73SYaroslav Tykhiy.Nm
57253c3c73SYaroslav Tykhiyis to set
58253c3c73SYaroslav Tykhiy.Xr make 1
59253c3c73SYaroslav Tykhiyvariables that control the actions of other makefiles.
60253c3c73SYaroslav Tykhiy.Pp
61253c3c73SYaroslav TykhiyThe default location of
62253c3c73SYaroslav Tykhiy.Nm
63253c3c73SYaroslav Tykhiyis
64253c3c73SYaroslav Tykhiy.Pa /etc/make.conf ,
65253c3c73SYaroslav Tykhiythough an alternative location can be specified in the
66253c3c73SYaroslav Tykhiy.Xr make 1
67253c3c73SYaroslav Tykhiyvariable
68253c3c73SYaroslav Tykhiy.Va __MAKE_CONF .
69253c3c73SYaroslav TykhiyYou may need to override the location of
70253c3c73SYaroslav Tykhiy.Nm
71253c3c73SYaroslav Tykhiyif the system-wide settings are not suitable for a particular build.
72253c3c73SYaroslav TykhiyFor instance, setting
73253c3c73SYaroslav Tykhiy.Va __MAKE_CONF
74253c3c73SYaroslav Tykhiyto
75253c3c73SYaroslav Tykhiy.Pa /dev/null
76253c3c73SYaroslav Tykhiyeffectively resets all build controls to their defaults.
77253c3c73SYaroslav Tykhiy.Pp
78253c3c73SYaroslav TykhiyThe primary purpose of
79253c3c73SYaroslav Tykhiy.Nm
80253c3c73SYaroslav Tykhiyis to control the compilation of the
81253c3c73SYaroslav Tykhiy.Fx
82253c3c73SYaroslav Tykhiysources, documentation, and ported applications,
83253c3c73SYaroslav Tykhiywhich are usually found in
84786aa69aSBen Smithurst.Pa /usr/src ,
85253c3c73SYaroslav Tykhiy.Pa /usr/doc ,
86786aa69aSBen Smithurstand
87253c3c73SYaroslav Tykhiy.Pa /usr/ports .
88253c3c73SYaroslav TykhiyAs a rule, the system administrator creates
89253c3c73SYaroslav Tykhiy.Nm
90253c3c73SYaroslav Tykhiywhen the values of certain control variables need to be changed
91253c3c73SYaroslav Tykhiyfrom their defaults.
92786aa69aSBen Smithurst.Pp
93253c3c73SYaroslav TykhiyThe system build procedures occur in four broad areas:
94253c3c73SYaroslav Tykhiythe world, the kernel, documentation and ports.
959c488872SRuslan ErmilovVariables set in
96786aa69aSBen Smithurst.Nm
97253c3c73SYaroslav Tykhiymay be applicable in one, two, or all four of these areas.
98253c3c73SYaroslav TykhiyIn addition, control variables can be specified
99253c3c73SYaroslav Tykhiyfor a particular build via the
1009c488872SRuslan Ermilov.Fl D
101786aa69aSBen Smithurstoption of
102253c3c73SYaroslav Tykhiy.Xr make 1
103253c3c73SYaroslav Tykhiyor in
104253c3c73SYaroslav Tykhiy.Xr environ 7 .
105e83757f9SMateusz PiotrowskiIn the case of world and kernel builds it is possible to put these variables
106e83757f9SMateusz Piotrowskiinto
107e83757f9SMateusz Piotrowski.Xr src.conf 5
108e83757f9SMateusz Piotrowskiinstead of
109e83757f9SMateusz Piotrowski.Nm .
110e83757f9SMateusz PiotrowskiThis way the environment for documentation and ports builds is not polluted
111e83757f9SMateusz Piotrowskiby unrelated variables.
112786aa69aSBen Smithurst.Pp
1139c488872SRuslan ErmilovThe following lists provide a name and short description for each
1149c488872SRuslan Ermilovvariable you can use during the indicated builds.
1159c488872SRuslan ErmilovThe values of
116786aa69aSBen Smithurstvariables flagged as
1179c488872SRuslan Ermilov.Vt bool
118786aa69aSBen Smithurstare ignored; the variable being
119786aa69aSBen Smithurstset at all (even to
1209c488872SRuslan Ermilov.Dq Li FALSE
121786aa69aSBen Smithurstor
1229c488872SRuslan Ermilov.Dq Li NO )
1237f86e53dSGiorgos Keramidascauses it to
124786aa69aSBen Smithurstbe treated as if it were set.
125786aa69aSBen Smithurst.Pp
126786aa69aSBen SmithurstThe following list provides a name and short description for variables
127786aa69aSBen Smithurstthat are used for all builds, or are used by the
1289c488872SRuslan Ermilov.Pa makefiles
1299c488872SRuslan Ermilovfor things other than builds.
130786aa69aSBen Smithurst.Bl -tag -width Ar
131d911f786SMarcel Moolenaar.It Va ALWAYS_CHECK_MAKE
132d911f786SMarcel Moolenaar.Pq Vt bool
133d911f786SMarcel MoolenaarInstructs the top-level makefile in the source tree (normally
134d911f786SMarcel Moolenaar.Pa /usr/src )
135d911f786SMarcel Moolenaarto always check if
136d911f786SMarcel Moolenaar.Xr make 1
137d911f786SMarcel Moolenaaris up-to-date.
138d911f786SMarcel MoolenaarNormally this is only done for the world and buildworld targets to handle
139d911f786SMarcel Moolenaarupgrades from older versions of
140d911f786SMarcel Moolenaar.Fx .
1419c488872SRuslan Ermilov.It Va CFLAGS
14234455342SDima Dorfman.Pq Vt str
1439c488872SRuslan ErmilovControls the compiler setting when compiling C code.
1442410103cSRuslan ErmilovOptimization levels other than
145d489ec12SDima Dorfman.Fl O
146dca80b3cSDag-Erling Smørgravand
147dca80b3cSDag-Erling Smørgrav.Fl O2
1489c488872SRuslan Ermilovare not supported.
149a19f1419STom Rhodes.It Va CPUTYPE
150a19f1419STom Rhodes.Pq Vt str
151a19f1419STom RhodesControls which processor should be targeted for generated
152d962d52aSRuslan Ermilovcode.
153d962d52aSRuslan ErmilovThis controls processor-specific optimizations in
154a19f1419STom Rhodescertain code (currently only OpenSSL) as well as modifying
155a19f1419STom Rhodesthe value of
156a19f1419STom Rhodes.Va CFLAGS
157a19f1419STom Rhodesand
158a19f1419STom Rhodes.Va COPTFLAGS
159a19f1419STom Rhodesto contain the appropriate optimization directive to
160169d1075SEitan Adler.Xr cc 1 .
161a19f1419STom RhodesThe automatic setting of
162a19f1419STom Rhodes.Va CFLAGS
163a19f1419STom Rhodesmay be overridden using the
164a19f1419STom Rhodes.Va NO_CPU_CFLAGS
1651f664629SWarner Loshvariable.
166d962d52aSRuslan ErmilovRefer to
167a19f1419STom Rhodes.Pa /usr/share/examples/etc/make.conf
168a19f1419STom Rhodesfor a list of recognized
169a19f1419STom Rhodes.Va CPUTYPE
170a19f1419STom Rhodesoptions.
1719c488872SRuslan Ermilov.It Va CXXFLAGS
17234455342SDima Dorfman.Pq Vt str
1739c488872SRuslan ErmilovControls the compiler settings when compiling C++ code.
1749c488872SRuslan Ermilov.Va CXXFLAGS
1759c488872SRuslan Ermilovis initially set to the value of
1769c488872SRuslan Ermilov.Va CFLAGS .
1779c488872SRuslan ErmilovIf you want to
1789c488872SRuslan Ermilovadd to the
1799c488872SRuslan Ermilov.Va CXXFLAGS
1809c488872SRuslan Ermilovvalue, use
181786aa69aSBen Smithurst.Dq Li +=
182786aa69aSBen Smithurstinstead of
183786aa69aSBen Smithurst.Dq Li = .
18446375c65SEmmanuel Vadot.It Va DTC
18546375c65SEmmanuel Vadot.Pq Vt str
18646375c65SEmmanuel VadotSelect the compiler for DTS (Device Tree Syntax) file.
18746375c65SEmmanuel Vadot.Va DTC
18846375c65SEmmanuel Vadotis initially set to the value of dtc
1899c488872SRuslan Ermilov.It Va INSTALL
19034455342SDima Dorfman.Pq Vt str
1919c488872SRuslan Ermilovthe default install command.
192192858e8SSheldon HearnTo install only files for which the target differs or does not exist, use
193786aa69aSBen Smithurst.Bd -literal -offset indent
194fdcb6453SBryan DreweryINSTALL+= -C
195786aa69aSBen Smithurst.Ed
196192858e8SSheldon HearnNote that some makefiles (including those in
197192858e8SSheldon Hearn.Pa /usr/share/mk )
198192858e8SSheldon Hearnmay hardcode options for the supplied install command.
1999c488872SRuslan Ermilov.It Va LOCAL_DIRS
20034455342SDima Dorfman.Pq Vt str
2019c488872SRuslan ErmilovList any directories that should be entered when doing
202786aa69aSBen Smithurstmake's in
203786aa69aSBen Smithurst.Pa /usr/src
204786aa69aSBen Smithurstin this variable.
205a19f1419STom Rhodes.It Va MAKE_SHELL
206a19f1419STom Rhodes.Pq Vt str
207a19f1419STom RhodesControls the shell used internally by
208a19f1419STom Rhodes.Xr make 1
209a19f1419STom Rhodesto process the command scripts in makefiles.
210a19f1419STom Rhodes.Xr sh 1 ,
211a19f1419STom Rhodes.Xr ksh 1 ,
212a19f1419STom Rhodesand
213a19f1419STom Rhodes.Xr csh 1
214a19f1419STom Rhodesall currently supported.
215d962d52aSRuslan Ermilov.Pp
216d962d52aSRuslan Ermilov.Dl "MAKE_SHELL?=sh"
2179c488872SRuslan Ermilov.It Va MTREE_FOLLOWS_SYMLINKS
21834455342SDima Dorfman.Pq Vt str
2199c488872SRuslan ErmilovSet this to
2209c488872SRuslan Ermilov.Dq Fl L
2219c488872SRuslan Ermilovto cause
2229c488872SRuslan Ermilov.Xr mtree 8
2239c488872SRuslan Ermilovto follow symlinks.
2246614d157SJoseph Koshy.It Va NO_CPU_CFLAGS
2256614d157SJoseph Koshy.Pq Vt str
2266614d157SJoseph KoshySetting this variable will prevent CPU specific compiler flags
2276614d157SJoseph Koshyfrom being automatically added to
2286614d157SJoseph Koshy.Va CFLAGS
2296614d157SJoseph Koshyduring compile time.
230786aa69aSBen Smithurst.El
231addbe0bcSJoseph Koshy.Ss "BUILDING THE KERNEL"
232786aa69aSBen SmithurstThe following list provides a name and short description for variables
233786aa69aSBen Smithurstthat are only used doing a kernel build:
234786aa69aSBen Smithurst.Bl -tag -width Ar
2359c488872SRuslan Ermilov.It Va BOOTWAIT
23634455342SDima Dorfman.Pq Vt int
2379c488872SRuslan ErmilovControls the amount of time the kernel waits for a console keypress
2389c488872SRuslan Ermilovbefore booting the default kernel.
2399c488872SRuslan ErmilovThe value is approximately milliseconds.
2409c488872SRuslan ErmilovKeypresses are accepted by the BIOS before booting from disk,
241786aa69aSBen Smithurstmaking it possible to give custom boot parameters even when this is
242786aa69aSBen Smithurstset to 0.
2439c488872SRuslan Ermilov.It Va COPTFLAGS
24434455342SDima Dorfman.Pq Vt str
2459c488872SRuslan ErmilovControls the compiler settings when building the
2469c488872SRuslan Ermilovkernel.
2479c488872SRuslan ErmilovOptimization levels above
2489c488872SRuslan Ermilov.Oo Fl O ( O2 , No ...\& ) Oc
249d5499896SDavid E. O'Brienare not guaranteed to work.
250061cae1bSJordan K. Hubbard.It Va KERNCONF
25134455342SDima Dorfman.Pq Vt str
2529c488872SRuslan ErmilovControls which kernel configurations will be
2536164dd81SBen Smithurstbuilt by
2549c488872SRuslan Ermilov.Dq Li "${MAKE} buildkernel"
2556164dd81SBen Smithurstand installed by
2569c488872SRuslan Ermilov.Dq Li "${MAKE} installkernel" .
2576164dd81SBen SmithurstFor example,
2586164dd81SBen Smithurst.Bd -literal -offset indent
259e52710beSDima DorfmanKERNCONF=MINE DEBUG GENERIC OTHERMACHINE
2606164dd81SBen Smithurst.Ed
2619c488872SRuslan Ermilov.Pp
262a910f192SDima Dorfmanwill build the kernels specified by the config files
2636164dd81SBen Smithurst.Pa MINE , DEBUG , GENERIC ,
2646164dd81SBen Smithurstand
2656164dd81SBen Smithurst.Pa OTHERMACHINE ,
2666164dd81SBen Smithurstand install the kernel specified by the config file
2676164dd81SBen Smithurst.Pa MINE .
2686164dd81SBen SmithurstIt defaults to
2696164dd81SBen Smithurst.Pa GENERIC .
270a19f1419STom Rhodes.It Va MODULES_OVERRIDE
271a19f1419STom Rhodes.Pq Vt str
272a19f1419STom RhodesSet to a list of modules to build instead of all of them.
2736d50d5e4SWarner Losh.It Va NO_KERNELCLEAN
2746d50d5e4SWarner Losh.Pq Vt bool
2756d50d5e4SWarner LoshSet this to skip running
2766d50d5e4SWarner Losh.Dq Li "${MAKE} clean"
2776d50d5e4SWarner Loshduring
2786d50d5e4SWarner Losh.Dq Li "${MAKE} buildkernel" .
2799c488872SRuslan Ermilov.It Va NO_KERNELCONFIG
28034455342SDima Dorfman.Pq Vt bool
2819c488872SRuslan ErmilovSet this to skip running
282786aa69aSBen Smithurst.Xr config 8
283786aa69aSBen Smithurstduring
2849c488872SRuslan Ermilov.Dq Li "${MAKE} buildkernel" .
2856d50d5e4SWarner Losh.It Va NO_KERNELOBJ
2866d50d5e4SWarner Losh.Pq Vt bool
2876d50d5e4SWarner LoshSet this to skip running
2886d50d5e4SWarner Losh.Dq Li "${MAKE} obj"
2896d50d5e4SWarner Loshduring
2906d50d5e4SWarner Losh.Dq Li "${MAKE} buildkernel" .
2919c488872SRuslan Ermilov.It Va NO_MODULES
29234455342SDima Dorfman.Pq Vt bool
2939c488872SRuslan ErmilovSet to not build modules with the kernel.
2946614d157SJoseph Koshy.It Va PORTS_MODULES
2956614d157SJoseph KoshySet this to the list of ports you wish to rebuild every time the kernel
2966614d157SJoseph Koshyis built.
2976614d157SJoseph Koshy.It Va WITHOUT_MODULES
2986614d157SJoseph Koshy.Pq Vt str
2996614d157SJoseph KoshySet to a list of modules to exclude from the build.
3006614d157SJoseph KoshyThis provides a
3016614d157SJoseph Koshysomewhat easier way to exclude modules you are certain you will never
3026614d157SJoseph Koshyneed than specifying
3036614d157SJoseph Koshy.Va MODULES_OVERRIDE .
3046614d157SJoseph KoshyThis is applied
3056614d157SJoseph Koshy.Em after
3066614d157SJoseph Koshy.Va MODULES_OVERRIDE .
307786aa69aSBen Smithurst.El
308addbe0bcSJoseph Koshy.Ss "BUILDING THE WORLD"
309786aa69aSBen SmithurstThe following list provides a name and short description for variables
310786aa69aSBen Smithurstthat are used during the world build:
311786aa69aSBen Smithurst.Bl -tag -width Ar
31226acbcd1SRuslan Ermilov.It Va BOOT_COMCONSOLE_PORT
31326acbcd1SRuslan Ermilov.Pq Vt str
31426acbcd1SRuslan ErmilovThe port address to use for the console if the boot blocks have
31526acbcd1SRuslan Ermilovbeen configured to use a serial console instead of the keyboard/video card.
31626acbcd1SRuslan Ermilov.It Va BOOT_COMCONSOLE_SPEED
31726acbcd1SRuslan Ermilov.Pq Vt int
31826acbcd1SRuslan ErmilovThe baud rate to use for the console if the boot blocks have
31926acbcd1SRuslan Ermilovbeen configured to use a serial console instead of the keyboard/video card.
32026acbcd1SRuslan Ermilov.It Va BOOT_PXELDR_ALWAYS_SERIAL
32126acbcd1SRuslan Ermilov.Pq Vt bool
32226acbcd1SRuslan ErmilovCompile in the code into
32326acbcd1SRuslan Ermilov.Xr pxeboot 8
32426acbcd1SRuslan Ermilovthat forces the use of a serial console.
32526acbcd1SRuslan ErmilovThis is analogous to the
32626acbcd1SRuslan Ermilov.Fl h
32726acbcd1SRuslan Ermilovoption in
32826acbcd1SRuslan Ermilov.Xr boot 8
32926acbcd1SRuslan Ermilovblocks.
33026acbcd1SRuslan Ermilov.It Va BOOT_PXELDR_PROBE_KEYBOARD
33126acbcd1SRuslan Ermilov.Pq Vt bool
33226acbcd1SRuslan ErmilovCompile in the code into
33326acbcd1SRuslan Ermilov.Xr pxeboot 8
33426acbcd1SRuslan Ermilovthat probes the keyboard.
33526acbcd1SRuslan ErmilovIf no keyboard is found, boot with the dual console configuration.
33626acbcd1SRuslan ErmilovThis is analogous to the
33726acbcd1SRuslan Ermilov.Fl D
33826acbcd1SRuslan Ermilovoption in
33926acbcd1SRuslan Ermilov.Xr boot 8
34026acbcd1SRuslan Ermilovblocks.
34195ba4330SJacques Vidrine.It Va ENABLE_SUID_K5SU
34295ba4330SJacques Vidrine.Pq Vt bool
343aab6741fSMark MurraySet this if you wish to use the ksu utility.
344dca8ad69SRuslan ErmilovOtherwise, it will be
34595ba4330SJacques Vidrineinstalled without the set-user-ID bit set.
3467cc8320aSTim J. Robbins.It Va ENABLE_SUID_NEWGRP
3477cc8320aSTim J. Robbins.Pq Vt bool
3487cc8320aSTim J. RobbinsSet this to install
3497cc8320aSTim J. Robbins.Xr newgrp 1
3507cc8320aSTim J. Robbinswith the set-user-ID bit set.
3517cc8320aSTim J. RobbinsOtherwise,
3527cc8320aSTim J. Robbins.Xr newgrp 1
3537cc8320aSTim J. Robbinswill not be able to change users' groups.
35426acbcd1SRuslan Ermilov.It Va LOADER_TFTP_SUPPORT
35526acbcd1SRuslan Ermilov.Pq Vt bool
35626acbcd1SRuslan ErmilovBy default the
35726acbcd1SRuslan Ermilov.Xr pxeboot 8
35826acbcd1SRuslan Ermilovloader retrieves the kernel via NFS.
35926acbcd1SRuslan ErmilovDefining this and recompiling
360ca987d46SWarner Losh.Pa /usr/src/stand
36126acbcd1SRuslan Ermilovwill cause it to retrieve the kernel via TFTP.
36226acbcd1SRuslan ErmilovThis allows
36326acbcd1SRuslan Ermilov.Xr pxeboot 8
36426acbcd1SRuslan Ermilovto load a custom BOOTP diskless kernel yet
36526acbcd1SRuslan Ermilovstill mount the server's
36626acbcd1SRuslan Ermilov.Pa /
36726acbcd1SRuslan Ermilovrather than load the server's kernel.
36889c1ee78SHidetoshi Shimokawa.It Va LOADER_FIREWIRE_SUPPORT
36989c1ee78SHidetoshi Shimokawa.Pq Vt bool
37089c1ee78SHidetoshi ShimokawaDefining this and recompiling
371ca987d46SWarner Losh.Pa /usr/src/stand/i386
37289c1ee78SHidetoshi Shimokawawill add
37389c1ee78SHidetoshi Shimokawa.Xr dcons 4
37489c1ee78SHidetoshi Shimokawaconsole driver to
37589c1ee78SHidetoshi Shimokawa.Xr loader 8
37689c1ee78SHidetoshi Shimokawaand allow access over FireWire(IEEE1394) using
37789c1ee78SHidetoshi Shimokawa.Xr dconschat 8 .
37889c1ee78SHidetoshi ShimokawaCurrently, only i386 and amd64 are supported.
37915382083SIan Lepore.It Va MAN_ARCH
38015382083SIan Lepore.Pq Vt str
38115382083SIan LeporeSpace-delimited list of one or more MACHINE and/or MACHINE_ARCH values
38215382083SIan Leporefor which section 4 man pages will be installed.
38315382083SIan LeporeThe special value
38415382083SIan Lepore.Sq all
38515382083SIan Leporeinstalls all available architectures.
3860a0f7486SFernando ApesteguíaIt is also the default value.
3879c488872SRuslan Ermilov.It Va MODULES_WITH_WORLD
38834455342SDima Dorfman.Pq Vt bool
3899c488872SRuslan ErmilovSet to build modules with the system instead of the kernel.
3906614d157SJoseph Koshy.It Va NO_CLEAN
3916614d157SJoseph Koshy.Pq Vt bool
3926614d157SJoseph KoshySet this to disable cleaning during
3936614d157SJoseph Koshy.Dq Li "make buildworld" .
3946614d157SJoseph KoshyThis should not be set unless you know what you are doing.
3956614d157SJoseph Koshy.It Va NO_CLEANDIR
3966614d157SJoseph Koshy.Pq Vt bool
3976614d157SJoseph KoshySet this to run
3986614d157SJoseph Koshy.Dq Li "${MAKE} clean"
3996614d157SJoseph Koshyinstead of
4006614d157SJoseph Koshy.Dq Li "${MAKE} cleandir" .
4010abe2561SWarner Losh.It Va WITH_MANCOMPRESS
4020abe2561SWarner Losh.Pq Vt defined
4030abe2561SWarner LoshSet to install manual pages compressed.
4040abe2561SWarner Losh.It Va WITHOUT_MANCOMPRESS
4050abe2561SWarner Losh.Pq Vt defined
4066614d157SJoseph KoshySet to install manual pages uncompressed.
4076614d157SJoseph Koshy.It Va NO_SHARE
4086614d157SJoseph Koshy.Pq Vt bool
4096614d157SJoseph KoshySet to not build in the
4106614d157SJoseph Koshy.Pa share
4116614d157SJoseph Koshysubdir.
4126614d157SJoseph Koshy.It Va NO_SHARED
4136614d157SJoseph Koshy.Pq Vt bool
414d54a903aSChristian BruefferSet to build
4156614d157SJoseph Koshy.Pa /bin
4166614d157SJoseph Koshyand
4176614d157SJoseph Koshy.Pa /sbin
4186614d157SJoseph Koshystatically linked, this can be bad.
4196614d157SJoseph KoshyIf set, every utility that uses
4206614d157SJoseph Koshy.Pa bsd.prog.mk
4216614d157SJoseph Koshywill be linked statically.
4224401fa9bSEmmanuel Vadot.It Va PKG_REPO_SIGNING_KEY
4234401fa9bSEmmanuel Vadot.Pq Vt str
4244401fa9bSEmmanuel VadotPath to rsa private key passed to
4254401fa9bSEmmanuel Vadot.Xr pkg-repo 8
4264401fa9bSEmmanuel Vadotto sign packages created when building the
4274401fa9bSEmmanuel Vadot.Ar packages
4284401fa9bSEmmanuel Vadottarget, i.e.: pkgbase.
4294401fa9bSEmmanuel VadotThe variable is named the same in
4304401fa9bSEmmanuel Vadot.Xr poudriere 8
4314401fa9bSEmmanuel Vadotso it will automatically be picked up when building pkgbase with poudriere.
432dd991de0SRuslan Ermilov.It Va PPP_NO_NAT
433dd991de0SRuslan Ermilov.Pq Vt bool
434dd991de0SRuslan ErmilovBuild
435dd991de0SRuslan Ermilov.Xr ppp 8
436dd991de0SRuslan Ermilovwithout support for network address translation (NAT).
437dd991de0SRuslan Ermilov.It Va PPP_NO_NETGRAPH
438368e43f7STom Rhodes.Pq Vt bool
439368e43f7STom RhodesSet to build
440368e43f7STom Rhodes.Xr ppp 8
441dd991de0SRuslan Ermilovwithout support for Netgraph.
442dd991de0SRuslan Ermilov.It Va PPP_NO_RADIUS
443dd991de0SRuslan Ermilov.Pq Vt bool
444368e43f7STom RhodesSet to build
445368e43f7STom Rhodes.Xr ppp 8
446dd991de0SRuslan Ermilovwithout support for RADIUS.
447dd991de0SRuslan Ermilov.It Va PPP_NO_SUID
44834455342SDima Dorfman.Pq Vt bool
4499c488872SRuslan ErmilovSet to disable the installation of
4509c488872SRuslan Ermilov.Xr ppp 8
451dd991de0SRuslan Ermilovas a set-user-ID root program.
4526614d157SJoseph Koshy.It Va SENDMAIL_ADDITIONAL_MC
4536614d157SJoseph Koshy.Pq Vt str
4546614d157SJoseph KoshyAdditional
4556614d157SJoseph Koshy.Pa .mc
4566614d157SJoseph Koshyfiles which should be built into
4576614d157SJoseph Koshy.Pa .cf
4586614d157SJoseph Koshyfiles at build time.
4596614d157SJoseph KoshyThe value should include the full path to the
4606614d157SJoseph Koshy.Pa .mc
4616614d157SJoseph Koshyfile(s), e.g.,
4627b1d17a1SGlen Barber.Pa /etc/mail/foo.mc ,
4636614d157SJoseph Koshy.Pa /etc/mail/bar.mc .
464f3cb22fcSGregory Neil Shapiro.It Va SENDMAIL_ALIASES
465f3cb22fcSGregory Neil Shapiro.Pq Vt str
466f3cb22fcSGregory Neil ShapiroList of
467f3cb22fcSGregory Neil Shapiro.Xr aliases 5
468f3cb22fcSGregory Neil Shapirofiles to rebuild when using
469f3cb22fcSGregory Neil Shapiro.Pa /etc/mail/Makefile .
470f3cb22fcSGregory Neil ShapiroThe default value is
471f3cb22fcSGregory Neil Shapiro.Pa /etc/mail/aliases .
4726614d157SJoseph Koshy.It Va SENDMAIL_CFLAGS
4736614d157SJoseph Koshy.Pq Vt str
4746614d157SJoseph KoshyFlags to pass to the compile command when building
4756614d157SJoseph Koshy.Xr sendmail 8 .
4766614d157SJoseph KoshyThe
4776614d157SJoseph Koshy.Va SENDMAIL_*
4786614d157SJoseph Koshyflags can be used to provide SASL support with setting such as:
4796614d157SJoseph Koshy.Bd -literal -offset indent
4806614d157SJoseph KoshySENDMAIL_CFLAGS=-I/usr/local/include -DSASL
4816614d157SJoseph KoshySENDMAIL_LDFLAGS=-L/usr/local/lib
4826614d157SJoseph KoshySENDMAIL_LDADD=-lsasl
4836614d157SJoseph Koshy.Ed
4846614d157SJoseph Koshy.It Va SENDMAIL_CF_DIR
4856614d157SJoseph Koshy.Pq Vt str
4866614d157SJoseph KoshyOverride the default location for the
4876614d157SJoseph Koshy.Xr m4 1
4886614d157SJoseph Koshyconfiguration files used to build a
4896614d157SJoseph Koshy.Pa .cf
4906614d157SJoseph Koshyfile from a
4916614d157SJoseph Koshy.Pa .mc
4926614d157SJoseph Koshyfile.
4936614d157SJoseph Koshy.It Va SENDMAIL_DPADD
4946614d157SJoseph Koshy.Pq Vt str
4956614d157SJoseph KoshyExtra dependencies to add when building
4966614d157SJoseph Koshy.Xr sendmail 8 .
4976614d157SJoseph Koshy.It Va SENDMAIL_LDADD
4986614d157SJoseph Koshy.Pq Vt str
4996614d157SJoseph KoshyFlags to add to the end of the
5006614d157SJoseph Koshy.Xr ld 1
5016614d157SJoseph Koshycommand when building
5026614d157SJoseph Koshy.Xr sendmail 8 .
5036614d157SJoseph Koshy.It Va SENDMAIL_LDFLAGS
5046614d157SJoseph Koshy.Pq Vt str
5056614d157SJoseph KoshyFlags to pass to the
5066614d157SJoseph Koshy.Xr ld 1
5076614d157SJoseph Koshycommand when building
5086614d157SJoseph Koshy.Xr sendmail 8 .
5096614d157SJoseph Koshy.It Va SENDMAIL_M4_FLAGS
5106614d157SJoseph Koshy.Pq Vt str
5116614d157SJoseph KoshyFlags passed to
5126614d157SJoseph Koshy.Xr m4 1
5136614d157SJoseph Koshywhen building a
5146614d157SJoseph Koshy.Pa .cf
5156614d157SJoseph Koshyfile from a
5166614d157SJoseph Koshy.Pa .mc
5176614d157SJoseph Koshyfile.
5186614d157SJoseph Koshy.It Va SENDMAIL_MAP_PERMS
5196614d157SJoseph Koshy.Pq Vt str
5206614d157SJoseph KoshyMode to use when generating alias and map database files using
5216614d157SJoseph Koshy.Pa /etc/mail/Makefile .
5226614d157SJoseph KoshyThe default value is 0640.
523f3cb22fcSGregory Neil Shapiro.It Va SENDMAIL_MAP_SRC
524f3cb22fcSGregory Neil Shapiro.Pq Vt str
525f3cb22fcSGregory Neil ShapiroAdditional maps to rebuild when using
526f3cb22fcSGregory Neil Shapiro.Pa /etc/mail/Makefile .
527f3cb22fcSGregory Neil ShapiroThe
528f3cb22fcSGregory Neil Shapiro.Pa access ,
529f3cb22fcSGregory Neil Shapiro.Pa bitdomain ,
530f3cb22fcSGregory Neil Shapiro.Pa domaintable ,
531f3cb22fcSGregory Neil Shapiro.Pa genericstable ,
532f3cb22fcSGregory Neil Shapiro.Pa mailertable ,
533f3cb22fcSGregory Neil Shapiro.Pa uucpdomain ,
534f3cb22fcSGregory Neil Shapiroand
535f3cb22fcSGregory Neil Shapiro.Pa virtusertable
536f3cb22fcSGregory Neil Shapiromaps are always rebuilt if they exist.
537f3cb22fcSGregory Neil Shapiro.It Va SENDMAIL_MAP_TYPE
538f3cb22fcSGregory Neil Shapiro.Pq Vt str
539f3cb22fcSGregory Neil ShapiroDatabase map type to use when generating map database files using
540f3cb22fcSGregory Neil Shapiro.Pa /etc/mail/Makefile .
541f3cb22fcSGregory Neil ShapiroThe default value is hash.
542f3cb22fcSGregory Neil ShapiroThe alternative is btree.
54325219d25SGregory Neil Shapiro.It Va SENDMAIL_MC
54434455342SDima Dorfman.Pq Vt str
545bf7f20c2SRuslan ErmilovThe default
546bf7f20c2SRuslan Ermilov.Xr m4 1
547bf7f20c2SRuslan Ermilovconfiguration file to use at install time.
54801f72632SRuslan ErmilovThe value should include the full path to the
54901f72632SRuslan Ermilov.Pa .mc
55001f72632SRuslan Ermilovfile, e.g.,
551d1885c41SGregory Neil Shapiro.Pa /etc/mail/myconfig.mc .
55225219d25SGregory Neil ShapiroUse with caution as a make install will overwrite any existing
55325219d25SGregory Neil Shapiro.Pa /etc/mail/sendmail.cf .
55425219d25SGregory Neil ShapiroNote that
55525219d25SGregory Neil Shapiro.Va SENDMAIL_CF
55624619588SWarner Loshis deprecated.
5576614d157SJoseph Koshy.It Va SENDMAIL_SET_USER_ID
5586614d157SJoseph Koshy.Pq Vt bool
5596614d157SJoseph KoshyIf set, install
5606614d157SJoseph Koshy.Xr sendmail 8
5616614d157SJoseph Koshyas a set-user-ID root binary instead of a set-group-ID binary
5626614d157SJoseph Koshyand do not install
5636614d157SJoseph Koshy.Pa /etc/mail/submit.{cf,mc} .
5646614d157SJoseph KoshyUse of this flag is not recommended and the alternative advice in
5656614d157SJoseph Koshy.Pa /etc/mail/README
5666614d157SJoseph Koshyshould be followed instead if at all possible.
567f3cb22fcSGregory Neil Shapiro.It Va SENDMAIL_START_SCRIPT
568f3cb22fcSGregory Neil Shapiro.Pq Vt str
569f3cb22fcSGregory Neil ShapiroThe script used by
570f3cb22fcSGregory Neil Shapiro.Pa /etc/mail/Makefile
571f3cb22fcSGregory Neil Shapiroto start, stop, and restart
572f3cb22fcSGregory Neil Shapiro.Xr sendmail 8 .
573f3cb22fcSGregory Neil ShapiroThe default value is
574*e1184adeSBaptiste Daroussin.Pa /etc/rc.d/sendmail .
57514d6d765SGregory Neil Shapiro.It Va SENDMAIL_SUBMIT_MC
57614d6d765SGregory Neil Shapiro.Pq Vt str
577bf7f20c2SRuslan ErmilovThe default
578bf7f20c2SRuslan Ermilov.Xr m4 1
579bf7f20c2SRuslan Ermilovconfiguration file for mail submission
58014d6d765SGregory Neil Shapiroto use at install time.
58114d6d765SGregory Neil ShapiroThe value should include the full path to the
58214d6d765SGregory Neil Shapiro.Pa .mc
58314d6d765SGregory Neil Shapirofile, e.g.,
58414d6d765SGregory Neil Shapiro.Pa /etc/mail/mysubmit.mc .
58514d6d765SGregory Neil ShapiroUse with caution as a make install will overwrite any existing
58614d6d765SGregory Neil Shapiro.Pa /etc/mail/submit.cf .
587a19f1419STom Rhodes.It Va TOP_TABLE_SIZE
588a19f1419STom Rhodes.Pq Vt int
589a19f1419STom Rhodes.Xr top 1
590d962d52aSRuslan Ermilovuses a hash table for the user names.
591d962d52aSRuslan ErmilovThe size of this hash can be tuned to match the number of local users.
592d962d52aSRuslan ErmilovThe table size should be a prime number
593a19f1419STom Rhodesapproximately twice as large as the number of lines in
594a19f1419STom Rhodes.Pa /etc/passwd .
595a19f1419STom RhodesThe default number is 20011.
596d5499896SDavid E. O'Brien.It Va WANT_FORCE_OPTIMIZATION_DOWNGRADE
597d5499896SDavid E. O'Brien.Pq Vt int
598d5499896SDavid E. O'BrienCauses the system compiler to be built such that it forces high optimization
599d5499896SDavid E. O'Brienlevels to a lower one.
600169d1075SEitan Adler.Xr cc 1
60130b39270SRuslan Ermilov.Fl O2
60230b39270SRuslan Ermilovand above is known to trigger known optimizer bugs at various
60354711151SWilko Bultetimes.
604d5499896SDavid E. O'BrienThe value assigned is the highest optimization value used.
605786aa69aSBen Smithurst.El
606addbe0bcSJoseph Koshy.Ss "BUILDING DOCUMENTATION"
607786aa69aSBen SmithurstThe following list provides a name and short description for variables
608786aa69aSBen Smithurstthat are used when building documentation.
609addbe0bcSJoseph Koshy.Bl -tag -width ".Va PRINTERDEVICE"
6109c488872SRuslan Ermilov.It Va DOC_LANG
61134455342SDima Dorfman.Pq Vt str
612abb0d7d3SCeri DaviesThe list of languages to build and install when building documentation
613abb0d7d3SCeri Daviesin
614abb0d7d3SCeri Davies.Pa /usr/doc .
6159c488872SRuslan Ermilov.It Va PRINTERDEVICE
61634455342SDima Dorfman.Pq Vt str
617abb0d7d3SCeri DaviesThe default format for system documentation in
618abb0d7d3SCeri Davies.Pa /usr/src/share/doc ,
619abb0d7d3SCeri Daviesdepends on your printer.
6209c488872SRuslan ErmilovThis can be set to
621786aa69aSBen Smithurst.Dq Li ascii
622e5f3fe8cSRuslan Ermilovfor simple printers, or
623786aa69aSBen Smithurst.Dq Li ps
624786aa69aSBen Smithurstfor postscript or graphics printers with a ghostscript
625e5f3fe8cSRuslan Ermilovfilter, or both.
626786aa69aSBen Smithurst.El
62759be36b0SBenjamin Kaduk.Ss "BUILDING PORTS"
62859be36b0SBenjamin KadukSeveral make variables can be set that affect the building of ports.
62959be36b0SBenjamin KadukThese variables and their effects are documented in
63059be36b0SBenjamin Kaduk.Xr ports 7 ,
63159be36b0SBenjamin Kaduk.Pa ${PORTSDIR}/Mk/*
63259be36b0SBenjamin Kadukand the
63359be36b0SBenjamin Kaduk.Fx
63459be36b0SBenjamin KadukPorter's Handbook.
635786aa69aSBen Smithurst.Sh FILES
6361ca805f2SRuslan Ermilov.Bl -tag -width ".Pa /usr/share/examples/etc/make.conf" -compact
637786aa69aSBen Smithurst.It Pa /etc/make.conf
638786aa69aSBen Smithurst.It Pa /usr/doc/Makefile
63969c488cdSRuslan Ermilov.It Pa /usr/ports/Makefile
6401ca805f2SRuslan Ermilov.It Pa /usr/share/examples/etc/make.conf
641253c3c73SYaroslav Tykhiy.It Pa /usr/share/mk/sys.mk
642786aa69aSBen Smithurst.It Pa /usr/src/Makefile
643786aa69aSBen Smithurst.It Pa /usr/src/Makefile.inc1
6443136363fSRuslan Ermilov.El
645786aa69aSBen Smithurst.Sh SEE ALSO
646169d1075SEitan Adler.Xr cc 1 ,
647786aa69aSBen Smithurst.Xr install 1 ,
648786aa69aSBen Smithurst.Xr make 1 ,
649862aa05fSRuslan Ermilov.Xr src.conf 5 ,
6503d31df21SMateusz Piotrowski.Xr style.Makefile 5 ,
651253c3c73SYaroslav Tykhiy.Xr environ 7 ,
652786aa69aSBen Smithurst.Xr ports 7 ,
653862aa05fSRuslan Ermilov.Xr sendmail 8
654786aa69aSBen Smithurst.Sh HISTORY
655786aa69aSBen SmithurstThe
656786aa69aSBen Smithurst.Nm
657786aa69aSBen Smithurstfile appeared sometime before
658786aa69aSBen Smithurst.Fx 4.0 .
659786aa69aSBen Smithurst.Sh AUTHORS
6609c488872SRuslan ErmilovThis
6619c488872SRuslan Ermilovmanual page was written by
662a63d6c94SBaptiste Daroussin.An Mike W. Meyer Aq Mt mwm@mired.org .
6632f29b444SHartmut Brandt.Sh CAVEATS
6642f29b444SHartmut BrandtNote, that
6652f29b444SHartmut Brandt.Ev MAKEOBJDIRPREFIX
6662f29b444SHartmut Brandtand
6672f29b444SHartmut Brandt.Ev MAKEOBJDIR
6682f29b444SHartmut Brandtare environment variables and should not be set in
6692f29b444SHartmut Brandt.Nm
670c16bac23SGlen Barberor as command line arguments to
671c16bac23SGlen Barber.Xr make 1 ,
6722f29b444SHartmut Brandtbut in make's environment.
6730afc94c1SUlrich Spörlein.Sh BUGS
6740afc94c1SUlrich SpörleinThis manual page may occasionally be out of date with respect to
6750afc94c1SUlrich Spörleinthe options currently available for use in
6760afc94c1SUlrich Spörlein.Nm .
6770afc94c1SUlrich SpörleinPlease check the
6780afc94c1SUlrich Spörlein.Pa /usr/share/examples/etc/make.conf
6790afc94c1SUlrich Spörleinfile for the latest options which are available.
680