make.conf revision 94676
150472Speter# $FreeBSD: head/share/examples/etc/make.conf 94676 2002-04-14 19:20:26Z gshapiro $ 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# 1872679Skris# 1972878Skris# The CPUTYPE variable controls which processor should be targetted for 2072878Skris# generated code. This controls processor-specific optimizations in 2172878Skris# certain code (currently only OpenSSL) as well as modifying the value 2272878Skris# of CFLAGS to contain the appropriate optimization directive to gcc. 2372878Skris# The automatic setting of CFLAGS may be overridden using the 2472878Skris# NO_CPU_CFLAGS variable below. 2572878Skris# Currently the following CPU types are recognised: 2673145Skris# Intel x86 architecture: 2773145Skris# (AMD CPUs) k7 k6-2 k6 k5 2873145Skris# (Intel CPUs) p4 p3 p2 i686 i586/mmx i586 i486 i386 2972878Skris# Alpha/AXP architecture: ev6 pca56 ev56 ev5 ev45 ev4 3072878Skris# Intel ia64 architecture: itanium 3172679Skris# 3272878Skris#CPUTYPE=i686 3372878Skris#NO_CPU_CFLAGS= true # Don't add -march=<cpu> to CFLAGS automatically 3474146Skris#NO_CPU_COPTFLAGS=true # Don't add -march=<cpu> to COPTFLAGS automatically 3572878Skris# 3658648Skris# CFLAGS controls the compiler settings used when compiling C code. 3768917Sdougb# Note that optimization settings above -O (-O2, ...) are not recommended 3858648Skris# or supported for compiling the world or the kernel - please revert any 3968917Sdougb# nonstandard optimization settings to "-O" before submitting bug reports 4058648Skris# to the developers. 4158648Skris# Note also that at this time the -O2 setting is known to produce BROKEN 4258648Skris# CODE on the Alpha platform. 431664Sphk# 4429281Sjkh#CFLAGS= -O -pipe 451664Sphk# 4659006Sobrien# CXXFLAGS controls the compiler settings used when compiling C++ code. 4759006Sobrien# Note that CXXFLAGS is initially set to the value of CFLAGS. If you wish 4859006Sobrien# to add to CXXFLAGS value, "+=" must be used rather than "=". Using "=" 4959006Sobrien# alone will remove the often needed contents of CFLAGS from CXXFLAGS. 501664Sphk# 5159006Sobrien#CXXFLAGS+= -fmemoize-lookups -fsave-memoized 5259006Sobrien# 5362136Sobrien# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested 5462136Sobrien# for use in developing FreeBSD and testing changes. They can be used by 5580452Speter# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf. -Wconversion is not 5680452Speter# included here due to compiler bugs, eg: mkdir()'s mode_t argument. 5762136Sobrien# 5882604Salex#BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \ 5982604Salex# -Wcast-qual -Wchar-subscripts -Winline \ 6082604Salex# -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ 6182604Salex# -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings 6262136Sobrien# 6368917Sdougb# To compile just the kernel with special optimizations, you should use 6468263Sobrien# this instead of CFLAGS (which is not applicable to kernel builds anyway). 6568263Sobrien# There is very little to gain by using higher optimization levels, and doing 6668263Sobrien# so can cause problems. 6765380Sobrien# 6865380Sobrien#COPTFLAGS= -O -pipe 6965380Sobrien# 7081749Sobrien# To build the system compiler such that it forces high optimization levels to 7181749Sobrien# a lower one. GCC -O2+ is known to trigger known optimizer bugs at various 7281749Sobrien# times -- this is worse on the Alpha platform. The value assigned here will 7381749Sobrien# be the highest optimization value used. 7481749Sobrien#WANT_FORCE_OPTIMIZATION_DOWNGRADE=1 7581749Sobrien# 7642325Sobrien# Compare before install 7735222Sache#INSTALL=install -C 7835222Sache# 7965884Sache# Mtree will follow symlinks 8065957Sache#MTREE_FOLLOWS_SYMLINKS= -L 8165884Sache# 8268559Sru# To enable installing suidperl with the setuid bit turned on 8364576Simp#ENABLE_SUIDPERL= true 8434651Sjkh# 8564803Sbrian# To build ppp with normal permissions 8664803Sbrian#PPP_NOSUID= true 8764803Sbrian# 8868705Sgreen# To enable installing ssh(1) with the setuid bit turned on 8968705Sgreen#ENABLE_SUID_SSH= true 9068705Sgreen# 9151299Speter# To avoid building various parts of the base system: 9257542Skris#NO_CVS= true # do not build CVS 9390522Sobrien#NO_CXX= true # do not build C++ and friends 9459124Sasmodai#NO_BIND= true # do not build BIND 9557542Skris#NO_FORTRAN= true # do not build g77 and related libraries 9690522Sobrien#NO_GDB= true # do not build GDB 9777041Sru#NO_I4B= true # do not build isdn4bsd package 9892868Sru#NO_IPFILTER= true # do not build IP Filter package 9961139Shoek#NO_LPR= true # do not build lpr and related programs 10058859Ssheldonh#NO_MAILWRAPPER=true # do not build the mailwrapper(8) MTA selector 10159884Schuckr#NO_MODULES= true # do not build modules with the kernel 10257764Skris#NO_OBJC= true # do not build Objective C support 10357542Skris#NO_OPENSSH= true # do not build OpenSSH 10457542Skris#NO_OPENSSL= true # do not build OpenSSL (implies NO_OPENSSH) 10592412Smarkm#NO_PERL= true # do not build perl5. Disables OpenSSL optimizations 10657542Skris#NO_SENDMAIL= true # do not build sendmail and related programs 10758418Sobrien#NO_SHAREDOCS= true # do not build the 4.4BSD legacy docs 10859338Sobrien#NO_TCSH= true # do not build and install /bin/csh (which is tcsh) 10958280Skris#NO_X= true # do not compile in XWindows support (e.g. doscmd) 11057553Skris#NOCRYPT= true # do not build any crypto code 11157542Skris#NOGAMES= true # do not build games (games/ subdir) 11257542Skris#NOINFO= true # do not make or install info files 11357542Skris#NOLIBC_R= true # do not build libc_r (re-entrant version of libc) 11492412Smarkm#NOPERL= true # Deprecated version of NO_PERL 11565381Sobrien#NOPROFILE= true # Avoid compiling profiled libraries 11657553Skris#NOSECURE= true # do not build crypto code in secure/ subdir 11757542Skris#NOSHARE= true # do not go into the share subdir 11884256Skris#NOUUCP= true # do not build uucp related programs 11994297Sbmilekic#NO_RCMNDS= true # do not build rlogin, rsh & rcp 12035206Sphk# 12173043Skris# To build the OpenSSL manpages, uncomment the following. These are not 12273043Skris# built by default because they clobber a number of system manpages with 12373043Skris# manpages describing parts of the OpenSSL toolkit, including passwd(1), 12473043Skris# err(3), md5(3), and others. 12573043Skris# 12673043Skris#WANT_OPENSSL_MANPAGES= true 12773043Skris# 12861744Sobrien# To build sys/modules when building the world (our old way of doing things) 12961744Sobrien#MODULES_WITH_WORLD=true # do not build modules when building kernel 13061744Sobrien# 13188461Sru# The list of modules to build instead of all of them. 13288461Sru#MODULES_OVERRIDE= linux ipfw 13357458Smarkm# 13473401Skris# The following controls building optional IDEA code in libcrypto and 13573401Skris# certain ports. Patents are involved - you must not use this unless 13673401Skris# you either have a license or fall within patent 'fair use' 13773401Skris# provisions. 13862482Speter# 13973401Skris# *** It is YOUR RESPONSIBILITY to determine if you can use this! *** 14073401Skris# 14173401Skris# IDEA is patented in the USA and many european countries - thought to 14273401Skris# be OK to use for any non-commercial use. This is optional. 14363123Speter#MAKE_IDEA= YES # IDEA (128 bit symmetric encryption) 14462482Speter# 14574990Sasmodai# To avoid running MAKEDEV all on /dev during install set NO_MAKEDEV_RUN. 14674990Sasmodai# If you don't want to install MAKEDEV set NO_MAKEDEV_INSTALL, this implies 14774990Sasmodai# NO_MAKEDEV_RUN. 14874990Sasmodai#NO_MAKEDEV_INSTALL= true 14974990Sasmodai#NO_MAKEDEV_RUN= true 15057071Srwatson# 1511684Scsgr# If you do not want unformatted manual pages to be compressed 1521684Scsgr# when they are installed: 1531684Scsgr# 1549509Srgrimes#NOMANCOMPRESS= true 1551697Sache# 1561697Sache# 15720847Speter# If you want the "compat" shared libraries installed as part of your normal 15820847Speter# builds, uncomment these: 15920847Speter# 16020847Speter#COMPAT1X= yes 16120847Speter#COMPAT20= yes 16220847Speter#COMPAT21= yes 16347318Sobrien#COMPAT22= yes 16447430Sobrien#COMPAT3X= yes 16574247Smurray#COMPAT4X= yes 16620847Speter# 16720847Speter# 1681697Sache# Default format for system documentation, depends on your printer. 1691697Sache# Set this to "ascii" for simple printers or screen 1701697Sache# 17125424Sandreas#PRINTERDEVICE= ps 1721733Sadam# 1731733Sadam# 17414102Sadam# How long to wait for a console keypress before booting the default kernel. 17514102Sadam# This value is approximately in milliseconds. Keypresses are accepted by the 17614102Sadam# BIOS before booting from disk, making it possible to give custom boot 17714102Sadam# parameters even when this is set to 0. 1781733Sadam# 1791740Sadam#BOOTWAIT=0 1803023Srgrimes#BOOTWAIT=30000 1811733Sadam# 18218927Spst# By default, the system will always use the keyboard/video card as system 18326522Sbde# console. However, the boot blocks may be dynamically configured to use a 18426522Sbde# serial port in addition to or instead of the keyboard/video console. 1851733Sadam# 18618927Spst# By default we use COM1 as our serial console port *if* we're going to use 18749190Snik# a serial port as our console at all. Alter as necessary. 18818927Spst# 18949190Snik# COM1: = 0x3F8, COM2: = 0x2F8, COM3: = 0x3E8, COM4: = 0x2E8 19049190Snik# 19118928Spst#BOOT_COMCONSOLE_PORT= 0x3F8 19218927Spst# 19326522Sbde# The default serial console speed is 9600. Set the speed to a larger value 19426522Sbde# for better interactive response. 19518927Spst# 19626522Sbde#BOOT_COMCONSOLE_SPEED= 115200 19718927Spst# 19868310Sps# By default the 'pxeboot' loader retrieves the kernel via NFS. Defining 19968310Sps# this and recompiling /usr/src/sys/boot will cause it to retrieve the kernel 20068310Sps# via TFTP. This allows pxeboot to load a custom BOOTP diskless kernel yet 20168310Sps# still mount the server's '/' (i.e. rather then load the server's kernel). 20218927Spst# 20368310Sps#LOADER_TFTP_SUPPORT= YES 20468310Sps# 20575982Sjim# 2063241Scsgr# Kerberos IV 20729931Smarkm# If you want KerberosIV (KTH eBones), define this: 2083241Scsgr# 20929931Smarkm#MAKE_KERBEROS4= yes 21010758Sache# 21110758Sache# 21256553Smarkm# Kerberos 5 21376518Sassar# If you want Kerberos 5 (KTH Heimdal), define this: 21456553Smarkm# 21556553Smarkm#MAKE_KERBEROS5= yes 21656553Smarkm# 21756553Smarkm# 21838003Sdima# Kerberos5 21956553Smarkm# If you want to install MIT Kerberos5 port somewhere other than /usr/local, 22056553Smarkm# define this (this is also used to tell ssh1 that kerberos is needed): 22138003Sdima# 22256553Smarkm#KRB5_HOME= /usr/local 22338003Sdima# 22438003Sdima# 22537162Sjkh# CVSup update flags. Edit SUPFILE settings to reflect whichever distribution 22637162Sjkh# file(s) you use on your site (see /usr/share/examples/cvsup/README for more 22737162Sjkh# information on CVSup and these files). To use, do "make update" in /usr/src. 22810758Sache# 22910758Sache#SUP_UPDATE= yes 23018716Sache# 23120545Sache#SUP= /usr/local/bin/cvsup 23249777Ssheldonh#SUPFLAGS= -g -L 2 23364605Sjoe#SUPHOST= cvsup.uk.FreeBSD.org 23418716Sache#SUPFILE= /usr/share/examples/cvsup/standard-supfile 23547651Sbillf#PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile 23654670Sbillf#DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile 23724225Sjoerg# 23824225Sjoerg# top(1) uses a hash table for the user names. The size of this hash 23924225Sjoerg# can be tuned to match the number of local users. The table size should 24024225Sjoerg# be a prime number approximately twice as large as the number of lines in 24124225Sjoerg# /etc/passwd. The default number is 20011. 24224225Sjoerg# 24324225Sjoerg#TOP_TABLE_SIZE= 101 24458449Snik# 24558449Snik# Documentation 24658449Snik# 24758449Snik# The list of languages and encodings to build and install 24858449Snik# 24978035Sache#DOC_LANG= en_US.ISO8859-1 ru_RU.KOI8-R 25065970Sgshapiro# 25165970Sgshapiro# 25265970Sgshapiro# sendmail 25372846Sgshapiro# 25472846Sgshapiro# The following sets the default m4 configuration file to use at 25572846Sgshapiro# install time. Use with caution as a make install will overwrite 25672846Sgshapiro# any existing /etc/mail/sendmail.cf. Note that SENDMAIL_CF is now 25772916Sgshapiro# deprecated. The value should be a fully qualified path name. 25872846Sgshapiro# 25973836Sgshapiro#SENDMAIL_MC=/etc/mail/myconfig.mc 26072846Sgshapiro# 26194676Sgshapiro# The following sets the default m4 configuration file for mail 26294676Sgshapiro# submission to use at install time. Use with caution as a make 26394676Sgshapiro# install will overwrite any existing /etc/mail/submit.cf. The 26494676Sgshapiro# value should be a fully qualified path name. 26594676Sgshapiro# 26694676Sgshapiro#SENDMAIL_SUBMIT_MC=/etc/mail/mysubmit.mc 26794676Sgshapiro# 26872918Sgshapiro# If you need to build additional .cf files during a make buildworld, 26972918Sgshapiro# include the full paths to the .mc files in SENDMAIL_ADDITIONAL_MC. 27072918Sgshapiro# 27172918Sgshapiro#SENDMAIL_ADDITIONAL_MC=/etc/mail/foo.mc /etc/mail/bar.mc 27272918Sgshapiro# 27380175Sgshapiro# Setting the following variable modifies the flags passed to m4 when 27480175Sgshapiro# building a .cf file from a .mc file. It can be used to enable 27580175Sgshapiro# features disabled by default. 27680175Sgshapiro# 27780175Sgshapiro#SENDMAIL_M4_FLAGS= 27880175Sgshapiro# 27978862Sgshapiro# Setting the following variables modifies the build environment for 28065970Sgshapiro# sendmail and its related utilities. For example, SASL support can be 28165970Sgshapiro# added with settings such as: 28265970Sgshapiro# 28374055Sgshapiro# SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL 28465970Sgshapiro# SENDMAIL_LDFLAGS=-L/usr/local/lib 28565970Sgshapiro# SENDMAIL_LDADD=-lsasl 28665970Sgshapiro# 28769380Sgshapiro# Note: If you are using Cyrus SASL with other applications which require 28893449Sume# access to the sasldb file, you should add the following to your 28993449Sume# sendmail.mc file: 29069380Sgshapiro# 29193446Sume# define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLDBFile') 29269380Sgshapiro# 29365970Sgshapiro#SENDMAIL_CFLAGS= 29465970Sgshapiro#SENDMAIL_LDFLAGS= 29565970Sgshapiro#SENDMAIL_LDADD= 29665970Sgshapiro#SENDMAIL_DPADD= 29790803Sgshapiro# 29890803Sgshapiro# Setting SENDMAIL_SET_USER_ID will install the sendmail binary as a 29990803Sgshapiro# set-user-ID root binary instead of a set-group-ID smmsp binary and will 30090803Sgshapiro# prevent the installation of /etc/mail/submit.cf. 30190803Sgshapiro# This is a deprecated mode of operation. See etc/mail/README for more 30290803Sgshapiro# information. 30390803Sgshapiro# 30490803Sgshapiro#SENDMAIL_SET_USER_ID= 305