make.conf revision 93446
117683Spst# $FreeBSD: head/share/examples/etc/make.conf 93446 2002-03-30 17:53:10Z ume $ 217683Spst# 317683Spst# NOTE: Please would any committer updating this file also update the 417683Spst# make.conf(5) manual page, if necessary, which is located in 517683Spst# src/share/man/man5/make.conf.5. 617683Spst# 717683Spst# /etc/make.conf, if present, will be read by make (see 817683Spst# /usr/share/mk/sys.mk). It allows you to override macro definitions 917683Spst# to make without changing your source tree, or anything the source 1017683Spst# tree installs. 1117683Spst# 1217683Spst# This file must be in valid Makefile syntax. 1317683Spst# 1417683Spst# There are additional things you can put into /etc/make.conf. 1517683Spst# You have to find those in the Makefiles and documentation of 1617683Spst# the source tree. 1717683Spst# 1817683Spst# 1917683Spst# The CPUTYPE variable controls which processor should be targetted for 2017683Spst# generated code. This controls processor-specific optimizations in 2117683Spst# certain code (currently only OpenSSL) as well as modifying the value 2217683Spst# of CFLAGS to contain the appropriate optimization directive to gcc. 2317683Spst# The automatic setting of CFLAGS may be overridden using the 24127664Sbms# NO_CPU_CFLAGS variable below. 25146768Ssam# Currently the following CPU types are recognised: 2617683Spst# Intel x86 architecture: 2717683Spst# (AMD CPUs) k7 k6-2 k6 k5 2875107Sfenner# (Intel CPUs) p4 p3 p2 i686 i586/mmx i586 i486 i386 2975107Sfenner# Alpha/AXP architecture: ev6 pca56 ev56 ev5 ev45 ev4 3075107Sfenner# Intel ia64 architecture: itanium 3175107Sfenner# 3217683Spst#CPUTYPE=i686 3317683Spst#NO_CPU_CFLAGS= true # Don't add -march=<cpu> to CFLAGS automatically 3417683Spst#NO_CPU_COPTFLAGS=true # Don't add -march=<cpu> to COPTFLAGS automatically 35146768Ssam# 3617683Spst# CFLAGS controls the compiler settings used when compiling C code. 3775107Sfenner# Note that optimization settings above -O (-O2, ...) are not recommended 3875107Sfenner# or supported for compiling the world or the kernel - please revert any 3917683Spst# nonstandard optimization settings to "-O" before submitting bug reports 4017683Spst# to the developers. 4117683Spst# Note also that at this time the -O2 setting is known to produce BROKEN 4217683Spst# CODE on the Alpha platform. 4317683Spst# 4417683Spst#CFLAGS= -O -pipe 4517683Spst# 4617683Spst# CXXFLAGS controls the compiler settings used when compiling C++ code. 4717683Spst# Note that CXXFLAGS is initially set to the value of CFLAGS. If you wish 4817683Spst# to add to CXXFLAGS value, "+=" must be used rather than "=". Using "=" 4917683Spst# alone will remove the often needed contents of CFLAGS from CXXFLAGS. 5017683Spst# 51146768Ssam#CXXFLAGS+= -fmemoize-lookups -fsave-memoized 52146768Ssam# 53146768Ssam# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested 54146768Ssam# for use in developing FreeBSD and testing changes. They can be used by 5517683Spst# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf. -Wconversion is not 56146768Ssam# included here due to compiler bugs, eg: mkdir()'s mode_t argument. 57146768Ssam# 58146768Ssam#BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \ 5917683Spst# -Wcast-qual -Wchar-subscripts -Winline \ 6017683Spst# -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ 6117683Spst# -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings 62146768Ssam# 63146768Ssam# To compile just the kernel with special optimizations, you should use 64146768Ssam# this instead of CFLAGS (which is not applicable to kernel builds anyway). 65146768Ssam# There is very little to gain by using higher optimization levels, and doing 66146768Ssam# so can cause problems. 67146768Ssam# 68146768Ssam#COPTFLAGS= -O -pipe 69146768Ssam# 70146768Ssam# To build the system compiler such that it forces high optimization levels to 7117683Spst# a lower one. GCC -O2+ is known to trigger known optimizer bugs at various 7217683Spst# times -- this is worse on the Alpha platform. The value assigned here will 7317683Spst# be the highest optimization value used. 7417683Spst#WANT_FORCE_OPTIMIZATION_DOWNGRADE=1 7517683Spst# 7617683Spst# Compare before install 7717683Spst#INSTALL=install -C 7817683Spst# 7917683Spst# Mtree will follow symlinks 8017683Spst#MTREE_FOLLOWS_SYMLINKS= -L 8117683Spst# 8217683Spst# To enable installing suidperl with the setuid bit turned on 8317683Spst#ENABLE_SUIDPERL= true 8417683Spst# 8517683Spst# To build ppp with normal permissions 8617683Spst#PPP_NOSUID= true 8717683Spst# 8817683Spst# To enable installing ssh(1) with the setuid bit turned on 8917683Spst#ENABLE_SUID_SSH= true 9017683Spst# 9117683Spst# To avoid building various parts of the base system: 9217683Spst#NO_CVS= true # do not build CVS 9317683Spst#NO_CXX= true # do not build C++ and friends 9417683Spst#NO_BIND= true # do not build BIND 9517683Spst#NO_FORTRAN= true # do not build g77 and related libraries 9617683Spst#NO_GDB= true # do not build GDB 9717683Spst#NO_I4B= true # do not build isdn4bsd package 9817683Spst#NO_IPFILTER= true # do not build IP Filter package 9917683Spst#NO_LPR= true # do not build lpr and related programs 10017683Spst#NO_MAILWRAPPER=true # do not build the mailwrapper(8) MTA selector 10117683Spst#NO_MODULES= true # do not build modules with the kernel 10217683Spst#NO_OBJC= true # do not build Objective C support 10317683Spst#NO_OPENSSH= true # do not build OpenSSH 10417683Spst#NO_OPENSSL= true # do not build OpenSSL (implies NO_OPENSSH) 10517683Spst#NO_PERL= true # do not build perl5. Disables OpenSSL optimizations 10617683Spst#NO_SENDMAIL= true # do not build sendmail and related programs 10717683Spst#NO_SHAREDOCS= true # do not build the 4.4BSD legacy docs 10817683Spst#NO_TCSH= true # do not build and install /bin/csh (which is tcsh) 10917683Spst#NO_X= true # do not compile in XWindows support (e.g. doscmd) 11017683Spst#NOCRYPT= true # do not build any crypto code 11117683Spst#NOGAMES= true # do not build games (games/ subdir) 11217683Spst#NOINFO= true # do not make or install info files 11317683Spst#NOLIBC_R= true # do not build libc_r (re-entrant version of libc) 11417683Spst#NOPERL= true # Deprecated version of NO_PERL 11517683Spst#NOPROFILE= true # Avoid compiling profiled libraries 11617683Spst#NOSECURE= true # do not build crypto code in secure/ subdir 11717683Spst#NOSHARE= true # do not go into the share subdir 11817683Spst#NOUUCP= true # do not build uucp related programs 11917683Spst# 12017683Spst# To build the OpenSSL manpages, uncomment the following. These are not 12117683Spst# built by default because they clobber a number of system manpages with 12217683Spst# manpages describing parts of the OpenSSL toolkit, including passwd(1), 12317683Spst# err(3), md5(3), and others. 12417683Spst# 12517683Spst#WANT_OPENSSL_MANPAGES= true 12617683Spst# 12717683Spst# To build sys/modules when building the world (our old way of doing things) 12817683Spst#MODULES_WITH_WORLD=true # do not build modules when building kernel 12917683Spst# 13017683Spst# The list of modules to build instead of all of them. 13117683Spst#MODULES_OVERRIDE= linux ipfw 13217683Spst# 13317683Spst# The following controls building optional IDEA code in libcrypto and 13417683Spst# certain ports. Patents are involved - you must not use this unless 13517683Spst# you either have a license or fall within patent 'fair use' 13617683Spst# provisions. 13717683Spst# 13817683Spst# *** It is YOUR RESPONSIBILITY to determine if you can use this! *** 13917683Spst# 14017683Spst# IDEA is patented in the USA and many european countries - thought to 14117683Spst# be OK to use for any non-commercial use. This is optional. 14217683Spst#MAKE_IDEA= YES # IDEA (128 bit symmetric encryption) 14317683Spst# 14417683Spst# To avoid running MAKEDEV all on /dev during install set NO_MAKEDEV_RUN. 14517683Spst# If you don't want to install MAKEDEV set NO_MAKEDEV_INSTALL, this implies 14617683Spst# NO_MAKEDEV_RUN. 14717683Spst#NO_MAKEDEV_INSTALL= true 14817683Spst#NO_MAKEDEV_RUN= true 14917683Spst# 15017683Spst# If you do not want unformatted manual pages to be compressed 15117683Spst# when they are installed: 15217683Spst# 15317683Spst#NOMANCOMPRESS= true 15417683Spst# 15517683Spst# 15617683Spst# If you want the "compat" shared libraries installed as part of your normal 15717683Spst# builds, uncomment these: 15817683Spst# 15917683Spst#COMPAT1X= yes 16017683Spst#COMPAT20= yes 16117683Spst#COMPAT21= yes 16217683Spst#COMPAT22= yes 16317683Spst#COMPAT3X= yes 16417683Spst#COMPAT4X= yes 16517683Spst# 16617683Spst# 16717683Spst# Default format for system documentation, depends on your printer. 16817683Spst# Set this to "ascii" for simple printers or screen 16917683Spst# 17017683Spst#PRINTERDEVICE= ps 17117683Spst# 17217683Spst# 17317683Spst# How long to wait for a console keypress before booting the default kernel. 17417683Spst# This value is approximately in milliseconds. Keypresses are accepted by the 17517683Spst# BIOS before booting from disk, making it possible to give custom boot 17617683Spst# parameters even when this is set to 0. 17717683Spst# 17817683Spst#BOOTWAIT=0 17917683Spst#BOOTWAIT=30000 18017683Spst# 18117683Spst# By default, the system will always use the keyboard/video card as system 18217683Spst# console. However, the boot blocks may be dynamically configured to use a 18317683Spst# serial port in addition to or instead of the keyboard/video console. 18417683Spst# 18517683Spst# By default we use COM1 as our serial console port *if* we're going to use 18617683Spst# a serial port as our console at all. Alter as necessary. 18717683Spst# 18817683Spst# COM1: = 0x3F8, COM2: = 0x2F8, COM3: = 0x3E8, COM4: = 0x2E8 18917683Spst# 19017683Spst#BOOT_COMCONSOLE_PORT= 0x3F8 19117683Spst# 19217683Spst# The default serial console speed is 9600. Set the speed to a larger value 19317683Spst# for better interactive response. 19417683Spst# 19517683Spst#BOOT_COMCONSOLE_SPEED= 115200 19617683Spst# 19717683Spst# By default the 'pxeboot' loader retrieves the kernel via NFS. Defining 19817683Spst# this and recompiling /usr/src/sys/boot will cause it to retrieve the kernel 19917683Spst# via TFTP. This allows pxeboot to load a custom BOOTP diskless kernel yet 20017683Spst# still mount the server's '/' (i.e. rather then load the server's kernel). 20117683Spst# 20217683Spst#LOADER_TFTP_SUPPORT= YES 20317683Spst# 20417683Spst# 20517683Spst# Kerberos IV 20617683Spst# If you want KerberosIV (KTH eBones), define this: 20717683Spst# 20817683Spst#MAKE_KERBEROS4= yes 20917683Spst# 21017683Spst# 21117683Spst# Kerberos 5 21217683Spst# If you want Kerberos 5 (KTH Heimdal), define this: 21317683Spst# 21417683Spst#MAKE_KERBEROS5= yes 21517683Spst# 21617683Spst# 21717683Spst# Kerberos5 21817683Spst# If you want to install MIT Kerberos5 port somewhere other than /usr/local, 21917683Spst# define this (this is also used to tell ssh1 that kerberos is needed): 22017683Spst# 22117683Spst#KRB5_HOME= /usr/local 22217683Spst# 22317683Spst# 22417683Spst# CVSup update flags. Edit SUPFILE settings to reflect whichever distribution 22517683Spst# file(s) you use on your site (see /usr/share/examples/cvsup/README for more 22617683Spst# information on CVSup and these files). To use, do "make update" in /usr/src. 22717683Spst# 22817683Spst#SUP_UPDATE= yes 22917683Spst# 23017683Spst#SUP= /usr/local/bin/cvsup 23117683Spst#SUPFLAGS= -g -L 2 23217683Spst#SUPHOST= cvsup.uk.FreeBSD.org 23317683Spst#SUPFILE= /usr/share/examples/cvsup/standard-supfile 23417683Spst#PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile 23517683Spst#DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile 23617683Spst# 23717683Spst# top(1) uses a hash table for the user names. The size of this hash 23817683Spst# can be tuned to match the number of local users. The table size should 23917683Spst# be a prime number approximately twice as large as the number of lines in 24017683Spst# /etc/passwd. The default number is 20011. 24117683Spst# 24217683Spst#TOP_TABLE_SIZE= 101 24317683Spst# 24417683Spst# Documentation 24517683Spst# 24617683Spst# The list of languages and encodings to build and install 24717683Spst# 24817683Spst#DOC_LANG= en_US.ISO8859-1 ru_RU.KOI8-R 24917683Spst# 25017683Spst# 25117683Spst# sendmail 25217683Spst# 25317683Spst# The following sets the default m4 configuration file to use at 25417683Spst# install time. Use with caution as a make install will overwrite 25517683Spst# any existing /etc/mail/sendmail.cf. Note that SENDMAIL_CF is now 25617683Spst# deprecated. The value should be a fully qualified path name. 25717683Spst# 25817683Spst#SENDMAIL_MC=/etc/mail/myconfig.mc 25917683Spst# 26017683Spst# If you need to build additional .cf files during a make buildworld, 26117683Spst# include the full paths to the .mc files in SENDMAIL_ADDITIONAL_MC. 26217683Spst# 26317683Spst#SENDMAIL_ADDITIONAL_MC=/etc/mail/foo.mc /etc/mail/bar.mc 26417683Spst# 26517683Spst# Setting the following variable modifies the flags passed to m4 when 26617683Spst# building a .cf file from a .mc file. It can be used to enable 26717683Spst# features disabled by default. 26817683Spst# 26917683Spst#SENDMAIL_M4_FLAGS= 27017683Spst# 27117683Spst# Setting the following variables modifies the build environment for 27217683Spst# sendmail and its related utilities. For example, SASL support can be 27317683Spst# added with settings such as: 27417683Spst# 27517683Spst# SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL 27617683Spst# SENDMAIL_LDFLAGS=-L/usr/local/lib 27717683Spst# SENDMAIL_LDADD=-lsasl 27817683Spst# 27917683Spst# Note: If you are using Cyrus SASL with other applications which require 28017683Spst# access to the sasldb file, you should add '-D_FFR_UNSAFE_SASL' to 28117683Spst# SENDMAIL_CFLAGS. Also, add the following to your sendmail.mc file: 28217683Spst# 28317683Spst# define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLDBFile') 28417683Spst# 28517683Spst#SENDMAIL_CFLAGS= 28617683Spst#SENDMAIL_LDFLAGS= 28717683Spst#SENDMAIL_LDADD= 28817683Spst#SENDMAIL_DPADD= 28917683Spst# 29017683Spst# Setting SENDMAIL_SET_USER_ID will install the sendmail binary as a 29117683Spst# set-user-ID root binary instead of a set-group-ID smmsp binary and will 29217683Spst# prevent the installation of /etc/mail/submit.cf. 29317683Spst# This is a deprecated mode of operation. See etc/mail/README for more 29417683Spst# information. 29517683Spst# 29617683Spst#SENDMAIL_SET_USER_ID= 29717683Spst