make.conf revision 72916
150472Speter# $FreeBSD: head/share/examples/etc/make.conf 72916 2001-02-22 19:34:13Z 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#
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:
2472878Skris#   Intel x86 architecture: k7 k6 k5 i686 i585 i486 i386
2572878Skris#   Alpha/AXP architecture: ev6 pca56 ev56 ev5 ev45 ev4
2672878Skris#   Intel ia64 architecture: itanium
2772679Skris#
2872878Skris#CPUTYPE=i686
2972878Skris#NO_CPU_CFLAGS=	true	# Don't add -march=<cpu> to CFLAGS automatically
3072878Skris#
3158648Skris# CFLAGS controls the compiler settings used when compiling C code.
3268917Sdougb# Note that optimization settings above -O (-O2, ...) are not recommended
3358648Skris# or supported for compiling the world or the kernel - please revert any
3468917Sdougb# nonstandard optimization settings to "-O" before submitting bug reports
3558648Skris# to the developers.
3658648Skris# Note also that at this time the -O2 setting is known to produce BROKEN
3758648Skris# CODE on the Alpha platform.
381664Sphk#
3929281Sjkh#CFLAGS= -O -pipe
401664Sphk#
4159006Sobrien# CXXFLAGS controls the compiler settings used when compiling C++ code.
4259006Sobrien# Note that CXXFLAGS is initially set to the value of CFLAGS.  If you wish
4359006Sobrien# to add to CXXFLAGS value, "+=" must be used rather than "=".  Using "="
4459006Sobrien# alone will remove the often needed contents of CFLAGS from CXXFLAGS.
451664Sphk#
4659006Sobrien#CXXFLAGS+= -fmemoize-lookups -fsave-memoized
4759006Sobrien#
4862136Sobrien# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested
4962136Sobrien# for use in developing FreeBSD and testing changes.  They can be used by
5062136Sobrien# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf.
5162136Sobrien#
5262136SobrienBDECFLAGS=	-W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
5362136Sobrien		-Wcast-qual -Wchar-subscripts -Wconversion -Winline \
5462136Sobrien		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
5562136Sobrien		-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
5662136Sobrien#
5768917Sdougb# To compile just the kernel with special optimizations, you should use
5868263Sobrien# this instead of CFLAGS (which is not applicable to kernel builds anyway).
5968263Sobrien# There is very little to gain by using higher optimization levels, and doing
6068263Sobrien# so can cause problems.
6165380Sobrien#
6265380Sobrien#COPTFLAGS= -O -pipe
6365380Sobrien#
6442325Sobrien# Compare before install
6535222Sache#INSTALL=install -C
6635222Sache#
6765884Sache# Mtree will follow symlinks
6865957Sache#MTREE_FOLLOWS_SYMLINKS= -L
6965884Sache#
7068559Sru# To enable installing suidperl with the setuid bit turned on
7164576Simp#ENABLE_SUIDPERL=	true
7234651Sjkh#
7350883Smarkm# To build perl with thread support
7450883Smarkm#PERL_THREADED=	true
7550883Smarkm#
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
8661139Shoek#NO_LPR=	true	# do not build lpr and related programs
8758859Ssheldonh#NO_MAILWRAPPER=true	# do not build the mailwrapper(8) MTA selector
8859884Schuckr#NO_MODULES=	true	# do not build modules with the kernel
8957764Skris#NO_OBJC=	true	# do not build Objective C support
9057542Skris#NO_OPENSSH=	true	# do not build OpenSSH
9157542Skris#NO_OPENSSL=	true	# do not build OpenSSL (implies NO_OPENSSH)
9257542Skris#NO_SENDMAIL=	true	# do not build sendmail and related programs
9358418Sobrien#NO_SHAREDOCS=	true	# do not build the 4.4BSD legacy docs
9459338Sobrien#NO_TCSH=	true	# do not build and install /bin/csh (which is tcsh)
9558280Skris#NO_X=		true	# do not compile in XWindows support (e.g. doscmd)
9657553Skris#NOCRYPT=	true	# do not build any crypto code
9757542Skris#NOGAMES=	true	# do not build games (games/ subdir)
9857542Skris#NOINFO=	true	# do not make or install info files
9957542Skris#NOLIBC_R=	true	# do not build libc_r (re-entrant version of libc)
10072679Skris#NOPERL=	true	# do not build perl. Disables OpenSSL optimizations
10165381Sobrien#NOPROFILE=	true	# Avoid compiling profiled libraries
10257553Skris#NOSECURE=	true	# do not build crypto code in secure/ subdir
10357542Skris#NOSHARE=	true	# do not go into the share subdir
10458390Sdan#NOUUCP=	true	# do not build uucp related programs
10535206Sphk#
10661744Sobrien# To build sys/modules when building the world (our old way of doing things)
10761744Sobrien#MODULES_WITH_WORLD=true	# do not build modules when building kernel
10861744Sobrien#
10957458Smarkm#
11062482Speter# Controls for building various OPTIONAL parts of the crypto system.
11162482Speter# Patents are involved - you must not use these unless you either have
11262482Speter# a license or would be within patent 'fair use' provisions.
11362482Speter# Generally 'educational use' is OK, but personal (even non-commercial)
11462482Speter# use is not.
11562482Speter# *** It is YOUR RESPONSIBILITY to determine if you can use these! ***
11662482Speter#
11762482Speter# Patented in the USA and many european countries - thought to be OK to
11862482Speter# use for any non-commercial use.  This is optional.
11963123Speter#MAKE_IDEA=	YES	# IDEA (128 bit symmetric encryption)
12062482Speter#
12157071Srwatson# To avoid running MAKEDEV all on /dev during install:
12257071Srwatson#NO_MAKEDEV=	true
12357071Srwatson#
1241684Scsgr# If you do not want unformatted manual pages to be compressed
1251684Scsgr# when they are installed:
1261684Scsgr#
1279509Srgrimes#NOMANCOMPRESS=	true
1281697Sache#
1291697Sache#
13020847Speter# If you want the "compat" shared libraries installed as part of your normal
13120847Speter# builds, uncomment these:
13220847Speter#
13320847Speter#COMPAT1X=	yes
13420847Speter#COMPAT20=	yes
13520847Speter#COMPAT21=	yes
13647318Sobrien#COMPAT22=	yes
13747430Sobrien#COMPAT3X=	yes
13820847Speter#
13920847Speter#
14014403Sasami# If you do not want additional documentation (some of which are
14114403Sasami# a few hundred KB's) for ports to be installed:
14214403Sasami#
14314403Sasami#NOPORTDOCS=	true
14414403Sasami#
14514403Sasami#
1461697Sache# Default format for system documentation, depends on your printer.
1471697Sache# Set this to "ascii" for simple printers or screen
1481697Sache#
14925424Sandreas#PRINTERDEVICE=	ps
1501733Sadam#
1511733Sadam#
15214102Sadam# How long to wait for a console keypress before booting the default kernel.
15314102Sadam# This value is approximately in milliseconds. Keypresses are accepted by the
15414102Sadam# BIOS before booting from disk, making it possible to give custom boot
15514102Sadam# parameters even when this is set to 0.
1561733Sadam#
1571740Sadam#BOOTWAIT=0
1583023Srgrimes#BOOTWAIT=30000
1591733Sadam#
16018927Spst# By default, the system will always use the keyboard/video card as system
16126522Sbde# console.  However, the boot blocks may be dynamically configured to use a
16226522Sbde# serial port in addition to or instead of the keyboard/video console.
1631733Sadam#
16418927Spst# By default we use COM1 as our serial console port *if* we're going to use
16549190Snik# a serial port as our console at all.  Alter as necessary.
16618927Spst#
16749190Snik#   COM1: = 0x3F8, COM2: = 0x2F8, COM3: = 0x3E8, COM4: = 0x2E8
16849190Snik#
16918928Spst#BOOT_COMCONSOLE_PORT=	0x3F8
17018927Spst#
17126522Sbde# The default serial console speed is 9600.  Set the speed to a larger value
17226522Sbde# for better interactive response.
17318927Spst#
17426522Sbde#BOOT_COMCONSOLE_SPEED=	115200
17518927Spst#
17668310Sps# By default the 'pxeboot' loader retrieves the kernel via NFS.  Defining
17768310Sps# this and recompiling /usr/src/sys/boot will cause it to retrieve the kernel
17868310Sps# via TFTP.  This allows pxeboot to load a custom BOOTP diskless kernel yet
17968310Sps# still mount the server's '/' (i.e. rather then load the server's kernel).
18018927Spst#
18168310Sps#LOADER_TFTP_SUPPORT= YES
18268310Sps#
1834224Sphk# By default, this points to /usr/X11R6 for XFree86 releases 3.0 or earlier.
18415334Sasami# If you have a XFree86 from before 3.0 that has the X distribution in
18515334Sasami# /usr/X386, you want to uncomment this.
1863023Srgrimes#
1874224Sphk#X11BASE=	/usr/X386
1883023Srgrimes#
1893023Srgrimes#
19015212Sasami# If you have Motif on your system, uncomment this.
19115212Sasami#
19215212Sasami#HAVE_MOTIF=	yes
19335221Sache#MOTIF_STATIC=  yes
19415212Sasami#
19515334Sasami# If the default location of the Motif library (specified below) is NOT
19615334Sasami# appropriate for you, uncomment this and change it to the correct value.
19715334Sasami# If your motif is in ${X11BASE}/lib, you don't need to touch this line.
19815212Sasami#
19915334Sasami#MOTIFLIB=	-L${X11BASE}/lib -lXm
20015212Sasami#
20115212Sasami#
20229949Sjkh# If you're resident in the USA, this will help various ports to determine
20329949Sjkh# whether or not they should attempt to comply with the various U.S.
20429949Sjkh# export regulations on certain types of software which do not apply to
20529949Sjkh# anyone else in the world.
20622638Sjkh#
20729949Sjkh#USA_RESIDENT=		YES
20829949Sjkh#
20929949Sjkh#
21068481Sjkh# Override "don't install a port that's already installed" behavior.
21168481Sjkh# One might wish to do this for ports debugging or to unconditionally
21268481Sjkh# reinstall a set of suspect/broken ports.
21368481Sjkh#
21435222Sache#FORCE_PKG_REGISTER=    YES
21535222Sache#
21635222Sache#
21768481Sjkh# If you're behind a firewall and need FTP or HTTP proxy services for
21868481Sjkh# ports collection fetching to work, the following examples give the
21969820Sdes# necessary syntax.  See the fetch(3) man page for details.
22068481Sjkh#
22168481Sjkh#FTP_PROXY=      10.0.0.1:21
22268481Sjkh#HTTP_PROXY=     10.0.0.1:80
22368481Sjkh#
22468481Sjkh#
22536263Sjkh# Port master sites.
22624951Sasami#
22724951Sasami# If you want your port fetches to go somewhere else than the default
22824951Sasami# (specified below) in case the distfile/patchfile was not found,
22924951Sasami# uncomment this and change it to a location nearest you.  (Don't
23024951Sasami# remove the "/${DIST_SUBDIR}/" part.)
23124951Sasami#
23224951Sasami#MASTER_SITE_BACKUP?=	\
23342876Sasami#	ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
23424951Sasami#
23524951Sasami# If you want your port fetches to check the above site first (before
23624951Sasami# the MASTER_SITES specified in the port Makefiles), uncomment the
23724951Sasami# line below.  You can also change the right side to point to wherever 
23824951Sasami# you want.
23924951Sasami#
24024951Sasami#MASTER_SITE_OVERRIDE?=	${MASTER_SITE_BACKUP}
24124951Sasami#
24224951Sasami# Some ports use a special variable to point to a collection of
24324951Sasami# mirrors of well-known software archives.  If you have a mirror close
24424951Sasami# to you, uncomment any of the following lines and change it to that
24533880Sfenner# address.  (Don't remove the "/%SUBDIR%/" part.)
24624951Sasami#
24724951Sasami# Note: the right hand sides of the following lines are only for your
24824951Sasami# information.  For a full list of default sites, take a look at
24967431Sknu# bsd.sites.mk.
25024951Sasami#
25133880Sfenner#MASTER_SITE_XCONTRIB=	ftp://ftp.x.org/contrib/%SUBDIR%/
25267431Sknu#MASTER_SITE_XFREE=	ftp://ftp.freesoftware.com/pub/XFree86/%SUBDIR%/source/
25368164Srse#MASTER_SITE_GNU=	ftp://ftp.gnu.org/gnu/%SUBDIR%/
25433880Sfenner#MASTER_SITE_PERL_CPAN=	ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/by-module/%SUBDIR%/
25533880Sfenner#MASTER_SITE_TEX_CTAN=	ftp://ftp.tex.ac.uk/tex-archive/%SUBDIR%/
25647726Sbillf#MASTER_SITE_SUNSITE=	ftp://metalab.unc.edu/pub/Linux/%SUBDIR%/
25767431Sknu#MASTER_SITE_RINGSERVER=	ftp://ring.ocn.ad.jp/pub/%SUBDIR%/
25842876Sasami#MASTER_SITE_KDE=	ftp://ftp.kde.org/pub/kde/%SUBDIR%/
25942876Sasami#MASTER_SITE_COMP_SOURCES=	ftp://gatekeeper.dec.com/pub/usenet/comp.sources.%SUBDIR%/
26042876Sasami#MASTER_SITE_GNOME=	ftp://ftp.gnome.org/pub/GNOME/sources/%SUBDIR%/
26144748Sbillf#MASTER_SITE_AFTERSTEP=	ftp://ftp.afterstep.org/%SUBDIR%/
26244748Sbillf#MASTER_SITE_WINDOWMAKER=	ftp://ftp.windowmaker.org/pub/%SUBDIR%/
26367491Sknu#MASTER_SITE_MOZILLA=	ftp://ftp.yggdrasil.com/mirrors/site/ftp.mozilla.org/pub/%SUBDIR%/
26467491Sknu#MASTER_SITE_XEMACS=	ftp://ftp.sunsite.utk.edu/pub/xemacs/%SUBDIR%/
26567431Sknu#MASTER_SITE_TCLTK=	ftp://ftp.uu.net/languages/tcl/%SUBDIR%/
26667431Sknu#MASTER_SITE_RUBY=	ftp://ftp.fu-berlin.de/unix/languages/ruby/%SUBDIR%/
26724951Sasami#
26867431Sknu# Also it is highly recommended that you configure MASTER_SORT_REGEX
26967431Sknu# to choose better mirror sites for you.  List awk(1)-style regular
27067431Sknu# expressions separated by space so MASTER_SITES will be sorted in
27167431Sknu# that order.  The following example is for Japanese users; change
27267431Sknu# "jp" part to your ccTLD ("de", "ru", "uk", etc.) or the domain names
27367431Sknu# of your nearest/upstream networks to meet your needs.
27424951Sasami#
27567431Sknu#MASTER_SORT_REGEX?=	^file: ^ftp://ftp\.FreeBSD\.org/pub/FreeBSD/ports/local-distfiles/ ://[^/]*\.jp/ ://[^/]*\.jp\.
27667431Sknu#
2773241Scsgr# Kerberos IV
27829931Smarkm# If you want KerberosIV (KTH eBones), define this:
2793241Scsgr#
28029931Smarkm#MAKE_KERBEROS4=	yes
28110758Sache#
28210758Sache#
28356553Smarkm# Kerberos 5
28456553Smarkm# If you want KerberosIV (KTH Heimdal), define this:
28556553Smarkm# ** WARNING **
28656553Smarkm# ** WARNING ** This is very experimental at this stage. If you
28756553Smarkm# ** WARNING ** need stable Kerberos5, rather use the port(s).
28856553Smarkm# ** WARNING **
28956553Smarkm#
29056553Smarkm#MAKE_KERBEROS5=	yes
29156553Smarkm#
29256553Smarkm#
29338003Sdima# Kerberos5
29456553Smarkm# If you want to install MIT Kerberos5 port somewhere other than /usr/local,
29556553Smarkm# define this (this is also used to tell ssh1 that kerberos is needed):
29638003Sdima#
29756553Smarkm#KRB5_HOME=		/usr/local
29838003Sdima#
29938003Sdima#
30037162Sjkh# CVSup update flags.  Edit SUPFILE settings to reflect whichever distribution
30137162Sjkh# file(s) you use on your site (see /usr/share/examples/cvsup/README for more
30237162Sjkh# information on CVSup and these files).  To use, do "make update" in /usr/src.
30310758Sache#
30410758Sache#SUP_UPDATE=     yes
30518716Sache#
30620545Sache#SUP=            /usr/local/bin/cvsup
30749777Ssheldonh#SUPFLAGS=       -g -L 2
30864605Sjoe#SUPHOST=        cvsup.uk.FreeBSD.org
30918716Sache#SUPFILE=        /usr/share/examples/cvsup/standard-supfile
31018716Sache#SUPFILE1=       /usr/share/examples/cvsup/secure-supfile
31147651Sbillf#PORTSSUPFILE=   /usr/share/examples/cvsup/ports-supfile
31254670Sbillf#DOCSUPFILE=     /usr/share/examples/cvsup/doc-supfile
31324225Sjoerg#
31424225Sjoerg# top(1) uses a hash table for the user names.  The size of this hash
31524225Sjoerg# can be tuned to match the number of local users.  The table size should
31624225Sjoerg# be a prime number approximately twice as large as the number of lines in
31724225Sjoerg# /etc/passwd.  The default number is 20011.
31824225Sjoerg#
31924225Sjoerg#TOP_TABLE_SIZE= 101
32058449Snik#
32158449Snik# Documentation
32258449Snik#
32358449Snik# The list of languages and encodings to build and install
32458449Snik#
32558449Snik#DOC_LANG=	en_US.ISO_8859-1 ru_RU.KOI8-R
32665970Sgshapiro#
32765970Sgshapiro#
32865970Sgshapiro# sendmail
32972846Sgshapiro#
33072846Sgshapiro# The following sets the default m4 configuration file to use at
33172846Sgshapiro# install time.  Use with caution as a make install will overwrite
33272846Sgshapiro# any existing /etc/mail/sendmail.cf.  Note that SENDMAIL_CF is now
33372916Sgshapiro# deprecated.  The value should be a fully qualified path name.
33472846Sgshapiro#
33572916Sgshapiro#SENDMAIL_MC=/etc/sendmail/freebsd.mc
33672846Sgshapiro#
33765970Sgshapiro# Setting the following variables modifes the build environment for
33865970Sgshapiro# sendmail and its related utilities. For example, SASL support can be
33965970Sgshapiro# added with settings such as:
34065970Sgshapiro#
34165970Sgshapiro#	SENDMAIL_CFLAGS=-I/usr/local/include -DSASL
34265970Sgshapiro#	SENDMAIL_LDFLAGS=-L/usr/local/lib
34365970Sgshapiro#	SENDMAIL_LDADD=-lsasl
34465970Sgshapiro#
34569380Sgshapiro# Note: If you are using Cyrus SASL with other applications which require
34669380Sgshapiro#	access to the sasldb file, you should add '-D_FFR_UNSAFE_SASL' to
34769380Sgshapiro#	SENDMAIL_CFLAGS.  Also, add the following to your sendmail.mc file:
34869380Sgshapiro#
34969380Sgshapiro#	define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLFile')
35069380Sgshapiro#
35165970Sgshapiro#SENDMAIL_CFLAGS=
35265970Sgshapiro#SENDMAIL_LDFLAGS=
35365970Sgshapiro#SENDMAIL_LDADD=
35465970Sgshapiro#SENDMAIL_DPADD=
355