make.conf revision 217826
150472Speter# $FreeBSD: head/share/examples/etc/make.conf 217826 2011-01-25 15:06:50Z sem $
21664Sphk#
369040Sben# NOTE:  Please would any committer updating this file also update the
469040Sben# make.conf(5) manual page, if necessary, which is located in
569040Sben# src/share/man/man5/make.conf.5.
669040Sben#
782604Salex# /etc/make.conf, if present, will be read by make (see
882604Salex# /usr/share/mk/sys.mk).  It allows you to override macro definitions
982604Salex# to make without changing your source tree, or anything the source
1082604Salex# tree installs.
111664Sphk#
123023Srgrimes# This file must be in valid Makefile syntax.
133023Srgrimes#
1482604Salex# There are additional things you can put into /etc/make.conf.
1582604Salex# You have to find those in the Makefiles and documentation of
1682604Salex# the source tree.
171664Sphk#
18133476Sharti# Note, that you should not set MAKEOBJDIRPREFIX or MAKEOBJDIR
19133476Sharti# from make.conf (or as command line variables to make).
20133476Sharti# Both variables are environment variables for make and must be used as:
2172679Skris#
22133476Sharti# env MAKEOBJDIRPREFIX=/big/directory make
23133476Sharti#
24133476Sharti#
2599260Sjohan# The CPUTYPE variable controls which processor should be targeted for
2672878Skris# generated code.  This controls processor-specific optimizations in
2772878Skris# certain code (currently only OpenSSL) as well as modifying the value
2872878Skris# of CFLAGS to contain the appropriate optimization directive to gcc.
2972878Skris# The automatic setting of CFLAGS may be overridden using the
3072878Skris# NO_CPU_CFLAGS variable below.
3199260Sjohan# Currently the following CPU types are recognized:
3273145Skris#   Intel x86 architecture:
33136608Sobrien#       (AMD CPUs)	opteron athlon64 athlon-mp athlon-xp athlon-4
34146001Sdes#			athlon-tbird athlon k8 k6-3 k6-2 k6 k5
35166069Sdes#       (Intel CPUs)	core2 core nocona pentium4m pentium4 prescott
36166069Sdes#			pentium3m pentium3 pentium-m pentium2
37166069Sdes#			pentiumpro pentium-mmx pentium i486 i386
38160497Sdes#       (Via CPUs)	c3 c3-2
39166069Sdes#   AMD64 architecture: opteron, athlon64, nocona, prescott, core2
40142499Strhodes#   Intel ia64 architecture: itanium2, itanium
41216820Smarius#   SPARC-V9 architecture:	v9 (generic 64-bit V9), ultrasparc (default
42216820Smarius#				if omitted), ultrasparc3
4372679Skris#
44101232Sru# (?= allows to buildworld for a different CPUTYPE.)
45101232Sru#
46136608Sobrien#CPUTYPE?=pentium3
47136914Sru#NO_CPU_CFLAGS=		# Don't add -march=<cpu> to CFLAGS automatically
48136914Sru#NO_CPU_COPTFLAGS=	# Don't add -march=<cpu> to COPTFLAGS automatically
4972878Skris#
5058648Skris# CFLAGS controls the compiler settings used when compiling C code.
51131467Sdes# Note that optimization settings other than -O and -O2 are not recommended
5258648Skris# or supported for compiling the world or the kernel - please revert any
53162276Sru# nonstandard optimization settings to "-O" or "-O2 -fno-strict-aliasing"
54162276Sru# before submitting bug reports without patches to the developers.
551664Sphk#
56162276Sru# Compiling with -fstrict-aliasing optimization breaks some [notable] ports.
57162276Sru# GCC turns on -fstrict-aliasing optimization at all levels above -O[1], so
58162276Sru# explicitly turn it off when using compiling with the -O2 optimization level.
591664Sphk#
60162276Sru#CFLAGS= -O2 -fno-strict-aliasing -pipe
61162276Sru#
6259006Sobrien# CXXFLAGS controls the compiler settings used when compiling C++ code.
6359006Sobrien# Note that CXXFLAGS is initially set to the value of CFLAGS.  If you wish
6459006Sobrien# to add to CXXFLAGS value, "+=" must be used rather than "=".  Using "="
6559006Sobrien# alone will remove the often needed contents of CFLAGS from CXXFLAGS.
661664Sphk#
67142274Strhodes#CXXFLAGS+= -fconserve-space
6859006Sobrien#
69104124Sjmallett# MAKE_SHELL controls the shell used internally by make(1) to process the
70104124Sjmallett# command scripts in makefiles.  Three shells are supported, sh, ksh, and
71104124Sjmallett# csh.  Using sh is most common, and advised.  Using ksh *may* work, but is
72104124Sjmallett# not guaranteed to.  Using csh is absurd.  The default is to use sh.
73104124Sjmallett#
74104124Sjmallett#MAKE_SHELL?=sh
75104124Sjmallett#
7662136Sobrien# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested
7762136Sobrien# for use in developing FreeBSD and testing changes.  They can be used by
7880452Speter# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf.  -Wconversion is not
7999260Sjohan# included here due to compiler bugs, e.g., mkdir()'s mode_t argument.
8062136Sobrien#
8182604Salex#BDECFLAGS=	-W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
8282604Salex#		-Wcast-qual -Wchar-subscripts -Winline \
8382604Salex#		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
8482604Salex#		-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
8562136Sobrien#
8668917Sdougb# To compile just the kernel with special optimizations, you should use
8768263Sobrien# this instead of CFLAGS (which is not applicable to kernel builds anyway).
8868263Sobrien# There is very little to gain by using higher optimization levels, and doing
8968263Sobrien# so can cause problems.
9065380Sobrien#
9165380Sobrien#COPTFLAGS= -O -pipe
9265380Sobrien#
9342325Sobrien# Compare before install
94100870Sru#INSTALL=install -C
9535222Sache#
9665884Sache# Mtree will follow symlinks
9765957Sache#MTREE_FOLLOWS_SYMLINKS= -L
9865884Sache#
9968705Sgreen# To enable installing ssh(1) with the setuid bit turned on
100136914Sru#ENABLE_SUID_SSH=
10168705Sgreen#
10297387Stjr# To enable installing newgrp(1) with the setuid bit turned on.
10397387Stjr# Without the setuid bit, newgrp cannot change users' groups.
104136914Sru#ENABLE_SUID_NEWGRP=
10597387Stjr#
10651299Speter# To avoid building various parts of the base system:
107136914Sru#NO_MODULES=		# do not build modules with the kernel
108139120Sru#NO_SHARE=		# do not go into the share subdir
109151552Strhodes#NO_SHARED= 		# build /bin and /sbin statically linked (bad idea)
11035206Sphk#
111138896Strhodes# Variables that control how ppp(8) is built.
112139118Sru#PPP_NO_NAT= 		# do not build with NAT support (see make.conf(5))
113139118Sru#PPP_NO_NETGRAPH= 	# do not build with Netgraph support
114151592Smaxim#PPP_NO_RADIUS= 	# do not build with RADIUS support
115139118Sru#PPP_NO_SUID=		# build with normal permissions
116138896Strhodes#
117139125Sru#TRACEROUTE_NO_IPSEC= 	# do not build traceroute(8) with IPSEC support
118139125Sru#
11961744Sobrien# To build sys/modules when building the world (our old way of doing things)
120136914Sru#MODULES_WITH_WORLD=	# do not build modules when building kernel
12161744Sobrien#
12288461Sru# The list of modules to build instead of all of them.
12388461Sru#MODULES_OVERRIDE=	linux ipfw
12457458Smarkm#
125140546Swes# The list of modules to never build, applied *after* MODULES_OVERRIDE.
126140546Swes#WITHOUT_MODULES=	bktr plip
127140546Swes#
1281684Scsgr# If you do not want unformatted manual pages to be compressed
1291684Scsgr# when they are installed:
1301684Scsgr#
131139103Sru#NO_MANCOMPRESS=
1321697Sache#
1331697Sache#
1341697Sache# Default format for system documentation, depends on your printer.
1351697Sache# Set this to "ascii" for simple printers or screen
1361697Sache#
13725424Sandreas#PRINTERDEVICE=	ps
1381733Sadam#
1391733Sadam#
14014102Sadam# How long to wait for a console keypress before booting the default kernel.
14114102Sadam# This value is approximately in milliseconds. Keypresses are accepted by the
14214102Sadam# BIOS before booting from disk, making it possible to give custom boot
14314102Sadam# parameters even when this is set to 0.
1441733Sadam#
1451740Sadam#BOOTWAIT=0
1463023Srgrimes#BOOTWAIT=30000
1471733Sadam#
14818927Spst# By default, the system will always use the keyboard/video card as system
14926522Sbde# console.  However, the boot blocks may be dynamically configured to use a
15026522Sbde# serial port in addition to or instead of the keyboard/video console.
1511733Sadam#
15218927Spst# By default we use COM1 as our serial console port *if* we're going to use
15349190Snik# a serial port as our console at all.  Alter as necessary.
15418927Spst#
15549190Snik#   COM1: = 0x3F8, COM2: = 0x2F8, COM3: = 0x3E8, COM4: = 0x2E8
15649190Snik#
15718928Spst#BOOT_COMCONSOLE_PORT=	0x3F8
15818927Spst#
15926522Sbde# The default serial console speed is 9600.  Set the speed to a larger value
16026522Sbde# for better interactive response.
16118927Spst#
16226522Sbde#BOOT_COMCONSOLE_SPEED=	115200
16318927Spst#
16468310Sps# By default the 'pxeboot' loader retrieves the kernel via NFS.  Defining
16568310Sps# this and recompiling /usr/src/sys/boot will cause it to retrieve the kernel
16668310Sps# via TFTP.  This allows pxeboot to load a custom BOOTP diskless kernel yet
16799260Sjohan# still mount the server's '/' (i.e. rather than load the server's kernel).
16818927Spst#
16968310Sps#LOADER_TFTP_SUPPORT= YES
17068310Sps#
17175982Sjim#
17296436Snectar# Kerberos 5 su (k5su)
17396436Snectar# If you want to use the k5su utility, define this to have it installed
17496436Snectar# set-user-ID.
175136914Sru#ENABLE_SUID_K5SU=
17656553Smarkm#
17796436Snectar#
17837162Sjkh# CVSup update flags.  Edit SUPFILE settings to reflect whichever distribution
17937162Sjkh# file(s) you use on your site (see /usr/share/examples/cvsup/README for more
18037162Sjkh# information on CVSup and these files).  To use, do "make update" in /usr/src.
18110758Sache#
182136914Sru#SUP_UPDATE=
18318716Sache#
184156887Smux#SUP=            /usr/bin/csup
185212138Smaxim#SUPFLAGS=       -L 2
18664605Sjoe#SUPHOST=        cvsup.uk.FreeBSD.org
18718716Sache#SUPFILE=        /usr/share/examples/cvsup/standard-supfile
18847651Sbillf#PORTSSUPFILE=   /usr/share/examples/cvsup/ports-supfile
18954670Sbillf#DOCSUPFILE=     /usr/share/examples/cvsup/doc-supfile
19024225Sjoerg#
19124225Sjoerg# top(1) uses a hash table for the user names.  The size of this hash
19224225Sjoerg# can be tuned to match the number of local users.  The table size should
19324225Sjoerg# be a prime number approximately twice as large as the number of lines in
19424225Sjoerg# /etc/passwd.  The default number is 20011.
19524225Sjoerg#
19624225Sjoerg#TOP_TABLE_SIZE= 101
19758449Snik#
19858449Snik# Documentation
19958449Snik#
20058449Snik# The list of languages and encodings to build and install
20158449Snik#
20278035Sache#DOC_LANG=	en_US.ISO8859-1 ru_RU.KOI8-R
20365970Sgshapiro#
20465970Sgshapiro#
20565970Sgshapiro# sendmail
20672846Sgshapiro#
20772846Sgshapiro# The following sets the default m4 configuration file to use at
20872846Sgshapiro# install time.  Use with caution as a make install will overwrite
20972846Sgshapiro# any existing /etc/mail/sendmail.cf.  Note that SENDMAIL_CF is now
21072916Sgshapiro# deprecated.  The value should be a fully qualified path name.
21172846Sgshapiro#
21273836Sgshapiro#SENDMAIL_MC=/etc/mail/myconfig.mc
21372846Sgshapiro#
21494676Sgshapiro# The following sets the default m4 configuration file for mail
21594676Sgshapiro# submission to use at install time.  Use with caution as a make
21694676Sgshapiro# install will overwrite any existing /etc/mail/submit.cf.  The
21794676Sgshapiro# value should be a fully qualified path name.
21894676Sgshapiro#
21994676Sgshapiro#SENDMAIL_SUBMIT_MC=/etc/mail/mysubmit.mc
22094676Sgshapiro#
22172918Sgshapiro# If you need to build additional .cf files during a make buildworld,
22272918Sgshapiro# include the full paths to the .mc files in SENDMAIL_ADDITIONAL_MC.
22372918Sgshapiro#
22472918Sgshapiro#SENDMAIL_ADDITIONAL_MC=/etc/mail/foo.mc /etc/mail/bar.mc
22572918Sgshapiro#
226120397Sgshapiro# The following overrides the default location for the m4 configuration
227120397Sgshapiro# files used to build a .cf file from a .mc file.
228120397Sgshapiro#
229120397Sgshapiro#SENDMAIL_CF_DIR=/usr/local/share/sendmail/cf
230120397Sgshapiro#
23180175Sgshapiro# Setting the following variable modifies the flags passed to m4 when
23280175Sgshapiro# building a .cf file from a .mc file.  It can be used to enable
23380175Sgshapiro# features disabled by default.
23480175Sgshapiro#
23580175Sgshapiro#SENDMAIL_M4_FLAGS=
23680175Sgshapiro#
23778862Sgshapiro# Setting the following variables modifies the build environment for
23865970Sgshapiro# sendmail and its related utilities. For example, SASL support can be
23965970Sgshapiro# added with settings such as:
24065970Sgshapiro#
241103898Sume#    with SASLv1:
242101065Sume#	SENDMAIL_CFLAGS=-I/usr/local/include/sasl1 -DSASL
24365970Sgshapiro#	SENDMAIL_LDFLAGS=-L/usr/local/lib
24465970Sgshapiro#	SENDMAIL_LDADD=-lsasl
24565970Sgshapiro#
246103898Sume#    with SASLv2:
247103898Sume#	SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
248103898Sume#	SENDMAIL_LDFLAGS=-L/usr/local/lib
249103898Sume#	SENDMAIL_LDADD=-lsasl2
250103898Sume#
25169380Sgshapiro# Note: If you are using Cyrus SASL with other applications which require
25293449Sume#	access to the sasldb file, you should add the following to your
25393449Sume#	sendmail.mc file:
25469380Sgshapiro#
25593446Sume#	define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLDBFile')
25669380Sgshapiro#
25765970Sgshapiro#SENDMAIL_CFLAGS=
25865970Sgshapiro#SENDMAIL_LDFLAGS=
25965970Sgshapiro#SENDMAIL_LDADD=
26065970Sgshapiro#SENDMAIL_DPADD=
26190803Sgshapiro#
26290803Sgshapiro# Setting SENDMAIL_SET_USER_ID will install the sendmail binary as a
26390803Sgshapiro# set-user-ID root binary instead of a set-group-ID smmsp binary and will
26490803Sgshapiro# prevent the installation of /etc/mail/submit.cf.
26590803Sgshapiro# This is a deprecated mode of operation.  See etc/mail/README for more
26690803Sgshapiro# information.
26790803Sgshapiro#
26890803Sgshapiro#SENDMAIL_SET_USER_ID=
26997200Sgshapiro#
27097200Sgshapiro# The permissions to use on alias and map databases generated using
27197200Sgshapiro# /etc/mail/Makefile.  Defaults to 0640.
27297200Sgshapiro#
27397200Sgshapiro#SENDMAIL_MAP_PERMS=
274217826Ssem#
275217826Ssem#
276217826Ssem# It is also possible to set variables in make.conf which will only be
277217826Ssem# used when compiling a specific port.  For more details see make(1).
278217826Ssem#
279217826Ssem#.if ${.CURDIR:M*/irc/irssi-devel*}
280217826Ssem#WITH_DEBUG=YES
281217826Ssem#.endif
282217826Ssem#
283217826Ssem# Another approach is to use /usr/ports/ports-mgmt/portconf which has
284217826Ssem# its own config file for port specific options.
285