make.conf revision 72846
150472Speter# $FreeBSD: head/share/examples/etc/make.conf 72846 2001-02-22 04:11:52Z 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# 
1772679Skris# MACHINE_CPU controls which processor-specific optimizations will be
1872679Skris# used by certain components of FreeBSD (currently only OpenSSL).
1972679Skris# This should be set to a list of your CPU type, plus all previous
2072679Skris# generations of the CPU architecture.  The reason for using a list is
2172679Skris# because not all programs which use the MACHINE_CPU variable may have
2272679Skris# optimizations for your specific CPU generation (e.g. Pentium Pro),
2372679Skris# but may have optimizations for the previous generation (e.g. Pentium).
2472679Skris# Currently only the following CPU generations are used:
2572679Skris# i686 i585 i386
2672679Skris#
2772679Skris#MACHINE_CPU=i686 i586 i386
2872679Skris#
2958648Skris# CFLAGS controls the compiler settings used when compiling C code.
3068917Sdougb# Note that optimization settings above -O (-O2, ...) are not recommended
3158648Skris# or supported for compiling the world or the kernel - please revert any
3268917Sdougb# nonstandard optimization settings to "-O" before submitting bug reports
3358648Skris# to the developers.
3458648Skris# Note also that at this time the -O2 setting is known to produce BROKEN
3558648Skris# CODE on the Alpha platform.
361664Sphk#
3729281Sjkh#CFLAGS= -O -pipe
381664Sphk#
3959006Sobrien# CXXFLAGS controls the compiler settings used when compiling C++ code.
4059006Sobrien# Note that CXXFLAGS is initially set to the value of CFLAGS.  If you wish
4159006Sobrien# to add to CXXFLAGS value, "+=" must be used rather than "=".  Using "="
4259006Sobrien# alone will remove the often needed contents of CFLAGS from CXXFLAGS.
431664Sphk#
4459006Sobrien#CXXFLAGS+= -fmemoize-lookups -fsave-memoized
4559006Sobrien#
4662136Sobrien# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested
4762136Sobrien# for use in developing FreeBSD and testing changes.  They can be used by
4862136Sobrien# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf.
4962136Sobrien#
5062136SobrienBDECFLAGS=	-W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
5162136Sobrien		-Wcast-qual -Wchar-subscripts -Wconversion -Winline \
5262136Sobrien		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
5362136Sobrien		-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
5462136Sobrien#
5568917Sdougb# To compile just the kernel with special optimizations, you should use
5668263Sobrien# this instead of CFLAGS (which is not applicable to kernel builds anyway).
5768263Sobrien# There is very little to gain by using higher optimization levels, and doing
5868263Sobrien# so can cause problems.
5965380Sobrien#
6065380Sobrien#COPTFLAGS= -O -pipe
6165380Sobrien#
6242325Sobrien# Compare before install
6335222Sache#INSTALL=install -C
6435222Sache#
6565884Sache# Mtree will follow symlinks
6665957Sache#MTREE_FOLLOWS_SYMLINKS= -L
6765884Sache#
6868559Sru# To enable installing suidperl with the setuid bit turned on
6964576Simp#ENABLE_SUIDPERL=	true
7034651Sjkh#
7150883Smarkm# To build perl with thread support
7250883Smarkm#PERL_THREADED=	true
7350883Smarkm#
7464803Sbrian# To build ppp with normal permissions
7564803Sbrian#PPP_NOSUID=	true
7664803Sbrian#
7768705Sgreen# To enable installing ssh(1) with the setuid bit turned on
7868705Sgreen#ENABLE_SUID_SSH=	true
7968705Sgreen#
8051299Speter# To avoid building various parts of the base system:
8157542Skris#NO_CVS=	true	# do not build CVS
8259124Sasmodai#NO_BIND=	true	# do not build BIND
8357542Skris#NO_FORTRAN=	true	# do not build g77 and related libraries
8461139Shoek#NO_LPR=	true	# do not build lpr and related programs
8558859Ssheldonh#NO_MAILWRAPPER=true	# do not build the mailwrapper(8) MTA selector
8659884Schuckr#NO_MODULES=	true	# do not build modules with the kernel
8757764Skris#NO_OBJC=	true	# do not build Objective C support
8857542Skris#NO_OPENSSH=	true	# do not build OpenSSH
8957542Skris#NO_OPENSSL=	true	# do not build OpenSSL (implies NO_OPENSSH)
9057542Skris#NO_SENDMAIL=	true	# do not build sendmail and related programs
9158418Sobrien#NO_SHAREDOCS=	true	# do not build the 4.4BSD legacy docs
9259338Sobrien#NO_TCSH=	true	# do not build and install /bin/csh (which is tcsh)
9358280Skris#NO_X=		true	# do not compile in XWindows support (e.g. doscmd)
9457553Skris#NOCRYPT=	true	# do not build any crypto code
9557542Skris#NOGAMES=	true	# do not build games (games/ subdir)
9657542Skris#NOINFO=	true	# do not make or install info files
9757542Skris#NOLIBC_R=	true	# do not build libc_r (re-entrant version of libc)
9872679Skris#NOPERL=	true	# do not build perl. Disables OpenSSL optimizations
9965381Sobrien#NOPROFILE=	true	# Avoid compiling profiled libraries
10057553Skris#NOSECURE=	true	# do not build crypto code in secure/ subdir
10157542Skris#NOSHARE=	true	# do not go into the share subdir
10258390Sdan#NOUUCP=	true	# do not build uucp related programs
10335206Sphk#
10461744Sobrien# To build sys/modules when building the world (our old way of doing things)
10561744Sobrien#MODULES_WITH_WORLD=true	# do not build modules when building kernel
10661744Sobrien#
10757458Smarkm#
10862482Speter# Controls for building various OPTIONAL parts of the crypto system.
10962482Speter# Patents are involved - you must not use these unless you either have
11062482Speter# a license or would be within patent 'fair use' provisions.
11162482Speter# Generally 'educational use' is OK, but personal (even non-commercial)
11262482Speter# use is not.
11362482Speter# *** It is YOUR RESPONSIBILITY to determine if you can use these! ***
11462482Speter#
11562482Speter# Patented in the USA and many european countries - thought to be OK to
11662482Speter# use for any non-commercial use.  This is optional.
11763123Speter#MAKE_IDEA=	YES	# IDEA (128 bit symmetric encryption)
11862482Speter#
11957071Srwatson# To avoid running MAKEDEV all on /dev during install:
12057071Srwatson#NO_MAKEDEV=	true
12157071Srwatson#
1221684Scsgr# If you do not want unformatted manual pages to be compressed
1231684Scsgr# when they are installed:
1241684Scsgr#
1259509Srgrimes#NOMANCOMPRESS=	true
1261697Sache#
1271697Sache#
12820847Speter# If you want the "compat" shared libraries installed as part of your normal
12920847Speter# builds, uncomment these:
13020847Speter#
13120847Speter#COMPAT1X=	yes
13220847Speter#COMPAT20=	yes
13320847Speter#COMPAT21=	yes
13447318Sobrien#COMPAT22=	yes
13547430Sobrien#COMPAT3X=	yes
13620847Speter#
13720847Speter#
13814403Sasami# If you do not want additional documentation (some of which are
13914403Sasami# a few hundred KB's) for ports to be installed:
14014403Sasami#
14114403Sasami#NOPORTDOCS=	true
14214403Sasami#
14314403Sasami#
1441697Sache# Default format for system documentation, depends on your printer.
1451697Sache# Set this to "ascii" for simple printers or screen
1461697Sache#
14725424Sandreas#PRINTERDEVICE=	ps
1481733Sadam#
1491733Sadam#
15014102Sadam# How long to wait for a console keypress before booting the default kernel.
15114102Sadam# This value is approximately in milliseconds. Keypresses are accepted by the
15214102Sadam# BIOS before booting from disk, making it possible to give custom boot
15314102Sadam# parameters even when this is set to 0.
1541733Sadam#
1551740Sadam#BOOTWAIT=0
1563023Srgrimes#BOOTWAIT=30000
1571733Sadam#
15818927Spst# By default, the system will always use the keyboard/video card as system
15926522Sbde# console.  However, the boot blocks may be dynamically configured to use a
16026522Sbde# serial port in addition to or instead of the keyboard/video console.
1611733Sadam#
16218927Spst# By default we use COM1 as our serial console port *if* we're going to use
16349190Snik# a serial port as our console at all.  Alter as necessary.
16418927Spst#
16549190Snik#   COM1: = 0x3F8, COM2: = 0x2F8, COM3: = 0x3E8, COM4: = 0x2E8
16649190Snik#
16718928Spst#BOOT_COMCONSOLE_PORT=	0x3F8
16818927Spst#
16926522Sbde# The default serial console speed is 9600.  Set the speed to a larger value
17026522Sbde# for better interactive response.
17118927Spst#
17226522Sbde#BOOT_COMCONSOLE_SPEED=	115200
17318927Spst#
17468310Sps# By default the 'pxeboot' loader retrieves the kernel via NFS.  Defining
17568310Sps# this and recompiling /usr/src/sys/boot will cause it to retrieve the kernel
17668310Sps# via TFTP.  This allows pxeboot to load a custom BOOTP diskless kernel yet
17768310Sps# still mount the server's '/' (i.e. rather then load the server's kernel).
17818927Spst#
17968310Sps#LOADER_TFTP_SUPPORT= YES
18068310Sps#
1814224Sphk# By default, this points to /usr/X11R6 for XFree86 releases 3.0 or earlier.
18215334Sasami# If you have a XFree86 from before 3.0 that has the X distribution in
18315334Sasami# /usr/X386, you want to uncomment this.
1843023Srgrimes#
1854224Sphk#X11BASE=	/usr/X386
1863023Srgrimes#
1873023Srgrimes#
18815212Sasami# If you have Motif on your system, uncomment this.
18915212Sasami#
19015212Sasami#HAVE_MOTIF=	yes
19135221Sache#MOTIF_STATIC=  yes
19215212Sasami#
19315334Sasami# If the default location of the Motif library (specified below) is NOT
19415334Sasami# appropriate for you, uncomment this and change it to the correct value.
19515334Sasami# If your motif is in ${X11BASE}/lib, you don't need to touch this line.
19615212Sasami#
19715334Sasami#MOTIFLIB=	-L${X11BASE}/lib -lXm
19815212Sasami#
19915212Sasami#
20029949Sjkh# If you're resident in the USA, this will help various ports to determine
20129949Sjkh# whether or not they should attempt to comply with the various U.S.
20229949Sjkh# export regulations on certain types of software which do not apply to
20329949Sjkh# anyone else in the world.
20422638Sjkh#
20529949Sjkh#USA_RESIDENT=		YES
20629949Sjkh#
20729949Sjkh#
20868481Sjkh# Override "don't install a port that's already installed" behavior.
20968481Sjkh# One might wish to do this for ports debugging or to unconditionally
21068481Sjkh# reinstall a set of suspect/broken ports.
21168481Sjkh#
21235222Sache#FORCE_PKG_REGISTER=    YES
21335222Sache#
21435222Sache#
21568481Sjkh# If you're behind a firewall and need FTP or HTTP proxy services for
21668481Sjkh# ports collection fetching to work, the following examples give the
21769820Sdes# necessary syntax.  See the fetch(3) man page for details.
21868481Sjkh#
21968481Sjkh#FTP_PROXY=      10.0.0.1:21
22068481Sjkh#HTTP_PROXY=     10.0.0.1:80
22168481Sjkh#
22268481Sjkh#
22336263Sjkh# Port master sites.
22424951Sasami#
22524951Sasami# If you want your port fetches to go somewhere else than the default
22624951Sasami# (specified below) in case the distfile/patchfile was not found,
22724951Sasami# uncomment this and change it to a location nearest you.  (Don't
22824951Sasami# remove the "/${DIST_SUBDIR}/" part.)
22924951Sasami#
23024951Sasami#MASTER_SITE_BACKUP?=	\
23142876Sasami#	ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
23224951Sasami#
23324951Sasami# If you want your port fetches to check the above site first (before
23424951Sasami# the MASTER_SITES specified in the port Makefiles), uncomment the
23524951Sasami# line below.  You can also change the right side to point to wherever 
23624951Sasami# you want.
23724951Sasami#
23824951Sasami#MASTER_SITE_OVERRIDE?=	${MASTER_SITE_BACKUP}
23924951Sasami#
24024951Sasami# Some ports use a special variable to point to a collection of
24124951Sasami# mirrors of well-known software archives.  If you have a mirror close
24224951Sasami# to you, uncomment any of the following lines and change it to that
24333880Sfenner# address.  (Don't remove the "/%SUBDIR%/" part.)
24424951Sasami#
24524951Sasami# Note: the right hand sides of the following lines are only for your
24624951Sasami# information.  For a full list of default sites, take a look at
24767431Sknu# bsd.sites.mk.
24824951Sasami#
24933880Sfenner#MASTER_SITE_XCONTRIB=	ftp://ftp.x.org/contrib/%SUBDIR%/
25067431Sknu#MASTER_SITE_XFREE=	ftp://ftp.freesoftware.com/pub/XFree86/%SUBDIR%/source/
25168164Srse#MASTER_SITE_GNU=	ftp://ftp.gnu.org/gnu/%SUBDIR%/
25233880Sfenner#MASTER_SITE_PERL_CPAN=	ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/by-module/%SUBDIR%/
25333880Sfenner#MASTER_SITE_TEX_CTAN=	ftp://ftp.tex.ac.uk/tex-archive/%SUBDIR%/
25447726Sbillf#MASTER_SITE_SUNSITE=	ftp://metalab.unc.edu/pub/Linux/%SUBDIR%/
25567431Sknu#MASTER_SITE_RINGSERVER=	ftp://ring.ocn.ad.jp/pub/%SUBDIR%/
25642876Sasami#MASTER_SITE_KDE=	ftp://ftp.kde.org/pub/kde/%SUBDIR%/
25742876Sasami#MASTER_SITE_COMP_SOURCES=	ftp://gatekeeper.dec.com/pub/usenet/comp.sources.%SUBDIR%/
25842876Sasami#MASTER_SITE_GNOME=	ftp://ftp.gnome.org/pub/GNOME/sources/%SUBDIR%/
25944748Sbillf#MASTER_SITE_AFTERSTEP=	ftp://ftp.afterstep.org/%SUBDIR%/
26044748Sbillf#MASTER_SITE_WINDOWMAKER=	ftp://ftp.windowmaker.org/pub/%SUBDIR%/
26167491Sknu#MASTER_SITE_MOZILLA=	ftp://ftp.yggdrasil.com/mirrors/site/ftp.mozilla.org/pub/%SUBDIR%/
26267491Sknu#MASTER_SITE_XEMACS=	ftp://ftp.sunsite.utk.edu/pub/xemacs/%SUBDIR%/
26367431Sknu#MASTER_SITE_TCLTK=	ftp://ftp.uu.net/languages/tcl/%SUBDIR%/
26467431Sknu#MASTER_SITE_RUBY=	ftp://ftp.fu-berlin.de/unix/languages/ruby/%SUBDIR%/
26524951Sasami#
26667431Sknu# Also it is highly recommended that you configure MASTER_SORT_REGEX
26767431Sknu# to choose better mirror sites for you.  List awk(1)-style regular
26867431Sknu# expressions separated by space so MASTER_SITES will be sorted in
26967431Sknu# that order.  The following example is for Japanese users; change
27067431Sknu# "jp" part to your ccTLD ("de", "ru", "uk", etc.) or the domain names
27167431Sknu# of your nearest/upstream networks to meet your needs.
27224951Sasami#
27367431Sknu#MASTER_SORT_REGEX?=	^file: ^ftp://ftp\.FreeBSD\.org/pub/FreeBSD/ports/local-distfiles/ ://[^/]*\.jp/ ://[^/]*\.jp\.
27467431Sknu#
2753241Scsgr# Kerberos IV
27629931Smarkm# If you want KerberosIV (KTH eBones), define this:
2773241Scsgr#
27829931Smarkm#MAKE_KERBEROS4=	yes
27910758Sache#
28010758Sache#
28156553Smarkm# Kerberos 5
28256553Smarkm# If you want KerberosIV (KTH Heimdal), define this:
28356553Smarkm# ** WARNING **
28456553Smarkm# ** WARNING ** This is very experimental at this stage. If you
28556553Smarkm# ** WARNING ** need stable Kerberos5, rather use the port(s).
28656553Smarkm# ** WARNING **
28756553Smarkm#
28856553Smarkm#MAKE_KERBEROS5=	yes
28956553Smarkm#
29056553Smarkm#
29138003Sdima# Kerberos5
29256553Smarkm# If you want to install MIT Kerberos5 port somewhere other than /usr/local,
29356553Smarkm# define this (this is also used to tell ssh1 that kerberos is needed):
29438003Sdima#
29556553Smarkm#KRB5_HOME=		/usr/local
29638003Sdima#
29738003Sdima#
29837162Sjkh# CVSup update flags.  Edit SUPFILE settings to reflect whichever distribution
29937162Sjkh# file(s) you use on your site (see /usr/share/examples/cvsup/README for more
30037162Sjkh# information on CVSup and these files).  To use, do "make update" in /usr/src.
30110758Sache#
30210758Sache#SUP_UPDATE=     yes
30318716Sache#
30420545Sache#SUP=            /usr/local/bin/cvsup
30549777Ssheldonh#SUPFLAGS=       -g -L 2
30664605Sjoe#SUPHOST=        cvsup.uk.FreeBSD.org
30718716Sache#SUPFILE=        /usr/share/examples/cvsup/standard-supfile
30818716Sache#SUPFILE1=       /usr/share/examples/cvsup/secure-supfile
30947651Sbillf#PORTSSUPFILE=   /usr/share/examples/cvsup/ports-supfile
31054670Sbillf#DOCSUPFILE=     /usr/share/examples/cvsup/doc-supfile
31124225Sjoerg#
31224225Sjoerg# top(1) uses a hash table for the user names.  The size of this hash
31324225Sjoerg# can be tuned to match the number of local users.  The table size should
31424225Sjoerg# be a prime number approximately twice as large as the number of lines in
31524225Sjoerg# /etc/passwd.  The default number is 20011.
31624225Sjoerg#
31724225Sjoerg#TOP_TABLE_SIZE= 101
31858449Snik#
31958449Snik# Documentation
32058449Snik#
32158449Snik# The list of languages and encodings to build and install
32258449Snik#
32358449Snik#DOC_LANG=	en_US.ISO_8859-1 ru_RU.KOI8-R
32465970Sgshapiro#
32565970Sgshapiro#
32665970Sgshapiro# sendmail
32772846Sgshapiro#
32872846Sgshapiro# The following sets the default m4 configuration file to use at
32972846Sgshapiro# install time.  Use with caution as a make install will overwrite
33072846Sgshapiro# any existing /etc/mail/sendmail.cf.  Note that SENDMAIL_CF is now
33172846Sgshapiro# deprecated.
33272846Sgshapiro#
33372846Sgshapiro#SENDMAIL_MC=freebsd.mc
33472846Sgshapiro#
33565970Sgshapiro# Setting the following variables modifes the build environment for
33665970Sgshapiro# sendmail and its related utilities. For example, SASL support can be
33765970Sgshapiro# added with settings such as:
33865970Sgshapiro#
33965970Sgshapiro#	SENDMAIL_CFLAGS=-I/usr/local/include -DSASL
34065970Sgshapiro#	SENDMAIL_LDFLAGS=-L/usr/local/lib
34165970Sgshapiro#	SENDMAIL_LDADD=-lsasl
34265970Sgshapiro#
34369380Sgshapiro# Note: If you are using Cyrus SASL with other applications which require
34469380Sgshapiro#	access to the sasldb file, you should add '-D_FFR_UNSAFE_SASL' to
34569380Sgshapiro#	SENDMAIL_CFLAGS.  Also, add the following to your sendmail.mc file:
34669380Sgshapiro#
34769380Sgshapiro#	define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLFile')
34869380Sgshapiro#
34965970Sgshapiro#SENDMAIL_CFLAGS=
35065970Sgshapiro#SENDMAIL_LDFLAGS=
35165970Sgshapiro#SENDMAIL_LDADD=
35265970Sgshapiro#SENDMAIL_DPADD=
353