xref: /freebsd/share/examples/etc/make.conf (revision 315ee00fa9616b0a192b6834911f98bcf5316a6b)
1#
2# NOTE:  Please would any committer updating this file also update the
3# make.conf(5) manual page, if necessary, which is located in
4# src/share/man/man5/make.conf.5.
5#
6# /etc/make.conf, if present, will be read by make (see
7# /usr/share/mk/sys.mk).  It allows you to override macro definitions
8# to make without changing your source tree, or anything the source
9# tree installs.
10#
11# This file must be in valid Makefile syntax.
12#
13# There are additional things you can put into /etc/make.conf.
14# You have to find those in the Makefiles and documentation of
15# the source tree.
16#
17# Note, that you should not set MAKEOBJDIRPREFIX or MAKEOBJDIR
18# from make.conf (or as command line variables to make).
19# Both variables are environment variables for make and must be used as:
20#
21# env MAKEOBJDIRPREFIX=/big/directory make
22#
23#
24# The CPUTYPE variable controls which processor should be targeted for
25# generated code.  This controls processor-specific optimizations in
26# certain code (currently only OpenSSL) as well as modifying the value
27# of CFLAGS to contain the appropriate optimization directive to cc.
28# The automatic setting of CFLAGS may be overridden using the
29# NO_CPU_CFLAGS variable below.
30# Currently the following CPU types are recognized:
31#   Intel x86 architecture:
32#       (AMD CPUs)	znver3, znver2, znver1, bdver4, bdver3, bdver2, bdver1,
33#			btver2, btver1, amdfam10, opteron-sse3, athlon64-sse3,
34#			k8-sse3, opteron, athlon64, athlon-fx, k8, athlon-mp,
35#			athlon-xp, athlon-4, athlon-tbird, athlon, k7, geode,
36#			k6-3, k6-2, k6
37#       (Intel CPUs)	alderlake, sapphirerapids, tigerlake, cooperlake,
38#			cascadelake, tremont, goldmont-plus, icelake-server,
39#			icelake-client, cannonlake, knm, skylake-avx512, knl,
40#			goldmont, skylake, broadwell, haswell, ivybridge,
41#			sandybridge, westmere, nehalem, silvermont, bonnell,
42#			core2, core, nocona, pentium4m, pentium4, prescott,
43#			pentium3m, pentium3, pentium-m, pentium2, pentiumpro,
44#			pentium-mmx, pentium, i486
45#       (VIA CPUs)	c7, c3-2, c3
46#   ARM architecture:	armv5, armv5te, armv6, armv6t2, arm1176jzf-s, armv7,
47#			armv7-a, armv7ve, generic-armv7-a, cortex-a5,
48#			cortex-a7, cortex-a8, cortex-a9, cortex-a12,
49#			cortex-a15, cortex-a17
50#   ARM64 architecture:	cortex-a53, cortex-a57, cortex-a72,
51#				exynos-m1
52#
53# (?= allows to buildworld for a different CPUTYPE.)
54#
55#CPUTYPE?=pentium3
56#NO_CPU_CFLAGS=		# Don't add -march=<cpu> to CFLAGS automatically
57#
58# CFLAGS controls the compiler settings used when compiling C code.
59# Note that optimization settings other than -O and -O2 are not recommended
60# or supported for compiling the world or the kernel - please revert any
61# nonstandard optimization settings
62# before submitting bug reports without patches to the developers.
63#
64# CFLAGS.arch provides a mechanism for applying CFLAGS only when building
65# the given architecture.  This is useful primarily on a system used for
66# cross-building, when you have a set of flags to apply to the TARGET_ARCH
67# being cross-built but don't want those settings applied to building the
68# cross-tools or other components that run on the build host machine.
69#
70# CXXFLAGS controls the compiler settings used when compiling C++ code.
71# Note that CXXFLAGS is initially set to the value of CFLAGS.  If you wish
72# to add to CXXFLAGS value, "+=" must be used rather than "=".  Using "="
73# alone will remove the often needed contents of CFLAGS from CXXFLAGS.
74#
75# Additional compiler flags can be specified that extend or override
76# default ones. However, neither the base system nor ports are guaranteed
77# to build and function without problems with non-default settings.
78#
79# CFLAGS+=	-msse3
80# CXXFLAGS+=	-msse3
81# CFLAGS.armv6+= -mfloat-abi=softfp
82#
83# MAKE_SHELL controls the shell used internally by make(1) to process the
84# command scripts in makefiles.  Three shells are supported, sh, ksh, and
85# csh.  Using sh is most common, and advised.  Using ksh *may* work, but is
86# not guaranteed to.  Using csh is absurd.  The default is to use sh.
87#
88#MAKE_SHELL?=sh
89#
90# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested
91# for use in developing FreeBSD and testing changes.  They can be used by
92# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf.  -Wconversion is not
93# included here due to compiler bugs, e.g., mkdir()'s mode_t argument.
94#
95#BDECFLAGS=	-W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
96#		-Wcast-qual -Wchar-subscripts -Winline \
97#		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
98#		-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
99#
100# To compile just the kernel with special optimizations, you should use
101# this instead of CFLAGS (which is not applicable to kernel builds anyway).
102# There is very little to gain by using higher optimization levels, and doing
103# so can cause problems.
104#
105#COPTFLAGS= -O -pipe
106#
107# Compare before install.
108#INSTALL+= -C
109#
110# Mtree will follow symlinks.
111#MTREE_FOLLOWS_SYMLINKS= -L
112#
113# To enable installing newgrp(1) with the setuid bit turned on.
114# Without the setuid bit, newgrp cannot change users' groups.
115#ENABLE_SUID_NEWGRP=
116#
117# To avoid building various parts of the base system:
118#NO_MODULES=		# do not build modules with the kernel
119#NO_SHARE=		# do not go into the share subdir
120#NO_SHARED= 		# build /bin and /sbin statically linked (bad idea)
121#
122# Variables that control how ppp(8) is built.
123#PPP_NO_NAT= 		# do not build with NAT support (see make.conf(5))
124#PPP_NO_NETGRAPH= 	# do not build with Netgraph support
125#PPP_NO_RADIUS= 	# do not build with RADIUS support
126#PPP_NO_SUID=		# build with normal permissions
127#
128#TRACEROUTE_NO_IPSEC= 	# do not build traceroute(8) with IPSEC support
129#
130# To build sys/modules when building the world (our old way of doing things).
131#MODULES_WITH_WORLD=	# do not build modules when building kernel
132#
133# The list of modules to build instead of all of them.
134#MODULES_OVERRIDE=	linux ipfw
135#
136# The list of modules to never build, applied *after* MODULES_OVERRIDE.
137#WITHOUT_MODULES=	plip
138#
139# If you do not want unformatted manual pages to be compressed
140# when they are installed:
141#
142#WITHOUT_MANCOMPRESS=t
143#
144#
145# Default format for system documentation in share/doc, depends on
146# your printer.  Set this to "ascii" for simple printers or screen.
147#
148#PRINTERDEVICE=	ps
149#
150#
151# How long to wait for a console keypress before booting the default kernel.
152# This value is approximately in milliseconds. Keypresses are accepted by the
153# BIOS before booting from disk, making it possible to give custom boot
154# parameters even when this is set to 0.
155#
156#BOOTWAIT=0
157#BOOTWAIT=30000
158#
159# By default, the system will always use the keyboard/video card as system
160# console.  However, the boot blocks may be dynamically configured to use a
161# serial port in addition to or instead of the keyboard/video console.
162#
163# By default we use COM1 as our serial console port *if* we're going to use
164# a serial port as our console at all.  Alter as necessary.
165#
166#   COM1: = 0x3F8, COM2: = 0x2F8, COM3: = 0x3E8, COM4: = 0x2E8
167#
168#BOOT_COMCONSOLE_PORT=	0x3F8
169#
170# The default serial console speed is 115200. It can be set to a different
171# rate, if desired in your environment.
172#
173#BOOT_COMCONSOLE_SPEED=	9600
174#
175# By default the 'pxeboot' loader retrieves the kernel via NFS.  Defining
176# this and recompiling /usr/src/stand will cause it to retrieve the kernel
177# via TFTP.  This allows pxeboot to load a custom BOOTP diskless kernel yet
178# still mount the server's '/' (i.e. rather than load the server's kernel).
179#
180#LOADER_TFTP_SUPPORT= YES
181#
182#
183# Kerberos 5 su (k5su)
184# If you want to use the k5su utility, define this to have it installed
185# set-user-ID.
186#ENABLE_SUID_K5SU=
187#
188#
189# top(1) uses a hash table for the user names.  The size of this hash
190# can be tuned to match the number of local users.  The table size should
191# be a prime number approximately twice as large as the number of lines in
192# /etc/passwd.  The default number is 20011.
193#
194#TOP_TABLE_SIZE= 101
195#
196# Documentation
197#
198# The list of languages to build and install.
199#
200#DOC_LANG=	en ru
201#
202#
203# sendmail
204#
205# The following sets the default m4 configuration file to use at
206# install time.  Use with caution as a make install will overwrite
207# any existing /etc/mail/sendmail.cf.  Note that SENDMAIL_CF is now
208# deprecated.  The value should be a fully qualified path name.
209#
210#SENDMAIL_MC=/etc/mail/myconfig.mc
211#
212# The following sets the default m4 configuration file for mail
213# submission to use at install time.  Use with caution as a make
214# install will overwrite any existing /etc/mail/submit.cf.  The
215# value should be a fully qualified path name.
216#
217#SENDMAIL_SUBMIT_MC=/etc/mail/mysubmit.mc
218#
219# If you need to build additional .cf files during a make buildworld,
220# include the full paths to the .mc files in SENDMAIL_ADDITIONAL_MC.
221#
222#SENDMAIL_ADDITIONAL_MC=/etc/mail/foo.mc /etc/mail/bar.mc
223#
224# The following overrides the default location for the m4 configuration
225# files used to build a .cf file from a .mc file.
226#
227#SENDMAIL_CF_DIR=/usr/local/share/sendmail/cf
228#
229# Setting the following variable modifies the flags passed to m4 when
230# building a .cf file from a .mc file.  It can be used to enable
231# features disabled by default.
232#
233#SENDMAIL_M4_FLAGS=
234#
235# Setting the following variables modifies the build environment for
236# sendmail and its related utilities. For example, SASL support can be
237# added with settings such as:
238#
239#    with SASLv1:
240#	SENDMAIL_CFLAGS=-I/usr/local/include/sasl1 -DSASL
241#	SENDMAIL_LDADD=/usr/local/lib/libsasl.so
242#
243#    with SASLv2:
244#	SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
245#	SENDMAIL_LDADD=/usr/local/lib/libsasl2.so
246#
247# Note: If you are using Cyrus SASL with other applications which require
248#	access to the sasldb file, you should add the following to your
249#	sendmail.mc file:
250#
251#	define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLDBFile')
252#
253#SENDMAIL_CFLAGS=
254#SENDMAIL_LDFLAGS=
255#SENDMAIL_LDADD=
256#SENDMAIL_DPADD=
257#
258# Setting SENDMAIL_SET_USER_ID will install the sendmail binary as a
259# set-user-ID root binary instead of a set-group-ID smmsp binary and will
260# prevent the installation of /etc/mail/submit.cf.
261# This is a deprecated mode of operation.  See etc/mail/README for more
262# information.
263#
264#SENDMAIL_SET_USER_ID=
265#
266# The permissions to use on alias and map databases generated using
267# /etc/mail/Makefile.  Defaults to 0640.
268#
269#SENDMAIL_MAP_PERMS=
270#
271#
272# It is also possible to set variables in make.conf which will only be
273# used when compiling a specific port.  For more details see make(1).
274#
275#.if ${.CURDIR:M*/irc/irssi-devel*}
276#WITH_DEBUG=YES
277#.endif
278#
279# Another approach is to use /usr/ports/ports-mgmt/portconf which has
280# its own config file for port specific options.
281