make.conf revision 78035
1193323Sed# $FreeBSD: head/share/examples/etc/make.conf 78035 2001-06-11 01:26:52Z ache $
2193323Sed#
3193323Sed# NOTE:  Please would any committer updating this file also update the
4193323Sed# make.conf(5) manual page, if necessary, which is located in
5193323Sed# src/share/man/man5/make.conf.5.
6193323Sed#
7193323Sed# This file, if present, will be read by make (see /usr/share/mk/sys.mk).
8193323Sed# It allows you to override macro definitions to make without changing
9193323Sed# your source tree, or anything the source tree installs.
10193323Sed#
11193323Sed# This file must be in valid Makefile syntax.
12193323Sed#
13193323Sed# You have to find the things you can put here in the Makefiles and 
14193323Sed# documentation of the source tree.
15193323Sed#
16193323Sed#
17193323Sed# The CPUTYPE variable controls which processor should be targetted for
18193323Sed# generated code.  This controls processor-specific optimizations in
19193323Sed# certain code (currently only OpenSSL) as well as modifying the value
20193323Sed# of CFLAGS to contain the appropriate optimization directive to gcc.
21198090Srdivacky# The automatic setting of CFLAGS may be overridden using the
22193323Sed# NO_CPU_CFLAGS variable below.
23193323Sed# Currently the following CPU types are recognised:
24193323Sed#   Intel x86 architecture:
25193323Sed#       (AMD CPUs)	k7 k6-2 k6 k5
26193323Sed#       (Intel CPUs)	p4 p3 p2 i686 i586/mmx i586 i486 i386
27193323Sed#   Alpha/AXP architecture: ev6 pca56 ev56 ev5 ev45 ev4
28193323Sed#   Intel ia64 architecture: itanium
29193323Sed#
30193323Sed#CPUTYPE=i686
31193323Sed#NO_CPU_CFLAGS=	true	# Don't add -march=<cpu> to CFLAGS automatically
32193323Sed#NO_CPU_COPTFLAGS=true	# Don't add -march=<cpu> to COPTFLAGS automatically
33193323Sed#
34193323Sed# CFLAGS controls the compiler settings used when compiling C code.
35193323Sed# Note that optimization settings above -O (-O2, ...) are not recommended
36193323Sed# or supported for compiling the world or the kernel - please revert any
37193323Sed# nonstandard optimization settings to "-O" before submitting bug reports
38193323Sed# to the developers.
39193323Sed# Note also that at this time the -O2 setting is known to produce BROKEN
40193323Sed# CODE on the Alpha platform.
41193323Sed#
42193323Sed#CFLAGS= -O -pipe
43193323Sed#
44193323Sed# CXXFLAGS controls the compiler settings used when compiling C++ code.
45193323Sed# Note that CXXFLAGS is initially set to the value of CFLAGS.  If you wish
46193323Sed# to add to CXXFLAGS value, "+=" must be used rather than "=".  Using "="
47193323Sed# alone will remove the often needed contents of CFLAGS from CXXFLAGS.
48193323Sed#
49193323Sed#CXXFLAGS+= -fmemoize-lookups -fsave-memoized
50193323Sed#
51193323Sed# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested
52193323Sed# for use in developing FreeBSD and testing changes.  They can be used by
53193323Sed# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf.
54195340Sed#
55193323SedBDECFLAGS=	-W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
56193323Sed		-Wcast-qual -Wchar-subscripts -Wconversion -Winline \
57193323Sed		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
58193323Sed		-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
59193323Sed#
60193323Sed# To compile just the kernel with special optimizations, you should use
61193323Sed# this instead of CFLAGS (which is not applicable to kernel builds anyway).
62193323Sed# There is very little to gain by using higher optimization levels, and doing
63193323Sed# so can cause problems.
64193323Sed#
65193323Sed#COPTFLAGS= -O -pipe
66193323Sed#
67193323Sed# Compare before install
68193323Sed#INSTALL=install -C
69193323Sed#
70193323Sed# Mtree will follow symlinks
71193323Sed#MTREE_FOLLOWS_SYMLINKS= -L
72193323Sed#
73193323Sed# To enable installing suidperl with the setuid bit turned on
74193323Sed#ENABLE_SUIDPERL=	true
75193323Sed#
76193323Sed# To build ppp with normal permissions
77193323Sed#PPP_NOSUID=	true
78193323Sed#
79193323Sed# To enable installing ssh(1) with the setuid bit turned on
80193323Sed#ENABLE_SUID_SSH=	true
81193323Sed#
82193323Sed# To avoid building various parts of the base system:
83193323Sed#NO_CVS=	true	# do not build CVS
84193323Sed#NO_BIND=	true	# do not build BIND
85193323Sed#NO_FORTRAN=	true	# do not build g77 and related libraries
86193323Sed#NO_I4B=	true	# do not build isdn4bsd package
87193323Sed#NO_LPR=	true	# do not build lpr and related programs
88193323Sed#NO_MAILWRAPPER=true	# do not build the mailwrapper(8) MTA selector
89193323Sed#NO_MODULES=	true	# do not build modules with the kernel
90193323Sed#NO_OBJC=	true	# do not build Objective C support
91193323Sed#NO_OPENSSH=	true	# do not build OpenSSH
92193323Sed#NO_OPENSSL=	true	# do not build OpenSSL (implies NO_OPENSSH)
93193323Sed#NO_SENDMAIL=	true	# do not build sendmail and related programs
94193323Sed#NO_SHAREDOCS=	true	# do not build the 4.4BSD legacy docs
95193323Sed#NO_TCSH=	true	# do not build and install /bin/csh (which is tcsh)
96193323Sed#NO_X=		true	# do not compile in XWindows support (e.g. doscmd)
97193323Sed#NOCRYPT=	true	# do not build any crypto code
98193323Sed#NOGAMES=	true	# do not build games (games/ subdir)
99193323Sed#NOINFO=	true	# do not make or install info files
100193323Sed#NOLIBC_R=	true	# do not build libc_r (re-entrant version of libc)
101193323Sed#NOPERL=	true	# do not build perl. Disables OpenSSL optimizations
102193323Sed#NOPROFILE=	true	# Avoid compiling profiled libraries
103193323Sed#NOSECURE=	true	# do not build crypto code in secure/ subdir
104193323Sed#NOSHARE=	true	# do not go into the share subdir
105193323Sed#NOUUCP=	true	# do not build uucp related programs
106193323Sed#
107193323Sed# To build the OpenSSL manpages, uncomment the following.  These are not
108193323Sed# built by default because they clobber a number of system manpages with
109193323Sed# manpages describing parts of the OpenSSL toolkit, including passwd(1),
110193323Sed# err(3), md5(3), and others.
111193323Sed#
112193323Sed#WANT_OPENSSL_MANPAGES=	true
113193323Sed#
114193323Sed# To build sys/modules when building the world (our old way of doing things)
115193323Sed#MODULES_WITH_WORLD=true	# do not build modules when building kernel
116193323Sed#
117193323Sed#
118193323Sed# The following controls building optional IDEA code in libcrypto and
119193323Sed# certain ports.  Patents are involved - you must not use this unless
120193323Sed# you either have a license or fall within patent 'fair use'
121193323Sed# provisions.
122193323Sed#
123193323Sed# *** It is YOUR RESPONSIBILITY to determine if you can use this! ***
124193323Sed#
125193323Sed# IDEA is patented in the USA and many european countries - thought to
126193323Sed# be OK to use for any non-commercial use.  This is optional.
127193323Sed#MAKE_IDEA=	YES	# IDEA (128 bit symmetric encryption)
128193323Sed#
129193323Sed# To avoid running MAKEDEV all on /dev during install set NO_MAKEDEV_RUN.
130193323Sed# If you don't want to install MAKEDEV set NO_MAKEDEV_INSTALL, this implies
131193323Sed# NO_MAKEDEV_RUN.
132193323Sed#NO_MAKEDEV_INSTALL=	true
133193323Sed#NO_MAKEDEV_RUN=	true
134193323Sed#
135193323Sed# If you do not want unformatted manual pages to be compressed
136193323Sed# when they are installed:
137193323Sed#
138193323Sed#NOMANCOMPRESS=	true
139193323Sed#
140193323Sed#
141193323Sed# If you want the "compat" shared libraries installed as part of your normal
142193323Sed# builds, uncomment these:
143193323Sed#
144193323Sed#COMPAT1X=	yes
145193323Sed#COMPAT20=	yes
146193323Sed#COMPAT21=	yes
147193323Sed#COMPAT22=	yes
148193323Sed#COMPAT3X=	yes
149193323Sed#COMPAT4X=	yes
150193323Sed#
151193323Sed#
152193323Sed# If you do not want additional documentation (some of which are
153193323Sed# a few hundred KB's) for ports to be installed:
154193323Sed#
155193323Sed#NOPORTDOCS=	true
156193323Sed#
157193323Sed#
158193323Sed# Default format for system documentation, depends on your printer.
159193323Sed# Set this to "ascii" for simple printers or screen
160193323Sed#
161193323Sed#PRINTERDEVICE=	ps
162193323Sed#
163193323Sed#
164193323Sed# How long to wait for a console keypress before booting the default kernel.
165193323Sed# This value is approximately in milliseconds. Keypresses are accepted by the
166193323Sed# BIOS before booting from disk, making it possible to give custom boot
167193323Sed# parameters even when this is set to 0.
168193323Sed#
169193323Sed#BOOTWAIT=0
170193323Sed#BOOTWAIT=30000
171193323Sed#
172193323Sed# By default, the system will always use the keyboard/video card as system
173193323Sed# console.  However, the boot blocks may be dynamically configured to use a
174193323Sed# serial port in addition to or instead of the keyboard/video console.
175193323Sed#
176193323Sed# By default we use COM1 as our serial console port *if* we're going to use
177193323Sed# a serial port as our console at all.  Alter as necessary.
178193323Sed#
179193323Sed#   COM1: = 0x3F8, COM2: = 0x2F8, COM3: = 0x3E8, COM4: = 0x2E8
180193323Sed#
181193323Sed#BOOT_COMCONSOLE_PORT=	0x3F8
182193323Sed#
183193323Sed# The default serial console speed is 9600.  Set the speed to a larger value
184193323Sed# for better interactive response.
185193323Sed#
186193323Sed#BOOT_COMCONSOLE_SPEED=	115200
187193323Sed#
188193323Sed# By default the 'pxeboot' loader retrieves the kernel via NFS.  Defining
189193323Sed# this and recompiling /usr/src/sys/boot will cause it to retrieve the kernel
190193323Sed# via TFTP.  This allows pxeboot to load a custom BOOTP diskless kernel yet
191193323Sed# still mount the server's '/' (i.e. rather then load the server's kernel).
192193323Sed#
193193323Sed#LOADER_TFTP_SUPPORT= YES
194193323Sed#
195193323Sed# By default, the ports collection attempts to use XFree86 3.3.X.  If
196193323Sed# you are running XFree86 4.X, uncomment this line.
197193323Sed#
198193323Sed#XFREE86_VERSION=	4
199193323Sed#
200193323Sed# By default, this points to /usr/X11R6 for XFree86 releases 3.0 or earlier.
201193323Sed# If you have a XFree86 from before 3.0 that has the X distribution in
202193323Sed# /usr/X386, you want to uncomment this.
203193323Sed#
204193323Sed#X11BASE=	/usr/X386
205193323Sed#
206193323Sed#
207193323Sed# If you have Motif on your system, uncomment this.
208193323Sed#
209193323Sed#HAVE_MOTIF=	yes
210193323Sed#MOTIF_STATIC=  yes
211193323Sed#
212193323Sed# If the default location of the Motif library (specified below) is NOT
213193323Sed# appropriate for you, uncomment this and change it to the correct value.
214193323Sed# If your motif is in ${X11BASE}/lib, you don't need to touch this line.
215193323Sed#
216193323Sed#MOTIFLIB=	-L${X11BASE}/lib -lXm
217193323Sed#
218193323Sed#
219193323Sed# If you're resident in the USA, this will help various ports to determine
220193323Sed# whether or not they should attempt to comply with the various U.S.
221193323Sed# export regulations on certain types of software which do not apply to
222193323Sed# anyone else in the world.
223193323Sed#
224193323Sed#USA_RESIDENT=		YES
225193323Sed#
226193323Sed#
227193323Sed# Override "don't install a port that's already installed" behavior.
228193323Sed# One might wish to do this for ports debugging or to unconditionally
229193323Sed# reinstall a set of suspect/broken ports.
230198090Srdivacky#
231193323Sed#FORCE_PKG_REGISTER=    YES
232193323Sed#
233193323Sed#
234193323Sed# If you're behind a firewall and need FTP or HTTP proxy services for
235193323Sed# ports collection fetching to work, the following examples give the
236193323Sed# necessary syntax.  See the fetch(3) man page for details.
237193323Sed#
238193323Sed#FTP_PROXY=      10.0.0.1:21
239193323Sed#HTTP_PROXY=     10.0.0.1:80
240193323Sed#
241193323Sed#
242193323Sed# Port master sites.
243193323Sed#
244193323Sed# If you want your port fetches to go somewhere else than the default
245193323Sed# (specified below) in case the distfile/patchfile was not found,
246193323Sed# uncomment this and change it to a location nearest you.  (Don't
247193323Sed# remove the "/${DIST_SUBDIR}/" part.)
248193323Sed#
249193323Sed#MASTER_SITE_BACKUP?=	\
250193323Sed#	ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
251193323Sed#
252193323Sed# If you want your port fetches to check the above site first (before
253193323Sed# the MASTER_SITES specified in the port Makefiles), uncomment the
254193323Sed# line below.  You can also change the right side to point to wherever 
255193323Sed# you want.
256193323Sed#
257193323Sed#MASTER_SITE_OVERRIDE?=	${MASTER_SITE_BACKUP}
258193323Sed#
259193323Sed# Some ports use a special variable to point to a collection of
260193323Sed# mirrors of well-known software archives.  If you have a mirror close
261193323Sed# to you, uncomment any of the following lines and change it to that
262193323Sed# address.  (Don't remove the "/%SUBDIR%/" part.)
263193323Sed#
264193323Sed# Note: the right hand sides of the following lines are only for your
265193323Sed# information.  For a full list of default sites, take a look at
266193323Sed# bsd.sites.mk.
267193323Sed#
268193323Sed#MASTER_SITE_AFTERSTEP=	ftp://ftp.afterstep.org/%SUBDIR%/
269193323Sed#MASTER_SITE_COMP_SOURCES=	ftp://gatekeeper.dec.com/pub/usenet/comp.sources.%SUBDIR%/
270193323Sed#MASTER_SITE_GNOME=	ftp://ftp.gnome.org/pub/GNOME/sources/%SUBDIR%/
271193323Sed#MASTER_SITE_GNU=	ftp://ftp.gnu.org/gnu/%SUBDIR%/
272193323Sed#MASTER_SITE_KDE=	ftp://ftp.kde.org/pub/kde/%SUBDIR%/
273193323Sed#MASTER_SITE_LOCAL=	ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/
274193323Sed#MASTER_SITE_MOZILLA=	ftp://ftp.mozilla.org/pub/%SUBDIR%/
275193323Sed#MASTER_SITE_NETBSD=	ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/%SUBDIR%/
276193323Sed#MASTER_SITE_PERL_CPAN=	ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/by-module/%SUBDIR%/
277193323Sed#MASTER_SITE_PORTS_JP=	ftp://ports.jp.FreeBSD.org/pub/FreeBSD-jp/ports-jp/LOCAL_PORTS/%SUBDIR%/
278193323Sed#MASTER_SITE_RINGSERVER=	ftp://ftp.dnsbalance.ring.gr.jp/pub/%SUBDIR%/
279193323Sed#MASTER_SITE_RUBY=	ftp://ftp.netlab.co.jp/pub/lang/ruby/%SUBDIR%/
280193323Sed#MASTER_SITE_SOURCEFORGE=	ftp://ftp2.sourceforge.net/pub/sourceforge/%SUBDIR%/
281193323Sed#MASTER_SITE_SOURCEWARE=	ftp://ftp.freesoftware.com/pub/sourceware/%SUBDIR%/
282193323Sed#MASTER_SITE_SUNSITE=	ftp://metalab.unc.edu/pub/Linux/%SUBDIR%/
283193323Sed#MASTER_SITE_TCLTK=	ftp://ftp.scriptics.com/pub/tcl/%SUBDIR%/
284193323Sed#MASTER_SITE_TEX_CTAN=	ftp://ftp.tex.ac.uk/tex-archive/%SUBDIR%/
285193323Sed#MASTER_SITE_THEMES=	ftp://ftp.themes.org/pub/themes/%SUBDIR%/
286193323Sed#MASTER_SITE_WINDOWMAKER=	ftp://ftp.windowmaker.org/pub/%SUBDIR%/
287193323Sed#MASTER_SITE_XCONTRIB=	ftp://ftp.x.org/contrib/%SUBDIR%/
288193323Sed#MASTER_SITE_XEMACS=	ftp://ftp.xemacs.org/pub/xemacs/%SUBDIR%/
289193323Sed#MASTER_SITE_XFREE=	ftp://ftp.xfree86.org/pub/XFree86/%SUBDIR%/source/
290193323Sed#
291193323Sed# Also it is highly recommended that you configure MASTER_SORT_REGEX
292193323Sed# to choose better mirror sites for you.  List awk(1)-style regular
293193323Sed# expressions separated by space so MASTER_SITES will be sorted in
294193323Sed# that order.  The following example is for Japanese users; change
295193323Sed# "jp" part to your ccTLD ("de", "ru", "uk", etc.) or the domain names
296193323Sed# of your nearest/upstream networks to meet your needs.
297193323Sed#
298193323Sed#MASTER_SORT_REGEX?=	^file: ^ftp://ftp\.FreeBSD\.org/pub/FreeBSD/ports/local-distfiles/ ://[^/]*\.jp/ ://[^/]*\.jp\.
299193323Sed#
300193323Sed# Kerberos IV
301193323Sed# If you want KerberosIV (KTH eBones), define this:
302193323Sed#
303193323Sed#MAKE_KERBEROS4=	yes
304193323Sed#
305193323Sed#
306193323Sed# Kerberos 5
307193323Sed# If you want Kerberos 5 (KTH Heimdal), define this:
308193323Sed#
309193323Sed#MAKE_KERBEROS5=	yes
310193323Sed#
311193323Sed#
312193323Sed# Kerberos5
313193323Sed# If you want to install MIT Kerberos5 port somewhere other than /usr/local,
314193323Sed# define this (this is also used to tell ssh1 that kerberos is needed):
315193323Sed#
316193323Sed#KRB5_HOME=		/usr/local
317193323Sed#
318193323Sed#
319193323Sed# CVSup update flags.  Edit SUPFILE settings to reflect whichever distribution
320193323Sed# file(s) you use on your site (see /usr/share/examples/cvsup/README for more
321193323Sed# information on CVSup and these files).  To use, do "make update" in /usr/src.
322193323Sed#
323193323Sed#SUP_UPDATE=     yes
324193323Sed#
325193323Sed#SUP=            /usr/local/bin/cvsup
326193323Sed#SUPFLAGS=       -g -L 2
327193323Sed#SUPHOST=        cvsup.uk.FreeBSD.org
328193323Sed#SUPFILE=        /usr/share/examples/cvsup/standard-supfile
329193323Sed#PORTSSUPFILE=   /usr/share/examples/cvsup/ports-supfile
330193323Sed#DOCSUPFILE=     /usr/share/examples/cvsup/doc-supfile
331193323Sed#
332193323Sed# top(1) uses a hash table for the user names.  The size of this hash
333193323Sed# can be tuned to match the number of local users.  The table size should
334193323Sed# be a prime number approximately twice as large as the number of lines in
335193323Sed# /etc/passwd.  The default number is 20011.
336193323Sed#
337193323Sed#TOP_TABLE_SIZE= 101
338193323Sed#
339193323Sed# Documentation
340193323Sed#
341193323Sed# The list of languages and encodings to build and install
342193323Sed#
343193323Sed#DOC_LANG=	en_US.ISO8859-1 ru_RU.KOI8-R
344193323Sed#
345193323Sed#
346193323Sed# sendmail
347193323Sed#
348193323Sed# The following sets the default m4 configuration file to use at
349193323Sed# install time.  Use with caution as a make install will overwrite
350193323Sed# any existing /etc/mail/sendmail.cf.  Note that SENDMAIL_CF is now
351193323Sed# deprecated.  The value should be a fully qualified path name.
352193323Sed#
353193323Sed#SENDMAIL_MC=/etc/mail/myconfig.mc
354193323Sed#
355193323Sed# If you need to build additional .cf files during a make buildworld,
356193323Sed# include the full paths to the .mc files in SENDMAIL_ADDITIONAL_MC.
357193323Sed#
358193323Sed#SENDMAIL_ADDITIONAL_MC=/etc/mail/foo.mc /etc/mail/bar.mc
359193323Sed#
360193323Sed# Setting the following variables modifes the build environment for
361193323Sed# sendmail and its related utilities. For example, SASL support can be
362193323Sed# added with settings such as:
363193323Sed#
364193323Sed#	SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL
365193323Sed#	SENDMAIL_LDFLAGS=-L/usr/local/lib
366193323Sed#	SENDMAIL_LDADD=-lsasl
367193323Sed#
368193323Sed# Note: If you are using Cyrus SASL with other applications which require
369193323Sed#	access to the sasldb file, you should add '-D_FFR_UNSAFE_SASL' to
370193323Sed#	SENDMAIL_CFLAGS.  Also, add the following to your sendmail.mc file:
371193323Sed#
372193323Sed#	define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLFile')
373193323Sed#
374193323Sed#SENDMAIL_CFLAGS=
375193323Sed#SENDMAIL_LDFLAGS=
376193323Sed#SENDMAIL_LDADD=
377193323Sed#SENDMAIL_DPADD=
378193323Sed