bsd.README revision 1.103
11.103Sthorpej# $NetBSD: bsd.README,v 1.103 2002/09/17 23:18:29 thorpej Exp $ 21.24Smikel# @(#)bsd.README 8.2 (Berkeley) 4/2/94 31.1Scgd 41.1ScgdThis is the README file for the new make "include" files for the BSD 51.1Scgdsource tree. The files are installed in /usr/share/mk, and are, by 61.11Sjtcconvention, named with the suffix ".mk". 71.1Scgd 81.1ScgdNote, this file is not intended to replace reading through the .mk 91.1Scgdfiles for anything tricky. 101.1Scgd 111.1Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 121.1Scgd 131.1ScgdRANDOM THINGS WORTH KNOWING: 141.1Scgd 151.1ScgdThe files are simply C-style #include files, and pretty much behave like 161.1Scgdyou'd expect. The syntax is slightly different in that a single '.' is 171.1Scgdused instead of the hash mark, i.e. ".include <bsd.prog.mk>". 181.1Scgd 191.1ScgdOne difference that will save you lots of debugging time is that inclusion 201.1Scgdof the file is normally done at the *end* of the Makefile. The reason for 211.1Scgdthis is because .mk files often modify variables and behavior based on the 221.1Scgdvalues of variables set in the Makefile. To make this work, remember that 231.1Scgdthe FIRST target found is the target that is used, i.e. if the Makefile has: 241.1Scgd 251.1Scgd a: 261.1Scgd echo a 271.1Scgd a: 281.1Scgd echo a number two 291.1Scgd 301.1Scgdthe command "make a" will echo "a". To make things confusing, the SECOND 311.1Scgdvariable assignment is the overriding one, i.e. if the Makefile has: 321.1Scgd 331.1Scgd a= foo 341.1Scgd a= bar 351.1Scgd 361.1Scgd b: 371.1Scgd echo ${a} 381.1Scgd 391.1Scgdthe command "make b" will echo "bar". This is for compatibility with the 401.1Scgdway the V7 make behaved. 411.1Scgd 421.1ScgdIt's fairly difficult to make the BSD .mk files work when you're building 431.75Sagcmultiple programs in a single directory. It's a lot easier to split up the 441.1Scgdprograms than to deal with the problem. Most of the agony comes from making 451.36Srossthe "obj" directory stuff work right, not because we switched to a new version 461.1Scgdof make. So, don't get mad at us, figure out a better way to handle multiple 471.1Scgdarchitectures so we can quit using the symbolic link stuff. (Imake doesn't 481.1Scgdcount.) 491.1Scgd 501.1ScgdThe file .depend in the source directory is expected to contain dependencies 511.1Scgdfor the source files. This file is read automatically by make after reading 521.1Scgdthe Makefile. 531.1Scgd 541.1ScgdThe variable DESTDIR works as before. It's not set anywhere but will change 551.1Scgdthe tree where the file gets installed. 561.1Scgd 571.1ScgdThe profiled libraries are no longer built in a different directory than 581.1Scgdthe regular libraries. A new suffix, ".po", is used to denote a profiled 591.21Schristosobject, and ".so" denotes a shared (position-independent) object. 601.97Sitojun 611.97SitojunThere are various make variables used during the build. Basic rule for 621.97Sitojunthe variable naming scheme is as follows: 631.97Sitojun 641.97SitojunMKxxx Can be set to `no' by a user to disable functionality. 651.97Sitojun Defaults to `yes' (or usually does) 661.97Sitojun 671.97SitojunNOxxx If defined, disables a feature. Not intended for users, 681.97Sitojun it's to allow Makefiles to disable functionality that 691.97Sitojun they don't support (such as missing man pages). 701.101Slukem NOxxx variables must be defined before <bsd.own.mk> 711.101Slukem is included. 721.21Schristos 731.45SlukemThe following variables that control how things are made/installed that 741.47Stvare not set by default. These should not be set by Makefiles; they're for 751.47Stvthe user to define in MAKECONF (see bsd.own.mk, below) or on the make(1) 761.47Stvcommand line: 771.21Schristos 781.45SlukemBUILD If defined, 'make install' checks that the targets in the 791.45Slukem source directories are up-to-date and remakes them if they 801.21Schristos are out of date, instead of blindly trying to install 811.79Swiz out of date or non-existent targets. 821.21Schristos 831.45SlukemUPDATE If defined, 'make install' only installs targets that are 841.45Slukem more recently modified in the source directories that their 851.45Slukem installed counterparts. 861.52Ssimonb 871.83SperryUNPRIVED If defined, don't set the owner/group/mode when installing 881.83Sperry files or directories, and keep a metadata log of what 891.83Sperry the owner/group/mode should be. This allows a 901.83Sperry non-root "make install". 911.45Slukem 921.86SthorpejMKBFD If "no", don't build libbfd, libiberty, or any of 931.86Sthorpej the things that depend on them (binutils/gas/ld, 941.103Sthorpej gdb, dbsym, mdsetimage). 951.86Sthorpej 961.45SlukemMKCATPAGES If "no", don't build or install the catman pages. 971.45Slukem 981.45SlukemMKDOC If "no", don't build or install the documentation. 991.86Sthorpej 1001.103SthorpejMKGDB If "no", don't build gdb. 1011.86Sthorpej 1021.86SthorpejMKGCC If "no", don't build gcc or any of the gcc-related 1031.86Sthorpej libraries (libg2c, libgcc, libobjc, libstdc++). 1041.92Sross 1051.92SrossMKIEEEFP If "no", don't add code for IEEE754/IEC60559 conformance. 1061.92Sross Has no effect on most platforms. 1071.45Slukem 1081.47StvMKINFO If "no", don't build or install Info documentation from 1091.47Stv Texinfo source files. 1101.45Slukem 1111.45SlukemMKLINT If "no", don't build or install the lint libraries. 1121.45Slukem 1131.45SlukemMKMAN If "no", don't build or install the man or catman pages. 1141.46Slukem Also acts as "MKCATPAGES=no" 1151.45Slukem 1161.74SitojunMKNLS If "no", don't build or install the NLS files and locale 1171.74Sitojun definition files. 1181.45Slukem 1191.55SsommerfeMKOBJ If "no", don't enable the rule which creates objdirs. 1201.55Ssommerfe "yes" by default. 1211.55Ssommerfe 1221.55SsommerfeMKOBJDIRS If "no", don't create objdirs during a "make build". 1231.55Ssommerfe "no" by default. 1241.45Slukem 1251.45SlukemMKPIC If "no", don't build or install shared libraries. 1261.45Slukem 1271.45SlukemMKPICINSTALL If "no", don't install the *_pic.a libraries. 1281.45Slukem 1291.45SlukemMKPROFILE If "no", don't build or install the profiling libraries. 1301.45Slukem 1311.48SlukemMKSHARE If "no", act as "MKCATPAGES=no MKDOC=no MKINFO=no MKMAN=no 1321.48Slukem MKNLS=no". I.e, don't build catman pages, documentation, 1331.48Slukem Info documentation, man pages, NLS files, ... 1341.1Scgd 1351.1Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 1361.1Scgd 1371.1ScgdThe include file <sys.mk> has the default rules for all makes, in the BSD 1381.1Scgdenvironment or otherwise. You probably don't want to touch this file. 1391.71SitojunIf you intend to run a cross build, you will need to supply the following 1401.71Sitojunhost tools, and configure the following variables properly: 1411.71Sitojun 1421.71SitojunOBJCOPY objcopy - copy and translate object files 1431.71Sitojun 1441.71SitojunSTRIP strip - Discard symbols from object files 1451.71Sitojun 1461.71SitojunCONFIG config - build kernel compilation directories 1471.71Sitojun 1481.71SitojunRPCGEN rpcgen - Remote Procedure Call (RPC) protocol compiler 1491.71Sitojun 1501.71SitojunMKLOCALE mklocale - make LC_CTYPE locale files 1511.80Sjmc 1521.80SjmcMTREE mtree - build directory tree from a spec file 1531.1Scgd 1541.1Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 1551.1Scgd 1561.1ScgdThe include file <bsd.man.mk> handles installing manual pages and their 1571.1Scgdlinks. 1581.1Scgd 1591.21SchristosIt has a two targets: 1601.1Scgd 1611.1Scgd maninstall: 1621.21Schristos Install the manual page sources and their links. 1631.21Schristos catinstall: 1641.21Schristos Install the preformatted manual pages and their links. 1651.1Scgd 1661.1ScgdIt sets/uses the following variables: 1671.1Scgd 1681.1ScgdMANDIR Base path for manual installation. 1691.1Scgd 1701.1ScgdMANGRP Manual group. 1711.1Scgd 1721.1ScgdMANOWN Manual owner. 1731.1Scgd 1741.1ScgdMANMODE Manual mode. 1751.1Scgd 1761.1ScgdMANSUBDIR Subdirectory under the manual page section, i.e. "/vax" 1771.1Scgd or "/tahoe" for machine specific manual pages. 1781.1Scgd 1791.15ScgdMAN The manual pages to be installed (use a .1 - .9 suffix). 1801.1Scgd 1811.15ScgdMLINKS List of manual page links (using a .1 - .9 suffix). The 1821.1Scgd linked-to file must come first, the linked file second, 1831.1Scgd and there may be multiple pairs. The files are soft-linked. 1841.1Scgd 1851.1ScgdThe include file <bsd.man.mk> includes a file named "../Makefile.inc" if 1861.1Scgdit exists. 1871.1Scgd 1881.1Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 1891.1Scgd 1901.17SthorpejThe include file <bsd.own.mk> contains source tree configuration parameters, 1911.17Sthorpejsuch as the owners, groups, etc. for both manual pages and binaries, and 1921.17Sthorpeja few global "feature configuration" parameters. 1931.1Scgd 1941.1ScgdIt has no targets. 1951.1Scgd 1961.29ScjsTo get system-specific configuration parameters, bsd.own.mk will try to 1971.29Scjsinclude the file specified by the "MAKECONF" variable. If MAKECONF is not 1981.29Scjsset, or no such file exists, the system make configuration file, /etc/mk.conf 1991.29Scjsis included. These files may define any of the variables described below. 2001.17Sthorpej 2011.17Sthorpejbsd.own.mk sets the following variables, if they are not already defined 2021.17Sthorpej(defaults are in brackets): 2031.15Scgd 2041.98SlukemNETBSDSRCDIR Top of the NetBSD source tree. 2051.98Slukem If _SRC_TOP_ != "", that will be used as the default, 2061.98Slukem otherwise BSDSRCDIR will be used as the default. 2071.98Slukem Various makefiles within the NetBSD source tree will 2081.98Slukem use this to reference the top level of the source tree. 2091.98Slukem 2101.95Slukem_SRC_TOP_ Top of the system source tree, as determined by <bsd.own.mk> 2111.98Slukem based on the presence of tools/ and build.sh. This variable 2121.98Slukem is "internal" to <bsd.own.mk>, although its value is only 2131.98Slukem determined once and then propagated to all sub-makes. 2141.95Slukem 2151.15ScgdBSDSRCDIR The real path to the system sources, so that 'make obj' 2161.15Scgd will work correctly. [/usr/src] 2171.15Scgd 2181.15ScgdBSDOBJDIR The real path to the system 'obj' tree, so that 'make obj' 2191.15Scgd will work correctly. [/usr/obj] 2201.15Scgd 2211.34SlukemBINGRP Binary group. [wheel] 2221.15Scgd 2231.34SlukemBINOWN Binary owner. [root] 2241.15Scgd 2251.15ScgdBINMODE Binary mode. [555] 2261.15Scgd 2271.15ScgdNONBINMODE Mode for non-executable files. [444] 2281.15Scgd 2291.15ScgdMANDIR Base path for manual installation. [/usr/share/man/cat] 2301.15Scgd 2311.34SlukemMANGRP Manual group. [wheel] 2321.15Scgd 2331.34SlukemMANOWN Manual owner. [root] 2341.15Scgd 2351.15ScgdMANMODE Manual mode. [${NONBINMODE}] 2361.15Scgd 2371.21SchristosMANINSTALL Manual installation type: maninstall, catinstall, or both 2381.76Sfair 2391.76SfairLDSTATIC Control program linking; if set blank, link everything 2401.76Sfair dynamically. If set to "-static", link everything statically. 2411.76Sfair If not set, programs link according to their makefile. 2421.21Schristos 2431.15ScgdLIBDIR Base path for library installation. [/usr/lib] 2441.15Scgd 2451.85SlukemSHLIBDIR If ${USE_SHLIBDIR} is "yes", use ${SHLIBDIR} instead of 2461.85Slukem ${LIBDIR} as the base path for shared library installation. 2471.85Slukem [/usr/lib] 2481.85Slukem 2491.85Slukem_LIBSODIR Set to ${SHLIBDIR} if ${USE_SHLIBDIR} is "yes", 2501.85Slukem otherwise set to ${LIBDIR} 2511.85Slukem 2521.85SlukemSHLINKDIR Base path for shared linker. [/usr/libexec] 2531.85Slukem 2541.15ScgdLINTLIBDIR Base path for lint(1) library installation. [/usr/libdata/lint] 2551.15Scgd 2561.15ScgdLIBGRP Library group. [${BINGRP}] 2571.15Scgd 2581.15ScgdLIBOWN Library owner. [${BINOWN}] 2591.15Scgd 2601.15ScgdLIBMODE Library mode. [${NONBINMODE}] 2611.15Scgd 2621.15ScgdDOCDIR Base path for system documentation (e.g. PSD, USD, etc.) 2631.15Scgd installation. [/usr/share/doc] 2641.62Ssimonb 2651.62SsimonbHTMLDOCDIR Base path for html system documentation installation. 2661.62Ssimonb [/usr/share/doc/html] 2671.15Scgd 2681.34SlukemDOCGRP Documentation group. [wheel] 2691.15Scgd 2701.34SlukemDOCOWN Documentation owner. [root] 2711.15Scgd 2721.15ScgdDOCMODE Documentation mode. [${NONBINMODE}] 2731.15Scgd 2741.84SkleinkNLSDIR Base path for Native Language Support files installation. 2751.15Scgd [/usr/share/nls] 2761.1Scgd 2771.84SkleinkNLSGRP Native Language Support files group. [wheel] 2781.1Scgd 2791.84SkleinkNLSOWN Native Language Support files owner. [root] 2801.1Scgd 2811.84SkleinkNLSMODE Native Language Support files mode. [${NONBINMODE}] 2821.1Scgd 2831.32SmikelSTRIPFLAG The flag passed to the install program to cause the binary 2841.1Scgd to be stripped. This is to be used when building your 2851.1Scgd own install script so that the entire system can be made 2861.15Scgd stripped/not-stripped using a single knob. [-s] 2871.1Scgd 2881.2ScgdCOPY The flag passed to the install program to cause the binary 2891.2Scgd to be copied rather than moved. This is to be used when 2901.2Scgd building our own install script so that the entire system 2911.2Scgd can either be installed with copies, or with moves using 2921.15Scgd a single knob. [-c] 2931.15Scgd 2941.17SthorpejAdditionally, the following variables may be set by bsd.own.mk or in a 2951.17Sthorpejmake configuration file to modify the behaviour of the system build 2961.17Sthorpejprocess (default values are in brackets along with comments, if set by 2971.17Sthorpejbsd.own.mk): 2981.15Scgd 2991.64SthorpejMKCRYPTO If set to "no", no cryptography support will be built 3001.64Sthorpej into the system. Defaults to "yes". 3011.64Sthorpej 3021.66SitojunMKCRYPTO_IDEA If set to "yes", IDEA support will be built into 3031.66Sitojun libcrypto_idea.a. Defaults to "no". 3041.64Sthorpej 3051.66SitojunMKCRYPTO_RC5 If set to "yes", RC5 support will be built into 3061.66Sitojun libcrypto_rc5.a. Defaults to "no". 3071.64Sthorpej 3081.94SthorpejMKHESIOD If set to "no", disables building of Hesiod infrastructure 3091.94Sthorpej (libraries and support programs). 3101.64Sthorpej 3111.94SthorpejMKKERBEROS If set to "no", disables building of Kerberos (v4 or v5) 3121.94Sthorpej infrastructure (libraries and support programs). 3131.2Scgd 3141.94SthorpejMKSKEY If set to "no", disables building of S/key authentication 3151.94Sthorpej infrastructure (libraries and support programs). 3161.94Sthorpej 3171.94SthorpejMKYP If set to "no", disables building of YP (NIS) 3181.94Sthorpej infrastructure (libraries and support programs). 3191.94Sthorpej 3201.94SthorpejUSE_HESIOD If set to "no", disables building Hesiod support into 3211.94Sthorpej various system utilities/libraries that support it. 3221.94Sthorpej If MKHESIOD is set to "no", USE_HESIOD will also be 3231.94Sthorpej forced to "no". 3241.94Sthorpej 3251.94SthorpejUSE_KERBEROS If set to "no", disables building Kerberos (v4 or v5) 3261.94Sthorpej support into various system utilities/libraries that 3271.94Sthorpej support it. If MKKERBEROS is set to "no", USE_KERBEROS 3281.94Sthorpej will also be forced to "no". 3291.94Sthorpej 3301.94SthorpejUSE_SKEY If set to "no", disables building S/key authentication 3311.94Sthorpej support into various system utilities/libraries that 3321.94Sthorpej support it. If MKSKEY is set to "no", USE_SKEY will 3331.94Sthorpej also be forced to "no". 3341.94Sthorpej 3351.94SthorpejUSE_YP If set to "no", disables building YP (NIS) support into 3361.94Sthorpej various system utilities/libraries that support it. If 3371.94Sthorpej MKYP is set to "no", USE_YP will also be forced to "no". 3381.15Scgd 3391.15ScgdMANZ Compress manual pages at installation time. 3401.15Scgd 3411.15ScgdSYS_INCLUDE Copy or symlink kernel include files into /usr/include. 3421.15Scgd Possible values are "symlinks" or "copies" (which is 3431.15Scgd the same as the variable being unset). 3441.1Scgd 3451.15ScgdNOPROFILE Do not build profiled versions of system libraries 3461.1Scgd 3471.15ScgdNOPIC Do not build PIC versions of system libraries, and 3481.15Scgd do not build shared libraries. [set if ${MACHINE_ARCH} 3491.65Sjlam is "sh3" and ${OBJECT_FMT} is "COFF", unset otherwise.] 3501.1Scgd 3511.40SperryNOLINT Do not build lint libraries. 3521.33Sjonathan 3531.50SthorpejOBJECT_FMT Object file format. [set to "ELF" on architectures that 3541.50Sthorpej use ELF -- currently if ${MACHINE_ARCH} is "alpha", 3551.50Sthorpej "mipsel", "mipseb", "powerpc", "sparc", "sparc64", 3561.77Ssimonb "i386" and some m68k machines, or set to "a.out" on 3571.77Ssimonb other architectures]. 3581.33Sjonathan 3591.78SsimonbMKSOFTFLOAT If "yes", build with options to enable the compiler to 3601.78Ssimonb generate output containing library calls for floating 3611.78Ssimonb point and possibly soft-float library support. Defaults 3621.78Ssimonb to "no". 3631.103Sthorpej 3641.103SthorpejTOOLCHAIN_MISSING 3651.103Sthorpej If "yes", this indicates that the platform being built 3661.103Sthorpej does not have a working in-tree toolchain. If the 3671.103Sthorpej MACHINE_ARCH in question falls into this category, the 3681.103Sthorpej variable is conditionally assigned the value "yes". 3691.103Sthorpej Otherwise, the variable is unconditionally assigned the 3701.103Sthorpej value "no". 3711.103Sthorpej 3721.103Sthorpej If TOOLCHAIN_MISSING is "yes", the variables MKBFD, MKGCC, 3731.103Sthorpej and MKGDB are unconditionally assigned the value "no". 3741.103Sthorpej 3751.103SthorpejEXTERNAL_TOOLCHAIN 3761.103Sthorpej This variable is not directly set by <bsd.own.mk>, but 3771.103Sthorpej including <bsd.own.mk> is the canonical way to gain 3781.103Sthorpej access to this variable. The variable should be defined 3791.103Sthorpej either in the user's environment or in the user's mk.conf 3801.103Sthorpej file. If defined, this variable indicates the root of 3811.103Sthorpej an external toolchain which will be used to build the 3821.103Sthorpej tree. For example, if a platform is a TOOLCHAIN_MISSING 3831.103Sthorpej platform, EXTERNAL_TOOLCHAIN can be used to re-enable the 3841.103Sthorpej cross-compile framework. 3851.103Sthorpej 3861.103Sthorpej If EXTERNAL_TOOLCHAIN is defined, the variable MKGCC is 3871.103Sthorpej unconditionally assigned the value "no", since the external 3881.103Sthorpej version of the compiler may not be able to build the library 3891.103Sthorpej components of the in-tree compiler. 3901.103Sthorpej 3911.103Sthorpej NOTE: This variable is not yet used in as many places as 3921.103Sthorpej it should be. Expect the exact semantics of this variable 3931.103Sthorpej to change in the short term as parts of the cross-compile 3941.103Sthorpej framework continue to be cleaned up. 3951.1Scgd 3961.17Sthorpejbsd.own.mk is generally useful when building your own Makefiles so that 3971.1Scgdthey use the same default owners etc. as the rest of the tree. 3981.1Scgd 3991.1Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 4001.1Scgd 4011.1ScgdThe include file <bsd.prog.mk> handles building programs from one or 4021.1Scgdmore source files, along with their manual pages. It has a limited number 4031.1Scgdof suffixes, consistent with the current needs of the BSD tree. 4041.1Scgd 4051.16SjtcIt has eight targets: 4061.1Scgd 4071.1Scgd all: 4081.102Sthorpej build the program and its manual page. This also 4091.102Sthorpej creates a GDB initialization file (.gdbinit) in 4101.102Sthorpej the objdir. The .gdbinit file sets the shared library 4111.102Sthorpej prefix to ${DESTDIR} to facilitate cross-debugging. 4121.1Scgd clean: 4131.1Scgd remove the program, any object files and the files a.out, 4141.24Smikel Errs, errs, mklog, and ${PROG}.core. 4151.1Scgd cleandir: 4161.1Scgd remove all of the files removed by the target clean, as 4171.1Scgd well as .depend, tags, and any manual pages. 4181.42Slukem `distclean' is a synonym for `cleandir'. 4191.1Scgd depend: 4201.1Scgd make the dependencies for the source files, and store 4211.1Scgd them in the file .depend. 4221.16Sjtc includes: 4231.16Sjtc install any header files. 4241.1Scgd install: 4251.1Scgd install the program and its manual pages; if the Makefile 4261.1Scgd does not itself define the target install, the targets 4271.1Scgd beforeinstall and afterinstall may also be used to cause 4281.1Scgd actions immediately before and after the install target 4291.1Scgd is executed. 4301.1Scgd lint: 4311.1Scgd run lint on the source files 4321.1Scgd tags: 4331.1Scgd create a tags file for the source files. 4341.1Scgd 4351.1ScgdIt sets/uses the following variables: 4361.1Scgd 4371.1ScgdBINGRP Binary group. 4381.1Scgd 4391.1ScgdBINOWN Binary owner. 4401.1Scgd 4411.1ScgdBINMODE Binary mode. 4421.1Scgd 4431.1ScgdCLEANFILES Additional files to remove for the clean and cleandir targets. 4441.1Scgd 4451.1ScgdCOPTS Additional flags to the compiler when creating C objects. 4461.35Slukem 4471.35SlukemCPPFLAGS Additional flags to the C pre-processor 4481.102Sthorpej 4491.102SthorpejGDBINIT List of GDB initialization files to add to "source" 4501.102Sthorpej directives in the .gdbinit file that is created in the 4511.102Sthorpej objdir. 4521.1Scgd 4531.1ScgdLDADD Additional loader objects. Usually used for libraries. 4541.1Scgd For example, to load with the compatibility and utility 4551.1Scgd libraries, use: 4561.1Scgd 4571.5Sjtc LDADD+=-lutil -lcompat 4581.1Scgd 4591.1ScgdLDFLAGS Additional loader flags. 4601.1Scgd 4611.1ScgdLINKS The list of binary links; should be full pathnames, the 4621.1Scgd linked-to file coming first, followed by the linked 4631.1Scgd file. The files are hard-linked. For example, to link 4641.1Scgd /bin/test and /bin/[, use: 4651.1Scgd 4661.1Scgd LINKS= ${DESTDIR}/bin/test ${DESTDIR}/bin/[ 4671.19Sperry 4681.19SperrySYMLINKS The list of symbolic links; should be full pathnames. 4691.20Sperry Syntax is identical to LINKS. Note that DESTDIR is not 4701.20Sperry automatically included in the link. 4711.1Scgd 4721.15ScgdMAN Manual pages (should end in .1 - .9). If no MAN variable is 4731.8Scgd defined, "MAN=${PROG}.1" is assumed. 4741.1Scgd 4751.1ScgdPROG The name of the program to build. If not supplied, nothing 4761.1Scgd is built. 4771.1Scgd 4781.88SthorpejPROG_CXX If defined, the name of the program to build. Also 4791.88Sthorpej causes <bsd.prog.mk> to link the program with the C++ 4801.88Sthorpej compiler rather than the C compiler. PROG_CXX overrides 4811.88Sthorpej the value of PROG if PROG is also set. 4821.87Sthorpej 4831.21SchristosPROGNAME The name that the above program will be installed as, if 4841.21Schristos different from ${PROG}. 4851.21Schristos 4861.37StvSRCS List of source files to build the program. If SRCS is not 4871.1Scgd defined, it's assumed to be ${PROG}.c. 4881.1Scgd 4891.1ScgdDPADD Additional dependencies for the program. Usually used for 4901.1Scgd libraries. For example, to depend on the compatibility and 4911.1Scgd utility libraries use: 4921.1Scgd 4931.5Sjtc DPADD+=${LIBCOMPAT} ${LIBUTIL} 4941.1Scgd 4951.1Scgd The following libraries are predefined for DPADD: 4961.1Scgd 4971.21Schristos LIBCRT0?= ${DESTDIR}/usr/lib/crt0.o 4981.99Sitojun LIBBZ2?= ${DESTDIR}/usr/lib/libbz2.a 4991.21Schristos LIBC?= ${DESTDIR}/usr/lib/libc.a 5001.21Schristos LIBC_PIC?= ${DESTDIR}/usr/lib/libc_pic.a 5011.99Sitojun LIBCDK?= ${DESTDIR}/usr/lib/libcdk.a 5021.99Sitojun LIBCOM_ERR?= ${DESTDIR}/usr/lib/libcom_err.a 5031.21Schristos LIBCOMPAT?= ${DESTDIR}/usr/lib/libcompat.a 5041.21Schristos LIBCRYPT?= ${DESTDIR}/usr/lib/libcrypt.a 5051.99Sitojun LIBCRYPTO?= ${DESTDIR}/usr/lib/libcrypto.a 5061.99Sitojun LIBCRYPTO_IDEA?=${DESTDIR}/usr/lib/libcrypto_idea.a 5071.99Sitojun LIBCRYPTO_RC5?= ${DESTDIR}/usr/lib/libcrypto_rc5.a 5081.21Schristos LIBCURSES?= ${DESTDIR}/usr/lib/libcurses.a 5091.21Schristos LIBDBM?= ${DESTDIR}/usr/lib/libdbm.a 5101.21Schristos LIBDES?= ${DESTDIR}/usr/lib/libdes.a 5111.21Schristos LIBEDIT?= ${DESTDIR}/usr/lib/libedit.a 5121.73Sblymn LIBFORM?= ${DESTDIR}/usr/lib/libform.a 5131.21Schristos LIBGCC?= ${DESTDIR}/usr/lib/libgcc.a 5141.21Schristos LIBGNUMALLOC?= ${DESTDIR}/usr/lib/libgnumalloc.a 5151.99Sitojun LIBGSSAPI?= ${DESTDIR}/usr/lib/libgssapi.a 5161.99Sitojun LIBHDB?= ${DESTDIR}/usr/lib/libhdb.a 5171.70Sitojun LIBINTL?= ${DESTDIR}/usr/lib/libintl.a 5181.49Sitojun LIBIPSEC?= ${DESTDIR}/usr/lib/libipsec.a 5191.99Sitojun LIBKADM?= ${DESTDIR}/usr/lib/libkadm.a 5201.99Sitojun LIBKADM5CLNT?= ${DESTDIR}/usr/lib/libkadm5clnt.a 5211.99Sitojun LIBKADM5SRV?= ${DESTDIR}/usr/lib/libkadm5srv.a 5221.99Sitojun LIBKAFS?= ${DESTDIR}/usr/lib/libkafs.a 5231.21Schristos LIBKDB?= ${DESTDIR}/usr/lib/libkdb.a 5241.21Schristos LIBKRB?= ${DESTDIR}/usr/lib/libkrb.a 5251.99Sitojun LIBKRB5?= ${DESTDIR}/usr/lib/libkrb5.a 5261.99Sitojun LIBKSTREAM?= ${DESTDIR}/usr/lib/libkstream.a 5271.21Schristos LIBKVM?= ${DESTDIR}/usr/lib/libkvm.a 5281.21Schristos LIBL?= ${DESTDIR}/usr/lib/libl.a 5291.21Schristos LIBM?= ${DESTDIR}/usr/lib/libm.a 5301.53Sblymn LIBMENU?= ${DESTDIR}/usr/lib/libmenu.a 5311.21Schristos LIBMP?= ${DESTDIR}/usr/lib/libmp.a 5321.25Schristos LIBNTP?= ${DESTDIR}/usr/lib/libntp.a 5331.99Sitojun LIBOBJC?= ${DESTDIR}/usr/lib/libobjc.a 5341.99Sitojun LIBOSSAUDIO?= ${DESTDIR}/usr/lib/libossaudio.a 5351.21Schristos LIBPC?= ${DESTDIR}/usr/lib/libpc.a 5361.21Schristos LIBPCAP?= ${DESTDIR}/usr/lib/libpcap.a 5371.99Sitojun LIBPCI?= ${DESTDIR}/usr/lib/libpci.a 5381.21Schristos LIBPLOT?= ${DESTDIR}/usr/lib/libplot.a 5391.100Sthorpej LIBPMC?= ${DESTDIR}/usr/lib/libpmc.a 5401.26Skleink LIBPOSIX?= ${DESTDIR}/usr/lib/libposix.a 5411.21Schristos LIBRESOLV?= ${DESTDIR}/usr/lib/libresolv.a 5421.99Sitojun LIBRMT?= ${DESTDIR}/usr/lib/librmt.a 5431.99Sitojun LIBROKEN?= ${DESTDIR}/usr/lib/libroken.a 5441.21Schristos LIBRPCSVC?= ${DESTDIR}/usr/lib/librpcsvc.a 5451.21Schristos LIBSKEY?= ${DESTDIR}/usr/lib/libskey.a 5461.99Sitojun LIBSS?= ${DESTDIR}/usr/lib/libss.a 5471.99Sitojun LIBSSL?= ${DESTDIR}/usr/lib/libssl.a 5481.99Sitojun LIBSKEY?= ${DESTDIR}/usr/lib/libskey.a 5491.99Sitojun LIBSL?= ${DESTDIR}/usr/lib/libsl.a 5501.21Schristos LIBTERMCAP?= ${DESTDIR}/usr/lib/libtermcap.a 5511.21Schristos LIBTELNET?= ${DESTDIR}/usr/lib/libtelnet.a 5521.99Sitojun LIBUSBHID?= ${DESTDIR}/usr/lib/libusbhid.a 5531.21Schristos LIBUTIL?= ${DESTDIR}/usr/lib/libutil.a 5541.21Schristos LIBWRAP?= ${DESTDIR}/usr/lib/libwrap.a 5551.21Schristos LIBY?= ${DESTDIR}/usr/lib/liby.a 5561.21Schristos LIBZ?= ${DESTDIR}/usr/lib/libz.a 5571.1Scgd 5581.1ScgdSHAREDSTRINGS If defined, a new .c.o rule is used that results in shared 5591.12Schristos strings, using xstr(1). Note that this will not work with 5601.12Schristos parallel makes. 5611.1Scgd 5621.59SjlamSTRIPFLAG The flag passed to the install program to cause the binary 5631.1Scgd to be stripped. 5641.1Scgd 5651.1ScgdSUBDIR A list of subdirectories that should be built as well. 5661.1Scgd Each of the targets will execute the same target in the 5671.1Scgd subdirectories. 5681.1Scgd 5691.21SchristosSCRIPTS A list of interpreter scripts [file.{sh,csh,pl,awk,...}]. 5701.21Schristos These are installed exactly like programs. 5711.21Schristos 5721.21SchristosSCRIPTSNAME The name that the above program will be installed as, if 5731.21Schristos different from ${SCRIPTS}. These can be further specialized 5741.21Schristos by setting SCRIPTSNAME_<script>. 5751.21Schristos 5761.21SchristosFILES A list of files to install. The installation is controlled 5771.21Schristos by the FILESNAME, FILESOWN, FILESGRP, FILESMODE, FILESDIR 5781.21Schristos variables that can be further specialized by FILES<VAR>_<file> 5791.21Schristos 5801.85SlukemSHLINKDIR Target directory for shared linker. 5811.85Slukem 5821.1ScgdThe include file <bsd.prog.mk> includes the file named "../Makefile.inc" 5831.1Scgdif it exists, as well as the include file <bsd.man.mk>. 5841.1Scgd 5851.1ScgdSome simple examples: 5861.1Scgd 5871.1ScgdTo build foo from foo.c with a manual page foo.1, use: 5881.1Scgd 5891.1Scgd PROG= foo 5901.1Scgd 5911.1Scgd .include <bsd.prog.mk> 5921.1Scgd 5931.1ScgdTo build foo from foo.c with a manual page foo.2, add the line: 5941.1Scgd 5951.9Scgd MAN= foo.2 5961.1Scgd 5971.1ScgdIf foo does not have a manual page at all, add the line: 5981.1Scgd 5991.75Sagc MKMAN= no 6001.1Scgd 6011.1ScgdIf foo has multiple source files, add the line: 6021.1Scgd 6031.1Scgd SRCS= a.c b.c c.c d.c 6041.1Scgd 6051.1Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 6061.1Scgd 6071.1ScgdThe include file <bsd.subdir.mk> contains the default targets for building 6081.16Sjtcsubdirectories. It has the same eight targets as <bsd.prog.mk>: all, 6091.16Sjtcclean, cleandir, depend, includes, install, lint, and tags. For all of 6101.72Ssommerfethe directories listed in the variable SUBDIR, the specified directory 6111.16Sjtcwill be visited and the target made. There is also a default target which 6121.16Sjtcallows the command "make subdir" where subdir is any directory listed in 6131.72Ssommerfethe variable SUBDIR. 6141.72Ssommerfe 6151.72SsommerfeAs a special case, the use of a token .WAIT as an entry in SUBDIR acts 6161.72Ssommerfeas a synchronization barrier when multiple make jobs are run; subdirs 6171.72Ssommerfebefore the .WAIT must complete before any subdirs after .WAIT are 6181.75Sagcstarted. See make(1) for some caveats on use of .WAIT and other 6191.75Sagcspecial sources. 6201.21Schristos 6211.21Schristos=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 6221.21Schristos 6231.23SchristosThe include file <bsd.links.mk> handles the LINKS and SYMLINKS variables 6241.23Schristosand is included from from bsd.lib.mk and bsd.prog.mk. 6251.23Schristos 6261.23Schristos=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 6271.23Schristos 6281.23SchristosThe include file <bsd.files.mk> handles the FILES variables and is included 6291.23Schristosfrom bsd.lib.mk and bsd.prog.mk. 6301.21Schristos 6311.21Schristos=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 6321.21Schristos 6331.29ScjsThe include file <bsd.inc.mk> defines the includes target and uses two 6341.29Scjsvariables: 6351.21Schristos 6361.81SwizINCS The list of include files 6371.21Schristos 6381.81SwizINCSDIR The location to install the include files. 6391.81Swiz 6401.81SwizINCSNAME Target name of the include file, if only one; same as 6411.81Swiz FILESNAME, but for include files. 6421.81Swiz 6431.81SwizINCSNAME_<file> The name file <file> should be installed as, if not <file>, 6441.81Swiz same as FILESNAME_<file>, but for include files. 6451.39Scgd 6461.39Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 6471.39Scgd 6481.39ScgdThe include file <bsd.kinc.mk> defines the many targets (includes, 6491.39Scgdsubdirectories, etc.), and is used by kernel makefiles to handle 6501.39Scgdinclude file installation. It is intended to be included alone, by 6511.39Scgdkernel Makefiles. Please see bsd.kinc.mk for more details, and keep 6521.39Scgdthe documentation in that file up to date. 6531.13Schristos 6541.13Schristos=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 6551.13Schristos 6561.47StvThe include file <bsd.info.mk> is used to generate and install GNU Info 6571.47Stvdocumentation from respective Texinfo source files. It defines three 6581.47Stvimplicit targets (.txi.info, .texi.info, and .texinfo.info), and uses the 6591.47Stvfollowing variables: 6601.47Stv 6611.47StvTEXINFO List of Texinfo source files. Info documentation will 6621.47Stv consist of single files with the extension replaced by 6631.47Stv .info. 6641.47Stv 6651.47StvINFOFLAGS Flags to pass to makeinfo. [] 6661.47Stv 6671.47StvINSTALL_INFO Name of install-info program. [install-info] 6681.47Stv 6691.47StvMAKEINFO Name of makeinfo program. [makeinfo] 6701.47Stv 6711.47Stv=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 6721.47Stv 6731.13SchristosThe include file <bsd.sys.mk> is used by <bsd.prog.mk> and 6741.14Scgd<bsd.lib.mk>. It contains overrides that are used when building 6751.14Scgdthe NetBSD source tree. For instance, if "PARALLEL" is defined by 6761.14Scgdthe program/library Makefile, it includes a set of rules for lex and 6771.14Scgdyacc that allow multiple lex and yacc targets to be built in parallel. 6781.69Ssommerfe 6791.69SsommerfeOther variables of note (incomplete list): 6801.69Ssommerfe 6811.82SlukemWARNS Crank up gcc warning options; the distinct levels are: 6821.82Slukem WARNS=1 6831.82Slukem WARNS=2 6841.82Slukem WARNS=3 6851.69Ssommerfe 6861.69SsommerfeFORMAT_AUDIT If FORMAT_AUDIT is set, and WFORMAT is set and > 1, turn on 6871.69SsommerfeWFORMAT -Wnetbsd-format-audit for extra-stringent format checking. 6881.75Sagc WFORMAT belongs in individual makefiles and/or 6891.75Sagc Makefile.inc files. (set WFORMAT=1 in individual 6901.75Sagc makefiles if a program is not security critical and is 6911.75Sagc doing bizarre things with format strings which would 6921.75Sagc be even uglier if rewritten) FORMAT_AUDIT should go in 6931.75Sagc mk.conf if you're doing format-string auditing. 6941.69Ssommerfe FORMAT_AUDIT may go away in time. 6951.1Scgd 6961.1Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 6971.1Scgd 6981.1ScgdThe include file <bsd.lib.mk> has support for building libraries. It has 6991.16Sjtcthe same eight targets as <bsd.prog.mk>: all, clean, cleandir, depend, 7001.44Serhincludes, install, lint, and tags. Additionally, it has a checkver target 7011.44Serhwhich checks for installed shared object libraries whose version is greater 7021.44Serhthat the version of the source. It has a limited number of suffixes, 7031.16Sjtcconsistent with the current needs of the BSD tree. 7041.1Scgd 7051.1ScgdIt sets/uses the following variables: 7061.10Scgd 7071.10ScgdLIB The name of the library to build. 7081.1Scgd 7091.1ScgdLIBDIR Target directory for libraries. 7101.85Slukem 7111.85SlukemSHLIBDIR Target directory for shared libraries if ${USE_SHLIBDIR} 7121.85Slukem is "yes". 7131.85Slukem 7141.85SlukemUSE_SHLIBDIR If "yes", use ${SHLIBDIR} instead of ${LIBDIR} 7151.85Slukem as the path to install shared libraries to. 7161.101Slukem USE_SHLIBDIR must be defined before <bsd.own.mk> is included. 7171.1Scgd 7181.1ScgdLINTLIBDIR Target directory for lint libraries. 7191.1Scgd 7201.1ScgdLIBGRP Library group. 7211.1Scgd 7221.1ScgdLIBOWN Library owner. 7231.1Scgd 7241.1ScgdLIBMODE Library mode. 7251.1Scgd 7261.1ScgdLDADD Additional loader objects. 7271.1Scgd 7281.15ScgdMAN The manual pages to be installed (use a .1 - .9 suffix). 7291.47Stv 7301.47StvMKLINKLIB If "no", act as "MKPICINSTALL=no MKPROFILE=no". 7311.47Stv Also: 7321.47Stv - don't install the .a libraries 7331.47Stv - don't install _pic.a libraries on PIC systems 7341.47Stv - don't build .a libraries on PIC systems 7351.47Stv - don't install the .so symlink on ELF systems 7361.47Stv I.e, only install the shared library (and the .so.major 7371.47Stv symlink on ELF). 7381.54Ssimonb 7391.54SsimonbMKPICLIB If "no", don't build _pic.a libraries, and build the 7401.54Ssimonb shared object libraries from the .a libraries. A 7411.54Ssimonb symlink is installed in ${DESTDIR}/usr/lib for the 7421.54Ssimonb _pic.a library pointing to the .a library. 7431.44Serh 7441.44SerhNOCHECKVER_<library> 7451.44SerhNOCHECKVER If set, disables checking for installed shared object 7461.44Serh libraries with versions greater than the source. A 7471.44Serh particular library name, without the "lib" prefix, may 7481.44Serh be appended to the variable name to disable the check for 7491.44Serh only that library. 7501.1Scgd 7511.1ScgdSRCS List of source files to build the library. Suffix types 7521.1Scgd .s, .c, and .f are supported. Note, .s files are preferred 7531.1Scgd to .c files of the same name. (This is not the default for 7541.1Scgd versions of make.) 7551.1Scgd 7561.1ScgdThe include file <bsd.lib.mk> includes the file named "../Makefile.inc" 7571.1Scgdif it exists, as well as the include file <bsd.man.mk>. 7581.1Scgd 7591.1ScgdIt has rules for building profiled objects; profiled libraries are 7601.1Scgdbuilt by default. 7611.1Scgd 7621.4ScgdLibraries are ranlib'd when made. 7631.56Ssommerfe 7641.56Ssommerfe=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 7651.56Ssommerfe 7661.56SsommerfeThe include file <bsd.obj.mk> defines targets related to the creation 7671.56Ssommerfeand use of separated object and source directories. 7681.56Ssommerfe 7691.63SsjgIf an environment variable named MAKEOBJDIRPREFIX is set, make(1) uses 7701.63Ssjg${MAKEOBJDIRPREFIX}${.CURDIR} as the name of the object directory if 7711.75Sagcit exists. Otherwise make(1) looks for the existence of a 7721.63Ssjgsubdirectory (or a symlink to a directory) of the source directory 7731.63Ssjginto which built targets should be placed. If an environment variable 7741.63Ssjgnamed MAKEOBJDIR is set, make(1) uses its value as the name of the 7751.63Ssjgobject directory; failing that, make first looks for a subdirectory 7761.63Ssjgnamed "obj.${MACHINE}", and if that doesn't exist, it looks for "obj". 7771.56Ssommerfe 7781.56SsommerfeObject directories are not created automatically by make(1) if they 7791.56Ssommerfedon't exist; you need to run a separate "make obj". (This will happen 7801.56Ssommerfeduring a top-level build if "MKOBJDIRS" is set to a value other than 7811.58Ssommerfe"no"). When the source directory is a subdirectory of ${BSDSRCDIR} -- 7821.58Ssommerfeand this is determined by a simple string prefix comparison -- object 7831.58Ssommerfedirectories are created in a separate object directory tree, and a 7841.58Ssommerfesymlink to the object directory in that tree is created in the source 7851.58Ssommerfedirectory; otherwise, "make obj" assumes that you're not in the main 7861.58Ssommerfesource tree and that it's not safe to use a separate object tree. 7871.56Ssommerfe 7881.56SsommerfeSeveral variables used by <bsd.obj.mk> control exactly what 7891.56Ssommerfedirectories and links get created during a "make obj": 7901.56Ssommerfe 7911.56SsommerfeMAKEOBJDIR If set, this is the component name of the object 7921.56Ssommerfe directory. 7931.56Ssommerfe 7941.56SsommerfeOBJMACHINE If this is set but MAKEOBJDIR is not set, creates 7951.56Ssommerfe object directories or links named "obj.${MACHINE}"; 7961.56Ssommerfe otherwise, just creates ones named "obj". 7971.56Ssommerfe 7981.56SsommerfeUSR_OBJMACHINE If set, and the current directory is a subdirectory of 7991.56Ssommerfe ${BSDSRCDIR}, create object directory in the 8001.56Ssommerfe corresponding subdirectory of ${BSDOBJDIR}.${MACHINE}; 8011.56Ssommerfe otherwise, create it in the corresponding subdirectory 8021.56Ssommerfe of ${BSDOBJDIR} 8031.93Sthorpej 8041.93SthorpejBUILDID If set, the contents of this variable are appended 8051.93Sthorpej to the object directory name. If OBJMACHINE is also 8061.93Sthorpej set, ".${BUILDID}" is added after ".${MACHINE}". 8071.63Ssjg 8081.63Ssjg=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 8091.63Ssjg 8101.63SsjgThe include file <bsd.kernobj.mk> defines variables related to the 8111.63Ssjglocation of kernel sources and object directories. 8121.63Ssjg 8131.63SsjgKERNSRCDIR Is the location of the top of the kernel src. 8141.95Slukem It defaults to ${_SRC_TOP_}/sys 8151.63Ssjg 8161.63SsjgKERNARCHDIR Is the location of the machine dependent kernel 8171.63Ssjg sources. It defaults to arch/${MACHINE} 8181.63Ssjg 8191.63SsjgKERNCONFDIR Is where the configuration files for kernels are 8201.63Ssjg found; default is ${KERNSRCDIR}/${KERNARCHDIR}/conf. 8211.63Ssjg 8221.63SsjgKERNOBJDIR Is the kernel build directory. The kernel GENERIC for 8231.63Ssjg instance will be compiled in ${KERNOBJDIR}/GENERIC. 8241.63Ssjg The default value is 8251.63Ssjg ${MAKEOBJDIRPREFIX}${KERNSRCDIR}/${KERNARCHDIR}/compile 8261.63Ssjg if it exists or the target 'obj' is being made. 8271.63Ssjg Otherwise the default is 8281.63Ssjg ${KERNSRCDIR}/${KERNARCHDIR}/compile. 8291.63Ssjg 8301.63SsjgIt is important that Makefiles (such as those under src/distrib) that 8311.63Ssjgwish to find compiled kernels use bsd.kernobj.mk and ${KERNOBJDIR} 8321.63Ssjgrather than make assumptions about the location of the compiled kernel. 8331.30Sagc 8341.30Sagc=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 835