make.conf revision 75982
1123475Swpaul# $FreeBSD: head/share/examples/etc/make.conf 75982 2001-04-25 19:27:39Z jim $ 2123475Swpaul# 3123475Swpaul# NOTE: Please would any committer updating this file also update the 4123475Swpaul# make.conf(5) manual page, if necessary, which is located in 5123475Swpaul# src/share/man/man5/make.conf.5. 6123475Swpaul# 7123475Swpaul# This file, if present, will be read by make (see /usr/share/mk/sys.mk). 8123475Swpaul# It allows you to override macro definitions to make without changing 9123475Swpaul# your source tree, or anything the source tree installs. 10123475Swpaul# 11123475Swpaul# This file must be in valid Makefile syntax. 12123475Swpaul# 13123475Swpaul# You have to find the things you can put here in the Makefiles and 14123475Swpaul# documentation of the source tree. 15123475Swpaul# 16123475Swpaul# 17123475Swpaul# The CPUTYPE variable controls which processor should be targetted for 18123475Swpaul# generated code. This controls processor-specific optimizations in 19123475Swpaul# certain code (currently only OpenSSL) as well as modifying the value 20123475Swpaul# of CFLAGS to contain the appropriate optimization directive to gcc. 21123475Swpaul# The automatic setting of CFLAGS may be overridden using the 22123475Swpaul# NO_CPU_CFLAGS variable below. 23123475Swpaul# Currently the following CPU types are recognised: 24123475Swpaul# Intel x86 architecture: 25123475Swpaul# (AMD CPUs) k7 k6-2 k6 k5 26123475Swpaul# (Intel CPUs) p4 p3 p2 i686 i586/mmx i586 i486 i386 27123475Swpaul# Alpha/AXP architecture: ev6 pca56 ev56 ev5 ev45 ev4 28123475Swpaul# Intel ia64 architecture: itanium 29123475Swpaul# 30123475Swpaul#CPUTYPE=i686 31123475Swpaul#NO_CPU_CFLAGS= true # Don't add -march=<cpu> to CFLAGS automatically 32123475Swpaul#NO_CPU_COPTFLAGS=true # Don't add -march=<cpu> to COPTFLAGS automatically 33123475Swpaul# 34123475Swpaul# CFLAGS controls the compiler settings used when compiling C code. 35123475Swpaul# Note that optimization settings above -O (-O2, ...) are not recommended 36123475Swpaul# or supported for compiling the world or the kernel - please revert any 37123475Swpaul# nonstandard optimization settings to "-O" before submitting bug reports 38124060Swpaul# to the developers. 39124060Swpaul# Note also that at this time the -O2 setting is known to produce BROKEN 40123475Swpaul# CODE on the Alpha platform. 41151703Swpaul# 42123475Swpaul#CFLAGS= -O -pipe 43123475Swpaul# 44123475Swpaul# CXXFLAGS controls the compiler settings used when compiling C++ code. 45123475Swpaul# Note that CXXFLAGS is initially set to the value of CFLAGS. If you wish 46132973Swpaul# to add to CXXFLAGS value, "+=" must be used rather than "=". Using "=" 47123475Swpaul# alone will remove the often needed contents of CFLAGS from CXXFLAGS. 48132973Swpaul# 49123475Swpaul#CXXFLAGS+= -fmemoize-lookups -fsave-memoized 50123475Swpaul# 51123475Swpaul# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested 52123475Swpaul# for use in developing FreeBSD and testing changes. They can be used by 53123475Swpaul# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf. 54123475Swpaul# 55123475SwpaulBDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \ 56123475Swpaul -Wcast-qual -Wchar-subscripts -Wconversion -Winline \ 57123475Swpaul -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ 58133026Swpaul -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings 59133026Swpaul# 60133026Swpaul# To compile just the kernel with special optimizations, you should use 61133026Swpaul# this instead of CFLAGS (which is not applicable to kernel builds anyway). 62133026Swpaul# There is very little to gain by using higher optimization levels, and doing 63133026Swpaul# so can cause problems. 64133026Swpaul# 65133026Swpaul#COPTFLAGS= -O -pipe 66133026Swpaul# 67133026Swpaul# Compare before install 68133026Swpaul#INSTALL=install -C 69133026Swpaul# 70123475Swpaul# Mtree will follow symlinks 71133026Swpaul#MTREE_FOLLOWS_SYMLINKS= -L 72133026Swpaul# 73133026Swpaul# To enable installing suidperl with the setuid bit turned on 74133026Swpaul#ENABLE_SUIDPERL= true 75133026Swpaul# 76133026Swpaul# To build perl with thread support 77133026Swpaul#PERL_THREADED= true 78133026Swpaul# 79133026Swpaul# To build ppp with normal permissions 80133026Swpaul#PPP_NOSUID= true 81133026Swpaul# 82133026Swpaul# To enable installing ssh(1) with the setuid bit turned on 83123475Swpaul#ENABLE_SUID_SSH= true 84123475Swpaul# 85133026Swpaul# To avoid building various parts of the base system: 86133026Swpaul#NO_CVS= true # do not build CVS 87133026Swpaul#NO_BIND= true # do not build BIND 88123475Swpaul#NO_FORTRAN= true # do not build g77 and related libraries 89123475Swpaul#NO_LPR= true # do not build lpr and related programs 90123475Swpaul#NO_MAILWRAPPER=true # do not build the mailwrapper(8) MTA selector 91123475Swpaul#NO_MODULES= true # do not build modules with the kernel 92151703Swpaul#NO_OBJC= true # do not build Objective C support 93123475Swpaul#NO_OPENSSH= true # do not build OpenSSH 94123475Swpaul#NO_OPENSSL= true # do not build OpenSSL (implies NO_OPENSSH) 95123475Swpaul#NO_SENDMAIL= true # do not build sendmail and related programs 96123475Swpaul#NO_SHAREDOCS= true # do not build the 4.4BSD legacy docs 97123475Swpaul#NO_TCSH= true # do not build and install /bin/csh (which is tcsh) 98123475Swpaul#NO_X= true # do not compile in XWindows support (e.g. doscmd) 99123475Swpaul#NOCRYPT= true # do not build any crypto code 100123475Swpaul#NOGAMES= true # do not build games (games/ subdir) 101123475Swpaul#NOINFO= true # do not make or install info files 102123475Swpaul#NOLIBC_R= true # do not build libc_r (re-entrant version of libc) 103123475Swpaul#NOPERL= true # do not build perl. Disables OpenSSL optimizations 104133026Swpaul#NOPROFILE= true # Avoid compiling profiled libraries 105123475Swpaul#NOSECURE= true # do not build crypto code in secure/ subdir 106123475Swpaul#NOSHARE= true # do not go into the share subdir 107123475Swpaul#NOUUCP= true # do not build uucp related programs 108123475Swpaul# 109123475Swpaul# To build the OpenSSL manpages, uncomment the following. These are not 110123475Swpaul# built by default because they clobber a number of system manpages with 111123475Swpaul# manpages describing parts of the OpenSSL toolkit, including passwd(1), 112123475Swpaul# err(3), md5(3), and others. 113123475Swpaul# 114123475Swpaul#WANT_OPENSSL_MANPAGES= true 115123475Swpaul# 116123475Swpaul# To build sys/modules when building the world (our old way of doing things) 117123475Swpaul#MODULES_WITH_WORLD=true # do not build modules when building kernel 118123475Swpaul# 119123475Swpaul# 120123475Swpaul# The following controls building optional IDEA code in libcrypto and 121123475Swpaul# certain ports. Patents are involved - you must not use this unless 122123475Swpaul# you either have a license or fall within patent 'fair use' 123123475Swpaul# provisions. 124123475Swpaul# 125133026Swpaul# *** It is YOUR RESPONSIBILITY to determine if you can use this! *** 126133026Swpaul# 127133026Swpaul# IDEA is patented in the USA and many european countries - thought to 128133026Swpaul# be OK to use for any non-commercial use. This is optional. 129133026Swpaul#MAKE_IDEA= YES # IDEA (128 bit symmetric encryption) 130133026Swpaul# 131133026Swpaul# To avoid running MAKEDEV all on /dev during install set NO_MAKEDEV_RUN. 132133026Swpaul# If you don't want to install MAKEDEV set NO_MAKEDEV_INSTALL, this implies 133133026Swpaul# NO_MAKEDEV_RUN. 134133026Swpaul#NO_MAKEDEV_INSTALL= true 135133026Swpaul#NO_MAKEDEV_RUN= true 136133026Swpaul# 137123475Swpaul# If you do not want unformatted manual pages to be compressed 138133026Swpaul# when they are installed: 139133026Swpaul# 140133026Swpaul#NOMANCOMPRESS= true 141123475Swpaul# 142123475Swpaul# 143123475Swpaul# If you want the "compat" shared libraries installed as part of your normal 144123475Swpaul# builds, uncomment these: 145123475Swpaul# 146123475Swpaul#COMPAT1X= yes 147123475Swpaul#COMPAT20= yes 148123475Swpaul#COMPAT21= yes 149123475Swpaul#COMPAT22= yes 150123475Swpaul#COMPAT3X= yes 151123475Swpaul#COMPAT4X= yes 152123475Swpaul# 153123475Swpaul# 154123475Swpaul# If you do not want additional documentation (some of which are 155123475Swpaul# a few hundred KB's) for ports to be installed: 156123475Swpaul# 157123475Swpaul#NOPORTDOCS= true 158123475Swpaul# 159123475Swpaul# 160132973Swpaul# Default format for system documentation, depends on your printer. 161124089Sgreen# Set this to "ascii" for simple printers or screen 162132973Swpaul# 163132973Swpaul#PRINTERDEVICE= ps 164123475Swpaul# 165123475Swpaul# 166123475Swpaul# How long to wait for a console keypress before booting the default kernel. 167132973Swpaul# This value is approximately in milliseconds. Keypresses are accepted by the 168132973Swpaul# BIOS before booting from disk, making it possible to give custom boot 169132973Swpaul# parameters even when this is set to 0. 170132973Swpaul# 171132973Swpaul#BOOTWAIT=0 172132973Swpaul#BOOTWAIT=30000 173132973Swpaul# 174132973Swpaul# By default, the system will always use the keyboard/video card as system 175132973Swpaul# console. However, the boot blocks may be dynamically configured to use a 176132973Swpaul# serial port in addition to or instead of the keyboard/video console. 177132973Swpaul# 178132973Swpaul# By default we use COM1 as our serial console port *if* we're going to use 179132973Swpaul# a serial port as our console at all. Alter as necessary. 180132973Swpaul# 181132973Swpaul# COM1: = 0x3F8, COM2: = 0x2F8, COM3: = 0x3E8, COM4: = 0x2E8 182132973Swpaul# 183132973Swpaul#BOOT_COMCONSOLE_PORT= 0x3F8 184132973Swpaul# 185132973Swpaul# The default serial console speed is 9600. Set the speed to a larger value 186132973Swpaul# for better interactive response. 187132973Swpaul# 188132973Swpaul#BOOT_COMCONSOLE_SPEED= 115200 189132973Swpaul# 190132973Swpaul# By default the 'pxeboot' loader retrieves the kernel via NFS. Defining 191142075Swpaul# this and recompiling /usr/src/sys/boot will cause it to retrieve the kernel 192132973Swpaul# via TFTP. This allows pxeboot to load a custom BOOTP diskless kernel yet 193142075Swpaul# still mount the server's '/' (i.e. rather then load the server's kernel). 194142075Swpaul# 195142075Swpaul#LOADER_TFTP_SUPPORT= YES 196142075Swpaul# 197132973Swpaul# By default, the ports collection attempts to use XFree86 3.3.X. If 198132973Swpaul# you are running XFree86 4.X, uncomment this line. 199132973Swpaul# 200132973Swpaul#XFREE86_VERSION= 4 201132973Swpaul# 202132973Swpaul# By default, this points to /usr/X11R6 for XFree86 releases 3.0 or earlier. 203132973Swpaul# If you have a XFree86 from before 3.0 that has the X distribution in 204132973Swpaul# /usr/X386, you want to uncomment this. 205132973Swpaul# 206132973Swpaul#X11BASE= /usr/X386 207132973Swpaul# 208132973Swpaul# 209132973Swpaul# If you have Motif on your system, uncomment this. 210132973Swpaul# 211132973Swpaul#HAVE_MOTIF= yes 212132973Swpaul#MOTIF_STATIC= yes 213132973Swpaul# 214132973Swpaul# If the default location of the Motif library (specified below) is NOT 215132973Swpaul# appropriate for you, uncomment this and change it to the correct value. 216132973Swpaul# If your motif is in ${X11BASE}/lib, you don't need to touch this line. 217132973Swpaul# 218132973Swpaul#MOTIFLIB= -L${X11BASE}/lib -lXm 219132973Swpaul# 220132973Swpaul# 221132973Swpaul# If you're resident in the USA, this will help various ports to determine 222132973Swpaul# whether or not they should attempt to comply with the various U.S. 223132973Swpaul# export regulations on certain types of software which do not apply to 224132973Swpaul# anyone else in the world. 225132973Swpaul# 226142075Swpaul#USA_RESIDENT= YES 227132973Swpaul# 228132973Swpaul# 229132973Swpaul# Override "don't install a port that's already installed" behavior. 230142075Swpaul# One might wish to do this for ports debugging or to unconditionally 231132973Swpaul# reinstall a set of suspect/broken ports. 232142075Swpaul# 233142075Swpaul#FORCE_PKG_REGISTER= YES 234142075Swpaul# 235142075Swpaul# 236132973Swpaul# If you're behind a firewall and need FTP or HTTP proxy services for 237132973Swpaul# ports collection fetching to work, the following examples give the 238132973Swpaul# necessary syntax. See the fetch(3) man page for details. 239132973Swpaul# 240132973Swpaul#FTP_PROXY= 10.0.0.1:21 241132973Swpaul#HTTP_PROXY= 10.0.0.1:80 242132973Swpaul# 243132973Swpaul# 244132973Swpaul# Port master sites. 245132973Swpaul# 246132973Swpaul# If you want your port fetches to go somewhere else than the default 247132973Swpaul# (specified below) in case the distfile/patchfile was not found, 248132973Swpaul# uncomment this and change it to a location nearest you. (Don't 249132973Swpaul# remove the "/${DIST_SUBDIR}/" part.) 250132973Swpaul# 251132973Swpaul#MASTER_SITE_BACKUP?= \ 252132973Swpaul# ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ 253132973Swpaul# 254132973Swpaul# If you want your port fetches to check the above site first (before 255132973Swpaul# the MASTER_SITES specified in the port Makefiles), uncomment the 256132973Swpaul# line below. You can also change the right side to point to wherever 257132973Swpaul# you want. 258132973Swpaul# 259132973Swpaul#MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP} 260132973Swpaul# 261132973Swpaul# Some ports use a special variable to point to a collection of 262132973Swpaul# mirrors of well-known software archives. If you have a mirror close 263132973Swpaul# to you, uncomment any of the following lines and change it to that 264132973Swpaul# address. (Don't remove the "/%SUBDIR%/" part.) 265132973Swpaul# 266132973Swpaul# Note: the right hand sides of the following lines are only for your 267132973Swpaul# information. For a full list of default sites, take a look at 268132973Swpaul# bsd.sites.mk. 269132973Swpaul# 270132973Swpaul#MASTER_SITE_AFTERSTEP= ftp://ftp.afterstep.org/%SUBDIR%/ 271132973Swpaul#MASTER_SITE_COMP_SOURCES= ftp://gatekeeper.dec.com/pub/usenet/comp.sources.%SUBDIR%/ 272132973Swpaul#MASTER_SITE_GNOME= ftp://ftp.gnome.org/pub/GNOME/sources/%SUBDIR%/ 273132973Swpaul#MASTER_SITE_GNU= ftp://ftp.gnu.org/gnu/%SUBDIR%/ 274132973Swpaul#MASTER_SITE_KDE= ftp://ftp.kde.org/pub/kde/%SUBDIR%/ 275132973Swpaul#MASTER_SITE_LOCAL= ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/ 276123475Swpaul#MASTER_SITE_MOZILLA= ftp://ftp.mozilla.org/pub/%SUBDIR%/ 277123475Swpaul#MASTER_SITE_NETBSD= ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/%SUBDIR%/ 278123475Swpaul#MASTER_SITE_PERL_CPAN= ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/by-module/%SUBDIR%/ 279132973Swpaul#MASTER_SITE_PORTS_JP= ftp://ports.jp.FreeBSD.org/pub/FreeBSD-jp/ports-jp/LOCAL_PORTS/%SUBDIR%/ 280132973Swpaul#MASTER_SITE_RINGSERVER= ftp://ftp.dnsbalance.ring.gr.jp/pub/%SUBDIR%/ 281132973Swpaul#MASTER_SITE_RUBY= ftp://ftp.netlab.co.jp/pub/lang/ruby/%SUBDIR%/ 282132973Swpaul#MASTER_SITE_SOURCEFORGE= ftp://ftp2.sourceforge.net/pub/sourceforge/%SUBDIR%/ 283132973Swpaul#MASTER_SITE_SOURCEWARE= ftp://ftp.freesoftware.com/pub/sourceware/%SUBDIR%/ 284132973Swpaul#MASTER_SITE_SUNSITE= ftp://metalab.unc.edu/pub/Linux/%SUBDIR%/ 285132973Swpaul#MASTER_SITE_TCLTK= ftp://ftp.scriptics.com/pub/tcl/%SUBDIR%/ 286132973Swpaul#MASTER_SITE_TEX_CTAN= ftp://ftp.tex.ac.uk/tex-archive/%SUBDIR%/ 287132973Swpaul#MASTER_SITE_THEMES= ftp://ftp.themes.org/pub/themes/%SUBDIR%/ 288123475Swpaul#MASTER_SITE_WINDOWMAKER= ftp://ftp.windowmaker.org/pub/%SUBDIR%/ 289132973Swpaul#MASTER_SITE_XCONTRIB= ftp://ftp.x.org/contrib/%SUBDIR%/ 290123475Swpaul#MASTER_SITE_XEMACS= ftp://ftp.xemacs.org/pub/xemacs/%SUBDIR%/ 291132973Swpaul#MASTER_SITE_XFREE= ftp://ftp.xfree86.org/pub/XFree86/%SUBDIR%/source/ 292132973Swpaul# 293132973Swpaul# Also it is highly recommended that you configure MASTER_SORT_REGEX 294123475Swpaul# to choose better mirror sites for you. List awk(1)-style regular 295123475Swpaul# expressions separated by space so MASTER_SITES will be sorted in 296123475Swpaul# that order. The following example is for Japanese users; change 297123475Swpaul# "jp" part to your ccTLD ("de", "ru", "uk", etc.) or the domain names 298123475Swpaul# of your nearest/upstream networks to meet your needs. 299123475Swpaul# 300123475Swpaul#MASTER_SORT_REGEX?= ^file: ^ftp://ftp\.FreeBSD\.org/pub/FreeBSD/ports/local-distfiles/ ://[^/]*\.jp/ ://[^/]*\.jp\. 301123475Swpaul# 302123475Swpaul# Kerberos IV 303124060Swpaul# If you want KerberosIV (KTH eBones), define this: 304124060Swpaul# 305124060Swpaul#MAKE_KERBEROS4= yes 306132973Swpaul# 307132973Swpaul# 308132973Swpaul# Kerberos 5 309123475Swpaul# If you want KerberosIV (KTH Heimdal), define this: 310123475Swpaul# 311123475Swpaul#MAKE_KERBEROS5= yes 312123475Swpaul# 313123475Swpaul# 314123475Swpaul# Kerberos5 315132973Swpaul# If you want to install MIT Kerberos5 port somewhere other than /usr/local, 316132973Swpaul# define this (this is also used to tell ssh1 that kerberos is needed): 317132973Swpaul# 318123475Swpaul#KRB5_HOME= /usr/local 319123475Swpaul# 320123475Swpaul# 321123475Swpaul# CVSup update flags. Edit SUPFILE settings to reflect whichever distribution 322123475Swpaul# file(s) you use on your site (see /usr/share/examples/cvsup/README for more 323123475Swpaul# information on CVSup and these files). To use, do "make update" in /usr/src. 324123475Swpaul# 325123475Swpaul#SUP_UPDATE= yes 326123475Swpaul# 327123475Swpaul#SUP= /usr/local/bin/cvsup 328123475Swpaul#SUPFLAGS= -g -L 2 329123475Swpaul#SUPHOST= cvsup.uk.FreeBSD.org 330123475Swpaul#SUPFILE= /usr/share/examples/cvsup/standard-supfile 331123475Swpaul#SUPFILE1= /usr/share/examples/cvsup/secure-supfile 332123475Swpaul#PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile 333123475Swpaul#DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile 334123475Swpaul# 335123475Swpaul# top(1) uses a hash table for the user names. The size of this hash 336123475Swpaul# can be tuned to match the number of local users. The table size should 337123475Swpaul# be a prime number approximately twice as large as the number of lines in 338123475Swpaul# /etc/passwd. The default number is 20011. 339123475Swpaul# 340123475Swpaul#TOP_TABLE_SIZE= 101 341123475Swpaul# 342123475Swpaul# Documentation 343123475Swpaul# 344123475Swpaul# The list of languages and encodings to build and install 345123475Swpaul# 346123475Swpaul#DOC_LANG= en_US.ISO_8859-1 ru_RU.KOI8-R 347123475Swpaul# 348124060Swpaul# 349123475Swpaul# sendmail 350123475Swpaul# 351124060Swpaul# The following sets the default m4 configuration file to use at 352124060Swpaul# install time. Use with caution as a make install will overwrite 353124060Swpaul# any existing /etc/mail/sendmail.cf. Note that SENDMAIL_CF is now 354124060Swpaul# deprecated. The value should be a fully qualified path name. 355124060Swpaul# 356124085Swpaul#SENDMAIL_MC=/etc/mail/myconfig.mc 357124060Swpaul# 358124060Swpaul# If you need to build additional .cf files during a make buildworld, 359124060Swpaul# include the full paths to the .mc files in SENDMAIL_ADDITIONAL_MC. 360126706Swpaul# 361123475Swpaul#SENDMAIL_ADDITIONAL_MC=/etc/mail/foo.mc /etc/mail/bar.mc 362124060Swpaul# 363126706Swpaul# Setting the following variables modifes the build environment for 364123475Swpaul# sendmail and its related utilities. For example, SASL support can be 365123475Swpaul# added with settings such as: 366123475Swpaul# 367123475Swpaul# SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL 368123475Swpaul# SENDMAIL_LDFLAGS=-L/usr/local/lib 369123475Swpaul# SENDMAIL_LDADD=-lsasl 370123475Swpaul# 371123475Swpaul# Note: If you are using Cyrus SASL with other applications which require 372123475Swpaul# access to the sasldb file, you should add '-D_FFR_UNSAFE_SASL' to 373123475Swpaul# SENDMAIL_CFLAGS. Also, add the following to your sendmail.mc file: 374123475Swpaul# 375123475Swpaul# define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLFile') 376126706Swpaul# 377132973Swpaul#SENDMAIL_CFLAGS= 378132973Swpaul#SENDMAIL_LDFLAGS= 379132973Swpaul#SENDMAIL_LDADD= 380162491Skan#SENDMAIL_DPADD= 381132973Swpaul