make.conf revision 78035
150472Speter# $FreeBSD: head/share/examples/etc/make.conf 78035 2001-06-11 01:26:52Z ache $ 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# 73023Srgrimes# This file, if present, will be read by make (see /usr/share/mk/sys.mk). 83023Srgrimes# It allows you to override macro definitions to make without changing 93023Srgrimes# your source tree, or anything the source tree installs. 101664Sphk# 113023Srgrimes# This file must be in valid Makefile syntax. 123023Srgrimes# 131664Sphk# You have to find the things you can put here in the Makefiles and 141664Sphk# documentation of the source tree. 151664Sphk# 1672679Skris# 1772878Skris# The CPUTYPE variable controls which processor should be targetted for 1872878Skris# generated code. This controls processor-specific optimizations in 1972878Skris# certain code (currently only OpenSSL) as well as modifying the value 2072878Skris# of CFLAGS to contain the appropriate optimization directive to gcc. 2172878Skris# The automatic setting of CFLAGS may be overridden using the 2272878Skris# NO_CPU_CFLAGS variable below. 2372878Skris# Currently the following CPU types are recognised: 2473145Skris# Intel x86 architecture: 2573145Skris# (AMD CPUs) k7 k6-2 k6 k5 2673145Skris# (Intel CPUs) p4 p3 p2 i686 i586/mmx i586 i486 i386 2772878Skris# Alpha/AXP architecture: ev6 pca56 ev56 ev5 ev45 ev4 2872878Skris# Intel ia64 architecture: itanium 2972679Skris# 3072878Skris#CPUTYPE=i686 3172878Skris#NO_CPU_CFLAGS= true # Don't add -march=<cpu> to CFLAGS automatically 3274146Skris#NO_CPU_COPTFLAGS=true # Don't add -march=<cpu> to COPTFLAGS automatically 3372878Skris# 3458648Skris# CFLAGS controls the compiler settings used when compiling C code. 3568917Sdougb# Note that optimization settings above -O (-O2, ...) are not recommended 3658648Skris# or supported for compiling the world or the kernel - please revert any 3768917Sdougb# nonstandard optimization settings to "-O" before submitting bug reports 3858648Skris# to the developers. 3958648Skris# Note also that at this time the -O2 setting is known to produce BROKEN 4058648Skris# CODE on the Alpha platform. 411664Sphk# 4229281Sjkh#CFLAGS= -O -pipe 431664Sphk# 4459006Sobrien# CXXFLAGS controls the compiler settings used when compiling C++ code. 4559006Sobrien# Note that CXXFLAGS is initially set to the value of CFLAGS. If you wish 4659006Sobrien# to add to CXXFLAGS value, "+=" must be used rather than "=". Using "=" 4759006Sobrien# alone will remove the often needed contents of CFLAGS from CXXFLAGS. 481664Sphk# 4959006Sobrien#CXXFLAGS+= -fmemoize-lookups -fsave-memoized 5059006Sobrien# 5162136Sobrien# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested 5262136Sobrien# for use in developing FreeBSD and testing changes. They can be used by 5362136Sobrien# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf. 5462136Sobrien# 5562136SobrienBDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \ 5673141Sasmodai -Wcast-qual -Wchar-subscripts -Wconversion -Winline \ 5762136Sobrien -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ 5862136Sobrien -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings 5962136Sobrien# 6068917Sdougb# To compile just the kernel with special optimizations, you should use 6168263Sobrien# this instead of CFLAGS (which is not applicable to kernel builds anyway). 6268263Sobrien# There is very little to gain by using higher optimization levels, and doing 6368263Sobrien# so can cause problems. 6465380Sobrien# 6565380Sobrien#COPTFLAGS= -O -pipe 6665380Sobrien# 6742325Sobrien# Compare before install 6835222Sache#INSTALL=install -C 6935222Sache# 7065884Sache# Mtree will follow symlinks 7165957Sache#MTREE_FOLLOWS_SYMLINKS= -L 7265884Sache# 7368559Sru# To enable installing suidperl with the setuid bit turned on 7464576Simp#ENABLE_SUIDPERL= true 7534651Sjkh# 7664803Sbrian# To build ppp with normal permissions 7764803Sbrian#PPP_NOSUID= true 7864803Sbrian# 7968705Sgreen# To enable installing ssh(1) with the setuid bit turned on 8068705Sgreen#ENABLE_SUID_SSH= true 8168705Sgreen# 8251299Speter# To avoid building various parts of the base system: 8357542Skris#NO_CVS= true # do not build CVS 8459124Sasmodai#NO_BIND= true # do not build BIND 8557542Skris#NO_FORTRAN= true # do not build g77 and related libraries 8677041Sru#NO_I4B= true # do not build isdn4bsd package 8761139Shoek#NO_LPR= true # do not build lpr and related programs 8858859Ssheldonh#NO_MAILWRAPPER=true # do not build the mailwrapper(8) MTA selector 8959884Schuckr#NO_MODULES= true # do not build modules with the kernel 9057764Skris#NO_OBJC= true # do not build Objective C support 9157542Skris#NO_OPENSSH= true # do not build OpenSSH 9257542Skris#NO_OPENSSL= true # do not build OpenSSL (implies NO_OPENSSH) 9357542Skris#NO_SENDMAIL= true # do not build sendmail and related programs 9458418Sobrien#NO_SHAREDOCS= true # do not build the 4.4BSD legacy docs 9559338Sobrien#NO_TCSH= true # do not build and install /bin/csh (which is tcsh) 9658280Skris#NO_X= true # do not compile in XWindows support (e.g. doscmd) 9757553Skris#NOCRYPT= true # do not build any crypto code 9857542Skris#NOGAMES= true # do not build games (games/ subdir) 9957542Skris#NOINFO= true # do not make or install info files 10057542Skris#NOLIBC_R= true # do not build libc_r (re-entrant version of libc) 10172679Skris#NOPERL= true # do not build perl. Disables OpenSSL optimizations 10265381Sobrien#NOPROFILE= true # Avoid compiling profiled libraries 10357553Skris#NOSECURE= true # do not build crypto code in secure/ subdir 10457542Skris#NOSHARE= true # do not go into the share subdir 10558390Sdan#NOUUCP= true # do not build uucp related programs 10635206Sphk# 10773043Skris# To build the OpenSSL manpages, uncomment the following. These are not 10873043Skris# built by default because they clobber a number of system manpages with 10973043Skris# manpages describing parts of the OpenSSL toolkit, including passwd(1), 11073043Skris# err(3), md5(3), and others. 11173043Skris# 11273043Skris#WANT_OPENSSL_MANPAGES= true 11373043Skris# 11461744Sobrien# To build sys/modules when building the world (our old way of doing things) 11561744Sobrien#MODULES_WITH_WORLD=true # do not build modules when building kernel 11661744Sobrien# 11757458Smarkm# 11873401Skris# The following controls building optional IDEA code in libcrypto and 11973401Skris# certain ports. Patents are involved - you must not use this unless 12073401Skris# you either have a license or fall within patent 'fair use' 12173401Skris# provisions. 12262482Speter# 12373401Skris# *** It is YOUR RESPONSIBILITY to determine if you can use this! *** 12473401Skris# 12573401Skris# IDEA is patented in the USA and many european countries - thought to 12673401Skris# be OK to use for any non-commercial use. This is optional. 12763123Speter#MAKE_IDEA= YES # IDEA (128 bit symmetric encryption) 12862482Speter# 12974990Sasmodai# To avoid running MAKEDEV all on /dev during install set NO_MAKEDEV_RUN. 13074990Sasmodai# If you don't want to install MAKEDEV set NO_MAKEDEV_INSTALL, this implies 13174990Sasmodai# NO_MAKEDEV_RUN. 13274990Sasmodai#NO_MAKEDEV_INSTALL= true 13374990Sasmodai#NO_MAKEDEV_RUN= true 13457071Srwatson# 1351684Scsgr# If you do not want unformatted manual pages to be compressed 1361684Scsgr# when they are installed: 1371684Scsgr# 1389509Srgrimes#NOMANCOMPRESS= true 1391697Sache# 1401697Sache# 14120847Speter# If you want the "compat" shared libraries installed as part of your normal 14220847Speter# builds, uncomment these: 14320847Speter# 14420847Speter#COMPAT1X= yes 14520847Speter#COMPAT20= yes 14620847Speter#COMPAT21= yes 14747318Sobrien#COMPAT22= yes 14847430Sobrien#COMPAT3X= yes 14974247Smurray#COMPAT4X= yes 15020847Speter# 15120847Speter# 15214403Sasami# If you do not want additional documentation (some of which are 15314403Sasami# a few hundred KB's) for ports to be installed: 15414403Sasami# 15514403Sasami#NOPORTDOCS= true 15614403Sasami# 15714403Sasami# 1581697Sache# Default format for system documentation, depends on your printer. 1591697Sache# Set this to "ascii" for simple printers or screen 1601697Sache# 16125424Sandreas#PRINTERDEVICE= ps 1621733Sadam# 1631733Sadam# 16414102Sadam# How long to wait for a console keypress before booting the default kernel. 16514102Sadam# This value is approximately in milliseconds. Keypresses are accepted by the 16614102Sadam# BIOS before booting from disk, making it possible to give custom boot 16714102Sadam# parameters even when this is set to 0. 1681733Sadam# 1691740Sadam#BOOTWAIT=0 1703023Srgrimes#BOOTWAIT=30000 1711733Sadam# 17218927Spst# By default, the system will always use the keyboard/video card as system 17326522Sbde# console. However, the boot blocks may be dynamically configured to use a 17426522Sbde# serial port in addition to or instead of the keyboard/video console. 1751733Sadam# 17618927Spst# By default we use COM1 as our serial console port *if* we're going to use 17749190Snik# a serial port as our console at all. Alter as necessary. 17818927Spst# 17949190Snik# COM1: = 0x3F8, COM2: = 0x2F8, COM3: = 0x3E8, COM4: = 0x2E8 18049190Snik# 18118928Spst#BOOT_COMCONSOLE_PORT= 0x3F8 18218927Spst# 18326522Sbde# The default serial console speed is 9600. Set the speed to a larger value 18426522Sbde# for better interactive response. 18518927Spst# 18626522Sbde#BOOT_COMCONSOLE_SPEED= 115200 18718927Spst# 18868310Sps# By default the 'pxeboot' loader retrieves the kernel via NFS. Defining 18968310Sps# this and recompiling /usr/src/sys/boot will cause it to retrieve the kernel 19068310Sps# via TFTP. This allows pxeboot to load a custom BOOTP diskless kernel yet 19168310Sps# still mount the server's '/' (i.e. rather then load the server's kernel). 19218927Spst# 19368310Sps#LOADER_TFTP_SUPPORT= YES 19468310Sps# 19575982Sjim# By default, the ports collection attempts to use XFree86 3.3.X. If 19675982Sjim# you are running XFree86 4.X, uncomment this line. 19775982Sjim# 19875982Sjim#XFREE86_VERSION= 4 19975982Sjim# 2004224Sphk# By default, this points to /usr/X11R6 for XFree86 releases 3.0 or earlier. 20115334Sasami# If you have a XFree86 from before 3.0 that has the X distribution in 20215334Sasami# /usr/X386, you want to uncomment this. 2033023Srgrimes# 2044224Sphk#X11BASE= /usr/X386 2053023Srgrimes# 2063023Srgrimes# 20715212Sasami# If you have Motif on your system, uncomment this. 20815212Sasami# 20915212Sasami#HAVE_MOTIF= yes 21035221Sache#MOTIF_STATIC= yes 21115212Sasami# 21215334Sasami# If the default location of the Motif library (specified below) is NOT 21315334Sasami# appropriate for you, uncomment this and change it to the correct value. 21415334Sasami# If your motif is in ${X11BASE}/lib, you don't need to touch this line. 21515212Sasami# 21615334Sasami#MOTIFLIB= -L${X11BASE}/lib -lXm 21715212Sasami# 21815212Sasami# 21929949Sjkh# If you're resident in the USA, this will help various ports to determine 22029949Sjkh# whether or not they should attempt to comply with the various U.S. 22129949Sjkh# export regulations on certain types of software which do not apply to 22229949Sjkh# anyone else in the world. 22322638Sjkh# 22429949Sjkh#USA_RESIDENT= YES 22529949Sjkh# 22629949Sjkh# 22768481Sjkh# Override "don't install a port that's already installed" behavior. 22868481Sjkh# One might wish to do this for ports debugging or to unconditionally 22968481Sjkh# reinstall a set of suspect/broken ports. 23068481Sjkh# 23135222Sache#FORCE_PKG_REGISTER= YES 23235222Sache# 23335222Sache# 23468481Sjkh# If you're behind a firewall and need FTP or HTTP proxy services for 23568481Sjkh# ports collection fetching to work, the following examples give the 23669820Sdes# necessary syntax. See the fetch(3) man page for details. 23768481Sjkh# 23868481Sjkh#FTP_PROXY= 10.0.0.1:21 23968481Sjkh#HTTP_PROXY= 10.0.0.1:80 24068481Sjkh# 24168481Sjkh# 24236263Sjkh# Port master sites. 24324951Sasami# 24424951Sasami# If you want your port fetches to go somewhere else than the default 24524951Sasami# (specified below) in case the distfile/patchfile was not found, 24624951Sasami# uncomment this and change it to a location nearest you. (Don't 24724951Sasami# remove the "/${DIST_SUBDIR}/" part.) 24824951Sasami# 24924951Sasami#MASTER_SITE_BACKUP?= \ 25042876Sasami# ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ 25124951Sasami# 25224951Sasami# If you want your port fetches to check the above site first (before 25324951Sasami# the MASTER_SITES specified in the port Makefiles), uncomment the 25424951Sasami# line below. You can also change the right side to point to wherever 25524951Sasami# you want. 25624951Sasami# 25724951Sasami#MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP} 25824951Sasami# 25924951Sasami# Some ports use a special variable to point to a collection of 26024951Sasami# mirrors of well-known software archives. If you have a mirror close 26124951Sasami# to you, uncomment any of the following lines and change it to that 26233880Sfenner# address. (Don't remove the "/%SUBDIR%/" part.) 26324951Sasami# 26424951Sasami# Note: the right hand sides of the following lines are only for your 26524951Sasami# information. For a full list of default sites, take a look at 26667431Sknu# bsd.sites.mk. 26724951Sasami# 26875839Ssobomax#MASTER_SITE_AFTERSTEP= ftp://ftp.afterstep.org/%SUBDIR%/ 26975839Ssobomax#MASTER_SITE_COMP_SOURCES= ftp://gatekeeper.dec.com/pub/usenet/comp.sources.%SUBDIR%/ 27075839Ssobomax#MASTER_SITE_GNOME= ftp://ftp.gnome.org/pub/GNOME/sources/%SUBDIR%/ 27168164Srse#MASTER_SITE_GNU= ftp://ftp.gnu.org/gnu/%SUBDIR%/ 27275839Ssobomax#MASTER_SITE_KDE= ftp://ftp.kde.org/pub/kde/%SUBDIR%/ 27375839Ssobomax#MASTER_SITE_LOCAL= ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/ 27475839Ssobomax#MASTER_SITE_MOZILLA= ftp://ftp.mozilla.org/pub/%SUBDIR%/ 27575839Ssobomax#MASTER_SITE_NETBSD= ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/%SUBDIR%/ 27633880Sfenner#MASTER_SITE_PERL_CPAN= ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/by-module/%SUBDIR%/ 27775839Ssobomax#MASTER_SITE_PORTS_JP= ftp://ports.jp.FreeBSD.org/pub/FreeBSD-jp/ports-jp/LOCAL_PORTS/%SUBDIR%/ 27875839Ssobomax#MASTER_SITE_RINGSERVER= ftp://ftp.dnsbalance.ring.gr.jp/pub/%SUBDIR%/ 27975839Ssobomax#MASTER_SITE_RUBY= ftp://ftp.netlab.co.jp/pub/lang/ruby/%SUBDIR%/ 28075839Ssobomax#MASTER_SITE_SOURCEFORGE= ftp://ftp2.sourceforge.net/pub/sourceforge/%SUBDIR%/ 28175839Ssobomax#MASTER_SITE_SOURCEWARE= ftp://ftp.freesoftware.com/pub/sourceware/%SUBDIR%/ 28275839Ssobomax#MASTER_SITE_SUNSITE= ftp://metalab.unc.edu/pub/Linux/%SUBDIR%/ 28375839Ssobomax#MASTER_SITE_TCLTK= ftp://ftp.scriptics.com/pub/tcl/%SUBDIR%/ 28433880Sfenner#MASTER_SITE_TEX_CTAN= ftp://ftp.tex.ac.uk/tex-archive/%SUBDIR%/ 28575839Ssobomax#MASTER_SITE_THEMES= ftp://ftp.themes.org/pub/themes/%SUBDIR%/ 28644748Sbillf#MASTER_SITE_WINDOWMAKER= ftp://ftp.windowmaker.org/pub/%SUBDIR%/ 28775839Ssobomax#MASTER_SITE_XCONTRIB= ftp://ftp.x.org/contrib/%SUBDIR%/ 28875839Ssobomax#MASTER_SITE_XEMACS= ftp://ftp.xemacs.org/pub/xemacs/%SUBDIR%/ 28975839Ssobomax#MASTER_SITE_XFREE= ftp://ftp.xfree86.org/pub/XFree86/%SUBDIR%/source/ 29024951Sasami# 29167431Sknu# Also it is highly recommended that you configure MASTER_SORT_REGEX 29267431Sknu# to choose better mirror sites for you. List awk(1)-style regular 29367431Sknu# expressions separated by space so MASTER_SITES will be sorted in 29467431Sknu# that order. The following example is for Japanese users; change 29567431Sknu# "jp" part to your ccTLD ("de", "ru", "uk", etc.) or the domain names 29667431Sknu# of your nearest/upstream networks to meet your needs. 29724951Sasami# 29867431Sknu#MASTER_SORT_REGEX?= ^file: ^ftp://ftp\.FreeBSD\.org/pub/FreeBSD/ports/local-distfiles/ ://[^/]*\.jp/ ://[^/]*\.jp\. 29967431Sknu# 3003241Scsgr# Kerberos IV 30129931Smarkm# If you want KerberosIV (KTH eBones), define this: 3023241Scsgr# 30329931Smarkm#MAKE_KERBEROS4= yes 30410758Sache# 30510758Sache# 30656553Smarkm# Kerberos 5 30776518Sassar# If you want Kerberos 5 (KTH Heimdal), define this: 30856553Smarkm# 30956553Smarkm#MAKE_KERBEROS5= yes 31056553Smarkm# 31156553Smarkm# 31238003Sdima# Kerberos5 31356553Smarkm# If you want to install MIT Kerberos5 port somewhere other than /usr/local, 31456553Smarkm# define this (this is also used to tell ssh1 that kerberos is needed): 31538003Sdima# 31656553Smarkm#KRB5_HOME= /usr/local 31738003Sdima# 31838003Sdima# 31937162Sjkh# CVSup update flags. Edit SUPFILE settings to reflect whichever distribution 32037162Sjkh# file(s) you use on your site (see /usr/share/examples/cvsup/README for more 32137162Sjkh# information on CVSup and these files). To use, do "make update" in /usr/src. 32210758Sache# 32310758Sache#SUP_UPDATE= yes 32418716Sache# 32520545Sache#SUP= /usr/local/bin/cvsup 32649777Ssheldonh#SUPFLAGS= -g -L 2 32764605Sjoe#SUPHOST= cvsup.uk.FreeBSD.org 32818716Sache#SUPFILE= /usr/share/examples/cvsup/standard-supfile 32947651Sbillf#PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile 33054670Sbillf#DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile 33124225Sjoerg# 33224225Sjoerg# top(1) uses a hash table for the user names. The size of this hash 33324225Sjoerg# can be tuned to match the number of local users. The table size should 33424225Sjoerg# be a prime number approximately twice as large as the number of lines in 33524225Sjoerg# /etc/passwd. The default number is 20011. 33624225Sjoerg# 33724225Sjoerg#TOP_TABLE_SIZE= 101 33858449Snik# 33958449Snik# Documentation 34058449Snik# 34158449Snik# The list of languages and encodings to build and install 34258449Snik# 34378035Sache#DOC_LANG= en_US.ISO8859-1 ru_RU.KOI8-R 34465970Sgshapiro# 34565970Sgshapiro# 34665970Sgshapiro# sendmail 34772846Sgshapiro# 34872846Sgshapiro# The following sets the default m4 configuration file to use at 34972846Sgshapiro# install time. Use with caution as a make install will overwrite 35072846Sgshapiro# any existing /etc/mail/sendmail.cf. Note that SENDMAIL_CF is now 35172916Sgshapiro# deprecated. The value should be a fully qualified path name. 35272846Sgshapiro# 35373836Sgshapiro#SENDMAIL_MC=/etc/mail/myconfig.mc 35472846Sgshapiro# 35572918Sgshapiro# If you need to build additional .cf files during a make buildworld, 35672918Sgshapiro# include the full paths to the .mc files in SENDMAIL_ADDITIONAL_MC. 35772918Sgshapiro# 35872918Sgshapiro#SENDMAIL_ADDITIONAL_MC=/etc/mail/foo.mc /etc/mail/bar.mc 35972918Sgshapiro# 36065970Sgshapiro# Setting the following variables modifes the build environment for 36165970Sgshapiro# sendmail and its related utilities. For example, SASL support can be 36265970Sgshapiro# added with settings such as: 36365970Sgshapiro# 36474055Sgshapiro# SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL 36565970Sgshapiro# SENDMAIL_LDFLAGS=-L/usr/local/lib 36665970Sgshapiro# SENDMAIL_LDADD=-lsasl 36765970Sgshapiro# 36869380Sgshapiro# Note: If you are using Cyrus SASL with other applications which require 36969380Sgshapiro# access to the sasldb file, you should add '-D_FFR_UNSAFE_SASL' to 37069380Sgshapiro# SENDMAIL_CFLAGS. Also, add the following to your sendmail.mc file: 37169380Sgshapiro# 37269380Sgshapiro# define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLFile') 37369380Sgshapiro# 37465970Sgshapiro#SENDMAIL_CFLAGS= 37565970Sgshapiro#SENDMAIL_LDFLAGS= 37665970Sgshapiro#SENDMAIL_LDADD= 37765970Sgshapiro#SENDMAIL_DPADD= 378