make.conf revision 65884
150472Speter# $FreeBSD: head/share/examples/etc/make.conf 65884 2000-09-15 08:07:05Z ache $
21664Sphk#
33023Srgrimes# This file, if present, will be read by make (see /usr/share/mk/sys.mk).
43023Srgrimes# It allows you to override macro definitions to make without changing
53023Srgrimes# your source tree, or anything the source tree installs.
61664Sphk#
73023Srgrimes# This file must be in valid Makefile syntax.
83023Srgrimes#
91664Sphk# You have to find the things you can put here in the Makefiles and 
101664Sphk# documentation of the source tree.
111664Sphk#
1258648Skris# CFLAGS controls the compiler settings used when compiling C code.
1358648Skris# Note that optimisation settings above -O (-O2, ...) are not recommended
1458648Skris# or supported for compiling the world or the kernel - please revert any
1558648Skris# nonstandard optimisation settings to "-O" before submitting bug reports
1658648Skris# to the developers.
1758648Skris# Note also that at this time the -O2 setting is known to produce BROKEN
1858648Skris# CODE on the Alpha platform.
191664Sphk#
2029281Sjkh#CFLAGS= -O -pipe
211664Sphk#
2259006Sobrien# CXXFLAGS controls the compiler settings used when compiling C++ code.
2359006Sobrien# Note that CXXFLAGS is initially set to the value of CFLAGS.  If you wish
2459006Sobrien# to add to CXXFLAGS value, "+=" must be used rather than "=".  Using "="
2559006Sobrien# alone will remove the often needed contents of CFLAGS from CXXFLAGS.
261664Sphk#
2759006Sobrien#CXXFLAGS+= -fmemoize-lookups -fsave-memoized
2859006Sobrien#
2962136Sobrien# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested
3062136Sobrien# for use in developing FreeBSD and testing changes.  They can be used by
3162136Sobrien# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf.
3262136Sobrien#
3362136SobrienBDECFLAGS=	-W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
3462136Sobrien		-Wcast-qual -Wchar-subscripts -Wconversion -Winline \
3562136Sobrien		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
3662136Sobrien		-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
3762136Sobrien#
3865380Sobrien# To compile just the kernel with special optimisations, you should use
3965380Sobrien# this instead of CFLAGS (which is not applicable to kernel builds anyway):
4065380Sobrien#
4165380Sobrien#COPTFLAGS= -O -pipe
4265380Sobrien#
4342325Sobrien# Compare before install
4435222Sache#INSTALL=install -C
4535222Sache#
4665884Sache# Mtree will follow symlinks
4765884SacheMTREE_FOLLOWS_SYMLINKS= -L
4865884Sache#
4964576Simp# To enable building enstalling suidperl with the setuid bit turned on
5064576Simp#ENABLE_SUIDPERL=	true
5134651Sjkh#
5250883Smarkm# To build perl with thread support
5350883Smarkm#PERL_THREADED=	true
5450883Smarkm#
5564803Sbrian# To build ppp with normal permissions
5664803Sbrian#PPP_NOSUID=	true
5764803Sbrian#
5851299Speter# To avoid building various parts of the base system:
5957542Skris#NO_CVS=	true	# do not build CVS
6059124Sasmodai#NO_BIND=	true	# do not build BIND
6157542Skris#NO_FORTRAN=	true	# do not build g77 and related libraries
6261139Shoek#NO_LPR=	true	# do not build lpr and related programs
6358859Ssheldonh#NO_MAILWRAPPER=true	# do not build the mailwrapper(8) MTA selector
6459884Schuckr#NO_MODULES=	true	# do not build modules with the kernel
6557764Skris#NO_OBJC=	true	# do not build Objective C support
6657542Skris#NO_OPENSSH=	true	# do not build OpenSSH
6757542Skris#NO_OPENSSL=	true	# do not build OpenSSL (implies NO_OPENSSH)
6857542Skris#NO_SENDMAIL=	true	# do not build sendmail and related programs
6958418Sobrien#NO_SHAREDOCS=	true	# do not build the 4.4BSD legacy docs
7059338Sobrien#NO_TCSH=	true	# do not build and install /bin/csh (which is tcsh)
7158280Skris#NO_X=		true	# do not compile in XWindows support (e.g. doscmd)
7257553Skris#NOCRYPT=	true	# do not build any crypto code
7357603Skris#NODESCRYPTLINKS=true	# do not replace libcrypt -> libscrypt links
7457542Skris#NOGAMES=	true	# do not build games (games/ subdir)
7557542Skris#NOINFO=	true	# do not make or install info files
7657542Skris#NOLIBC_R=	true	# do not build libc_r (re-entrant version of libc)
7765381Sobrien#NOPERL=	true	# To avoid building perl
7865381Sobrien#NOPROFILE=	true	# Avoid compiling profiled libraries
7957553Skris#NOSECURE=	true	# do not build crypto code in secure/ subdir
8057542Skris#NOSHARE=	true	# do not go into the share subdir
8158390Sdan#NOUUCP=	true	# do not build uucp related programs
8235206Sphk#
8361744Sobrien# To build sys/modules when building the world (our old way of doing things)
8461744Sobrien#MODULES_WITH_WORLD=true	# do not build modules when building kernel
8561744Sobrien#
8657458Smarkm#
8762482Speter# Controls for building various OPTIONAL parts of the crypto system.
8862482Speter# Patents are involved - you must not use these unless you either have
8962482Speter# a license or would be within patent 'fair use' provisions.
9062482Speter# Generally 'educational use' is OK, but personal (even non-commercial)
9162482Speter# use is not.
9262482Speter# *** It is YOUR RESPONSIBILITY to determine if you can use these! ***
9362482Speter#
9462482Speter# Patented in the USA and many european countries - thought to be OK to
9562482Speter# use for any non-commercial use.  This is optional.
9663123Speter#MAKE_IDEA=	YES	# IDEA (128 bit symmetric encryption)
9762482Speter#
9857071Srwatson# To avoid running MAKEDEV all on /dev during install:
9957071Srwatson#NO_MAKEDEV=	true
10057071Srwatson#
1011684Scsgr# If you do not want unformatted manual pages to be compressed
1021684Scsgr# when they are installed:
1031684Scsgr#
1049509Srgrimes#NOMANCOMPRESS=	true
1051697Sache#
1061697Sache#
10720847Speter# If you want the "compat" shared libraries installed as part of your normal
10820847Speter# builds, uncomment these:
10920847Speter#
11020847Speter#COMPAT1X=	yes
11120847Speter#COMPAT20=	yes
11220847Speter#COMPAT21=	yes
11347318Sobrien#COMPAT22=	yes
11447430Sobrien#COMPAT3X=	yes
11520847Speter#
11620847Speter#
11714403Sasami# If you do not want additional documentation (some of which are
11814403Sasami# a few hundred KB's) for ports to be installed:
11914403Sasami#
12014403Sasami#NOPORTDOCS=	true
12114403Sasami#
12214403Sasami#
1231697Sache# Default format for system documentation, depends on your printer.
1241697Sache# Set this to "ascii" for simple printers or screen
1251697Sache#
12625424Sandreas#PRINTERDEVICE=	ps
1271733Sadam#
1281733Sadam#
12914102Sadam# How long to wait for a console keypress before booting the default kernel.
13014102Sadam# This value is approximately in milliseconds. Keypresses are accepted by the
13114102Sadam# BIOS before booting from disk, making it possible to give custom boot
13214102Sadam# parameters even when this is set to 0.
1331733Sadam#
1341740Sadam#BOOTWAIT=0
1353023Srgrimes#BOOTWAIT=30000
1361733Sadam#
13718927Spst# By default, the system will always use the keyboard/video card as system
13826522Sbde# console.  However, the boot blocks may be dynamically configured to use a
13926522Sbde# serial port in addition to or instead of the keyboard/video console.
1401733Sadam#
14118927Spst# By default we use COM1 as our serial console port *if* we're going to use
14249190Snik# a serial port as our console at all.  Alter as necessary.
14318927Spst#
14449190Snik#   COM1: = 0x3F8, COM2: = 0x2F8, COM3: = 0x3E8, COM4: = 0x2E8
14549190Snik#
14618928Spst#BOOT_COMCONSOLE_PORT=	0x3F8
14718927Spst#
14826522Sbde# The default serial console speed is 9600.  Set the speed to a larger value
14926522Sbde# for better interactive response.
15018927Spst#
15126522Sbde#BOOT_COMCONSOLE_SPEED=	115200
15218927Spst#
15318927Spst#
1544224Sphk# By default, this points to /usr/X11R6 for XFree86 releases 3.0 or earlier.
15515334Sasami# If you have a XFree86 from before 3.0 that has the X distribution in
15615334Sasami# /usr/X386, you want to uncomment this.
1573023Srgrimes#
1584224Sphk#X11BASE=	/usr/X386
1593023Srgrimes#
1603023Srgrimes#
16115212Sasami# If you have Motif on your system, uncomment this.
16215212Sasami#
16315212Sasami#HAVE_MOTIF=	yes
16435221Sache#MOTIF_STATIC=  yes
16515212Sasami#
16615334Sasami# If the default location of the Motif library (specified below) is NOT
16715334Sasami# appropriate for you, uncomment this and change it to the correct value.
16815334Sasami# If your motif is in ${X11BASE}/lib, you don't need to touch this line.
16915212Sasami#
17015334Sasami#MOTIFLIB=	-L${X11BASE}/lib -lXm
17115212Sasami#
17215212Sasami#
17329949Sjkh# If you're resident in the USA, this will help various ports to determine
17429949Sjkh# whether or not they should attempt to comply with the various U.S.
17529949Sjkh# export regulations on certain types of software which do not apply to
17629949Sjkh# anyone else in the world.
17722638Sjkh#
17829949Sjkh#USA_RESIDENT=		YES
17929949Sjkh#
18035222Sache# Next one will help ports developers to debug
18129949Sjkh#
18235222Sache#FORCE_PKG_REGISTER=    YES
18335222Sache#
18435222Sache#
18536263Sjkh# Port master sites.
18624951Sasami#
18724951Sasami# If you want your port fetches to go somewhere else than the default
18824951Sasami# (specified below) in case the distfile/patchfile was not found,
18924951Sasami# uncomment this and change it to a location nearest you.  (Don't
19024951Sasami# remove the "/${DIST_SUBDIR}/" part.)
19124951Sasami#
19224951Sasami#MASTER_SITE_BACKUP?=	\
19342876Sasami#	ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
19424951Sasami#
19524951Sasami# If you want your port fetches to check the above site first (before
19624951Sasami# the MASTER_SITES specified in the port Makefiles), uncomment the
19724951Sasami# line below.  You can also change the right side to point to wherever 
19824951Sasami# you want.
19924951Sasami#
20024951Sasami#MASTER_SITE_OVERRIDE?=	${MASTER_SITE_BACKUP}
20124951Sasami#
20224951Sasami# Some ports use a special variable to point to a collection of
20324951Sasami# mirrors of well-known software archives.  If you have a mirror close
20424951Sasami# to you, uncomment any of the following lines and change it to that
20533880Sfenner# address.  (Don't remove the "/%SUBDIR%/" part.)
20624951Sasami#
20724951Sasami# Note: the right hand sides of the following lines are only for your
20824951Sasami# information.  For a full list of default sites, take a look at
20924951Sasami# bsd.port.mk.
21024951Sasami#
21133880Sfenner#MASTER_SITE_XCONTRIB=	ftp://ftp.x.org/contrib/%SUBDIR%/
21233880Sfenner#MASTER_SITE_GNU=	ftp://prep.ai.mit.edu/pub/gnu/%SUBDIR%/
21333880Sfenner#MASTER_SITE_PERL_CPAN=	ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/by-module/%SUBDIR%/
21433880Sfenner#MASTER_SITE_TEX_CTAN=	ftp://ftp.tex.ac.uk/tex-archive/%SUBDIR%/
21547726Sbillf#MASTER_SITE_SUNSITE=	ftp://metalab.unc.edu/pub/Linux/%SUBDIR%/
21642876Sasami#MASTER_SITE_KDE=	ftp://ftp.kde.org/pub/kde/%SUBDIR%/
21742876Sasami#MASTER_SITE_COMP_SOURCES=	ftp://gatekeeper.dec.com/pub/usenet/comp.sources.%SUBDIR%/
21842876Sasami#MASTER_SITE_GNOME=	ftp://ftp.gnome.org/pub/GNOME/sources/%SUBDIR%/
21944748Sbillf#MASTER_SITE_AFTERSTEP=	ftp://ftp.afterstep.org/%SUBDIR%/
22044748Sbillf#MASTER_SITE_WINDOWMAKER=	ftp://ftp.windowmaker.org/pub/%SUBDIR%/
22124951Sasami#
22224951Sasami#
2233241Scsgr# Kerberos IV
22429931Smarkm# If you want KerberosIV (KTH eBones), define this:
2253241Scsgr#
22629931Smarkm#MAKE_KERBEROS4=	yes
22710758Sache#
22810758Sache#
22956553Smarkm# Kerberos 5
23056553Smarkm# If you want KerberosIV (KTH Heimdal), define this:
23156553Smarkm# ** WARNING **
23256553Smarkm# ** WARNING ** This is very experimental at this stage. If you
23356553Smarkm# ** WARNING ** need stable Kerberos5, rather use the port(s).
23456553Smarkm# ** WARNING **
23556553Smarkm#
23656553Smarkm#MAKE_KERBEROS5=	yes
23756553Smarkm#
23856553Smarkm#
23938003Sdima# Kerberos5
24056553Smarkm# If you want to install MIT Kerberos5 port somewhere other than /usr/local,
24156553Smarkm# define this (this is also used to tell ssh1 that kerberos is needed):
24238003Sdima#
24356553Smarkm#KRB5_HOME=		/usr/local
24438003Sdima#
24538003Sdima#
24637162Sjkh# CVSup update flags.  Edit SUPFILE settings to reflect whichever distribution
24737162Sjkh# file(s) you use on your site (see /usr/share/examples/cvsup/README for more
24837162Sjkh# information on CVSup and these files).  To use, do "make update" in /usr/src.
24910758Sache#
25010758Sache#SUP_UPDATE=     yes
25118716Sache#
25220545Sache#SUP=            /usr/local/bin/cvsup
25349777Ssheldonh#SUPFLAGS=       -g -L 2
25464605Sjoe#SUPHOST=        cvsup.uk.FreeBSD.org
25518716Sache#SUPFILE=        /usr/share/examples/cvsup/standard-supfile
25618716Sache#SUPFILE1=       /usr/share/examples/cvsup/secure-supfile
25747651Sbillf#PORTSSUPFILE=   /usr/share/examples/cvsup/ports-supfile
25854670Sbillf#DOCSUPFILE=     /usr/share/examples/cvsup/doc-supfile
25924225Sjoerg#
26024225Sjoerg# top(1) uses a hash table for the user names.  The size of this hash
26124225Sjoerg# can be tuned to match the number of local users.  The table size should
26224225Sjoerg# be a prime number approximately twice as large as the number of lines in
26324225Sjoerg# /etc/passwd.  The default number is 20011.
26424225Sjoerg#
26524225Sjoerg#TOP_TABLE_SIZE= 101
26658449Snik#
26758449Snik# Documentation
26858449Snik#
26958449Snik# The list of languages and encodings to build and install
27058449Snik#
27158449Snik#DOC_LANG=	en_US.ISO_8859-1 ru_RU.KOI8-R
272