bsd.README revision 1.47
11.47Stv# $NetBSD: bsd.README,v 1.47 1999/02/12 15:10:22 tv 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.1Scgdmultiple programs in a single directory. It's a lot easier 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.21Schristos 611.45SlukemThe following variables that control how things are made/installed that 621.47Stvare not set by default. These should not be set by Makefiles; they're for 631.47Stvthe user to define in MAKECONF (see bsd.own.mk, below) or on the make(1) 641.47Stvcommand line: 651.21Schristos 661.45SlukemBUILD If defined, 'make install' checks that the targets in the 671.45Slukem source directories are up-to-date and remakes them if they 681.21Schristos are out of date, instead of blindly trying to install 691.21Schristos out of date or non-existant targets. 701.21Schristos 711.45SlukemUPDATE If defined, 'make install' only installs targets that are 721.45Slukem more recently modified in the source directories that their 731.45Slukem installed counterparts. 741.45Slukem 751.45SlukemMKCATPAGES If "no", don't build or install the catman pages. 761.45Slukem 771.45SlukemMKDOC If "no", don't build or install the documentation. 781.45Slukem 791.47StvMKINFO If "no", don't build or install Info documentation from 801.47Stv Texinfo source files. 811.45Slukem 821.45SlukemMKLINT If "no", don't build or install the lint libraries. 831.45Slukem 841.45SlukemMKMAN If "no", don't build or install the man or catman pages. 851.46Slukem Also acts as "MKCATPAGES=no" 861.45Slukem 871.45SlukemMKNLS If "no", don't build or install the NLS files. 881.45Slukem 891.45SlukemMKOBJ If "no", don't create objdirs. 901.45Slukem 911.45SlukemMKPIC If "no", don't build or install shared libraries. 921.45Slukem 931.45SlukemMKPICINSTALL If "no", don't install the *_pic.a libraries. 941.45Slukem 951.45SlukemMKPROFILE If "no", don't build or install the profiling libraries. 961.45Slukem 971.46SlukemMKSHARE If "no", act as "MKCATPAGES=no MKDOC=no MKMAN=no MKNLS=no". 981.47Stv I.e, don't build documentation, man pages, NLS files, etc. 991.1Scgd 1001.1Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 1011.1Scgd 1021.1ScgdThe include file <sys.mk> has the default rules for all makes, in the BSD 1031.1Scgdenvironment or otherwise. You probably don't want to touch this file. 1041.1Scgd 1051.1Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 1061.1Scgd 1071.1ScgdThe include file <bsd.man.mk> handles installing manual pages and their 1081.1Scgdlinks. 1091.1Scgd 1101.21SchristosIt has a two targets: 1111.1Scgd 1121.1Scgd maninstall: 1131.21Schristos Install the manual page sources and their links. 1141.21Schristos catinstall: 1151.21Schristos Install the preformatted manual pages and their links. 1161.1Scgd 1171.1ScgdIt sets/uses the following variables: 1181.1Scgd 1191.1ScgdMANDIR Base path for manual installation. 1201.1Scgd 1211.1ScgdMANGRP Manual group. 1221.1Scgd 1231.1ScgdMANOWN Manual owner. 1241.1Scgd 1251.1ScgdMANMODE Manual mode. 1261.1Scgd 1271.1ScgdMANSUBDIR Subdirectory under the manual page section, i.e. "/vax" 1281.1Scgd or "/tahoe" for machine specific manual pages. 1291.1Scgd 1301.15ScgdMAN The manual pages to be installed (use a .1 - .9 suffix). 1311.1Scgd 1321.15ScgdMLINKS List of manual page links (using a .1 - .9 suffix). The 1331.1Scgd linked-to file must come first, the linked file second, 1341.1Scgd and there may be multiple pairs. The files are soft-linked. 1351.1Scgd 1361.1ScgdThe include file <bsd.man.mk> includes a file named "../Makefile.inc" if 1371.1Scgdit exists. 1381.1Scgd 1391.1Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 1401.1Scgd 1411.17SthorpejThe include file <bsd.own.mk> contains source tree configuration parameters, 1421.17Sthorpejsuch as the owners, groups, etc. for both manual pages and binaries, and 1431.17Sthorpeja few global "feature configuration" parameters. 1441.1Scgd 1451.1ScgdIt has no targets. 1461.1Scgd 1471.29ScjsTo get system-specific configuration parameters, bsd.own.mk will try to 1481.29Scjsinclude the file specified by the "MAKECONF" variable. If MAKECONF is not 1491.29Scjsset, or no such file exists, the system make configuration file, /etc/mk.conf 1501.29Scjsis included. These files may define any of the variables described below. 1511.17Sthorpej 1521.17Sthorpejbsd.own.mk sets the following variables, if they are not already defined 1531.17Sthorpej(defaults are in brackets): 1541.15Scgd 1551.15ScgdBSDSRCDIR The real path to the system sources, so that 'make obj' 1561.15Scgd will work correctly. [/usr/src] 1571.15Scgd 1581.15ScgdBSDOBJDIR The real path to the system 'obj' tree, so that 'make obj' 1591.15Scgd will work correctly. [/usr/obj] 1601.15Scgd 1611.34SlukemBINGRP Binary group. [wheel] 1621.15Scgd 1631.34SlukemBINOWN Binary owner. [root] 1641.15Scgd 1651.15ScgdBINMODE Binary mode. [555] 1661.15Scgd 1671.15ScgdNONBINMODE Mode for non-executable files. [444] 1681.15Scgd 1691.15ScgdMANDIR Base path for manual installation. [/usr/share/man/cat] 1701.15Scgd 1711.34SlukemMANGRP Manual group. [wheel] 1721.15Scgd 1731.34SlukemMANOWN Manual owner. [root] 1741.15Scgd 1751.15ScgdMANMODE Manual mode. [${NONBINMODE}] 1761.15Scgd 1771.21SchristosMANINSTALL Manual installation type: maninstall, catinstall, or both 1781.21Schristos 1791.15ScgdLIBDIR Base path for library installation. [/usr/lib] 1801.15Scgd 1811.15ScgdLINTLIBDIR Base path for lint(1) library installation. [/usr/libdata/lint] 1821.15Scgd 1831.15ScgdLIBGRP Library group. [${BINGRP}] 1841.15Scgd 1851.15ScgdLIBOWN Library owner. [${BINOWN}] 1861.15Scgd 1871.15ScgdLIBMODE Library mode. [${NONBINMODE}] 1881.15Scgd 1891.15ScgdDOCDIR Base path for system documentation (e.g. PSD, USD, etc.) 1901.15Scgd installation. [/usr/share/doc] 1911.15Scgd 1921.34SlukemDOCGRP Documentation group. [wheel] 1931.15Scgd 1941.34SlukemDOCOWN Documentation owner. [root] 1951.15Scgd 1961.15ScgdDOCMODE Documentation mode. [${NONBINMODE}] 1971.15Scgd 1981.15ScgdNLSDIR Base path for National Language Support files installation. 1991.15Scgd [/usr/share/nls] 2001.1Scgd 2011.34SlukemNLSGRP National Language Support files group. [wheel] 2021.1Scgd 2031.34SlukemNLSOWN National Language Support files owner. [root] 2041.1Scgd 2051.15ScgdNLSMODE National Language Support files mode. [${NONBINMODE}] 2061.1Scgd 2071.32SmikelSTRIPFLAG The flag passed to the install program to cause the binary 2081.1Scgd to be stripped. This is to be used when building your 2091.1Scgd own install script so that the entire system can be made 2101.15Scgd stripped/not-stripped using a single knob. [-s] 2111.1Scgd 2121.2ScgdCOPY The flag passed to the install program to cause the binary 2131.2Scgd to be copied rather than moved. This is to be used when 2141.2Scgd building our own install script so that the entire system 2151.2Scgd can either be installed with copies, or with moves using 2161.15Scgd a single knob. [-c] 2171.15Scgd 2181.17SthorpejAdditionally, the following variables may be set by bsd.own.mk or in a 2191.17Sthorpejmake configuration file to modify the behaviour of the system build 2201.17Sthorpejprocess (default values are in brackets along with comments, if set by 2211.17Sthorpejbsd.own.mk): 2221.15Scgd 2231.15ScgdEXPORTABLE_SYSTEM 2241.15Scgd Do not build /usr/src/domestic, even if it is present. 2251.2Scgd 2261.15ScgdSKEY Compile in support for S/key authentication. [yes, set 2271.15Scgd unconditionally] 2281.15Scgd 2291.15ScgdKERBEROS Compile in support for Kerberos 4 authentication. 2301.15Scgd 2311.15ScgdKERBEROS5 Compile in support for Kerberos 5 authentication. 2321.15Scgd 2331.15ScgdMANZ Compress manual pages at installation time. 2341.15Scgd 2351.15ScgdSYS_INCLUDE Copy or symlink kernel include files into /usr/include. 2361.15Scgd Possible values are "symlinks" or "copies" (which is 2371.15Scgd the same as the variable being unset). 2381.1Scgd 2391.15ScgdNOPROFILE Do not build profiled versions of system libraries 2401.1Scgd 2411.15ScgdNOPIC Do not build PIC versions of system libraries, and 2421.15Scgd do not build shared libraries. [set if ${MACHINE_ARCH} 2431.45Slukem is "sparc64", unset otherwise.] 2441.1Scgd 2451.40SperryNOLINT Do not build lint libraries. 2461.33Sjonathan 2471.38SsimonbOBJECT_FMT Object file format. [set to "ELF" on ports that use 2481.33Sjonathan ELF -- currently if ${MACHINE_ARCH} is "alpha", "mips" 2491.33Sjonathan or "powerpc" or set to "a.out" on other ports]. 2501.33Sjonathan 2511.1Scgd 2521.17Sthorpejbsd.own.mk is generally useful when building your own Makefiles so that 2531.1Scgdthey use the same default owners etc. as the rest of the tree. 2541.1Scgd 2551.1Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 2561.1Scgd 2571.1ScgdThe include file <bsd.prog.mk> handles building programs from one or 2581.1Scgdmore source files, along with their manual pages. It has a limited number 2591.1Scgdof suffixes, consistent with the current needs of the BSD tree. 2601.1Scgd 2611.16SjtcIt has eight targets: 2621.1Scgd 2631.1Scgd all: 2641.1Scgd build the program and its manual page 2651.1Scgd clean: 2661.1Scgd remove the program, any object files and the files a.out, 2671.24Smikel Errs, errs, mklog, and ${PROG}.core. 2681.1Scgd cleandir: 2691.1Scgd remove all of the files removed by the target clean, as 2701.1Scgd well as .depend, tags, and any manual pages. 2711.42Slukem `distclean' is a synonym for `cleandir'. 2721.1Scgd depend: 2731.1Scgd make the dependencies for the source files, and store 2741.1Scgd them in the file .depend. 2751.16Sjtc includes: 2761.16Sjtc install any header files. 2771.1Scgd install: 2781.1Scgd install the program and its manual pages; if the Makefile 2791.1Scgd does not itself define the target install, the targets 2801.1Scgd beforeinstall and afterinstall may also be used to cause 2811.1Scgd actions immediately before and after the install target 2821.1Scgd is executed. 2831.1Scgd lint: 2841.1Scgd run lint on the source files 2851.1Scgd tags: 2861.1Scgd create a tags file for the source files. 2871.1Scgd 2881.1ScgdIt sets/uses the following variables: 2891.1Scgd 2901.1ScgdBINGRP Binary group. 2911.1Scgd 2921.1ScgdBINOWN Binary owner. 2931.1Scgd 2941.1ScgdBINMODE Binary mode. 2951.1Scgd 2961.1ScgdCLEANFILES Additional files to remove for the clean and cleandir targets. 2971.1Scgd 2981.1ScgdCOPTS Additional flags to the compiler when creating C objects. 2991.35Slukem 3001.35SlukemCPPFLAGS Additional flags to the C pre-processor 3011.1Scgd 3021.1ScgdLDADD Additional loader objects. Usually used for libraries. 3031.1Scgd For example, to load with the compatibility and utility 3041.1Scgd libraries, use: 3051.1Scgd 3061.5Sjtc LDADD+=-lutil -lcompat 3071.1Scgd 3081.1ScgdLDFLAGS Additional loader flags. 3091.1Scgd 3101.1ScgdLINKS The list of binary links; should be full pathnames, the 3111.1Scgd linked-to file coming first, followed by the linked 3121.1Scgd file. The files are hard-linked. For example, to link 3131.1Scgd /bin/test and /bin/[, use: 3141.1Scgd 3151.1Scgd LINKS= ${DESTDIR}/bin/test ${DESTDIR}/bin/[ 3161.19Sperry 3171.19SperrySYMLINKS The list of symbolic links; should be full pathnames. 3181.20Sperry Syntax is identical to LINKS. Note that DESTDIR is not 3191.20Sperry automatically included in the link. 3201.1Scgd 3211.15ScgdMAN Manual pages (should end in .1 - .9). If no MAN variable is 3221.8Scgd defined, "MAN=${PROG}.1" is assumed. 3231.1Scgd 3241.1ScgdPROG The name of the program to build. If not supplied, nothing 3251.1Scgd is built. 3261.1Scgd 3271.21SchristosPROGNAME The name that the above program will be installed as, if 3281.21Schristos different from ${PROG}. 3291.21Schristos 3301.37StvSRCS List of source files to build the program. If SRCS is not 3311.1Scgd defined, it's assumed to be ${PROG}.c. 3321.1Scgd 3331.1ScgdDPADD Additional dependencies for the program. Usually used for 3341.1Scgd libraries. For example, to depend on the compatibility and 3351.1Scgd utility libraries use: 3361.1Scgd 3371.5Sjtc DPADD+=${LIBCOMPAT} ${LIBUTIL} 3381.1Scgd 3391.1Scgd The following libraries are predefined for DPADD: 3401.1Scgd 3411.21Schristos LIBCRT0?= ${DESTDIR}/usr/lib/crt0.o 3421.21Schristos LIBC?= ${DESTDIR}/usr/lib/libc.a 3431.21Schristos LIBC_PIC?= ${DESTDIR}/usr/lib/libc_pic.a 3441.21Schristos LIBCOMPAT?= ${DESTDIR}/usr/lib/libcompat.a 3451.21Schristos LIBCRYPT?= ${DESTDIR}/usr/lib/libcrypt.a 3461.21Schristos LIBCURSES?= ${DESTDIR}/usr/lib/libcurses.a 3471.21Schristos LIBDBM?= ${DESTDIR}/usr/lib/libdbm.a 3481.21Schristos LIBDES?= ${DESTDIR}/usr/lib/libdes.a 3491.21Schristos LIBEDIT?= ${DESTDIR}/usr/lib/libedit.a 3501.21Schristos LIBGCC?= ${DESTDIR}/usr/lib/libgcc.a 3511.21Schristos LIBGNUMALLOC?= ${DESTDIR}/usr/lib/libgnumalloc.a 3521.21Schristos LIBKDB?= ${DESTDIR}/usr/lib/libkdb.a 3531.21Schristos LIBKRB?= ${DESTDIR}/usr/lib/libkrb.a 3541.21Schristos LIBKVM?= ${DESTDIR}/usr/lib/libkvm.a 3551.21Schristos LIBL?= ${DESTDIR}/usr/lib/libl.a 3561.21Schristos LIBM?= ${DESTDIR}/usr/lib/libm.a 3571.21Schristos LIBMP?= ${DESTDIR}/usr/lib/libmp.a 3581.25Schristos LIBNTP?= ${DESTDIR}/usr/lib/libntp.a 3591.21Schristos LIBPC?= ${DESTDIR}/usr/lib/libpc.a 3601.21Schristos LIBPCAP?= ${DESTDIR}/usr/lib/libpcap.a 3611.21Schristos LIBPLOT?= ${DESTDIR}/usr/lib/libplot.a 3621.26Skleink LIBPOSIX?= ${DESTDIR}/usr/lib/libposix.a 3631.21Schristos LIBRESOLV?= ${DESTDIR}/usr/lib/libresolv.a 3641.21Schristos LIBRPCSVC?= ${DESTDIR}/usr/lib/librpcsvc.a 3651.21Schristos LIBSKEY?= ${DESTDIR}/usr/lib/libskey.a 3661.21Schristos LIBTERMCAP?= ${DESTDIR}/usr/lib/libtermcap.a 3671.21Schristos LIBTELNET?= ${DESTDIR}/usr/lib/libtelnet.a 3681.21Schristos LIBUTIL?= ${DESTDIR}/usr/lib/libutil.a 3691.21Schristos LIBWRAP?= ${DESTDIR}/usr/lib/libwrap.a 3701.21Schristos LIBY?= ${DESTDIR}/usr/lib/liby.a 3711.21Schristos LIBZ?= ${DESTDIR}/usr/lib/libz.a 3721.21Schristos 3731.1Scgd 3741.1ScgdSHAREDSTRINGS If defined, a new .c.o rule is used that results in shared 3751.12Schristos strings, using xstr(1). Note that this will not work with 3761.12Schristos parallel makes. 3771.1Scgd 3781.1ScgdSTRIP The flag passed to the install program to cause the binary 3791.1Scgd to be stripped. 3801.1Scgd 3811.1ScgdSUBDIR A list of subdirectories that should be built as well. 3821.1Scgd Each of the targets will execute the same target in the 3831.1Scgd subdirectories. 3841.1Scgd 3851.21SchristosSCRIPTS A list of interpreter scripts [file.{sh,csh,pl,awk,...}]. 3861.21Schristos These are installed exactly like programs. 3871.21Schristos 3881.21SchristosSCRIPTSNAME The name that the above program will be installed as, if 3891.21Schristos different from ${SCRIPTS}. These can be further specialized 3901.21Schristos by setting SCRIPTSNAME_<script>. 3911.21Schristos 3921.21SchristosFILES A list of files to install. The installation is controlled 3931.21Schristos by the FILESNAME, FILESOWN, FILESGRP, FILESMODE, FILESDIR 3941.21Schristos variables that can be further specialized by FILES<VAR>_<file> 3951.21Schristos 3961.1ScgdThe include file <bsd.prog.mk> includes the file named "../Makefile.inc" 3971.1Scgdif it exists, as well as the include file <bsd.man.mk>. 3981.1Scgd 3991.1ScgdSome simple examples: 4001.1Scgd 4011.1ScgdTo build foo from foo.c with a manual page foo.1, use: 4021.1Scgd 4031.1Scgd PROG= foo 4041.1Scgd 4051.1Scgd .include <bsd.prog.mk> 4061.1Scgd 4071.1ScgdTo build foo from foo.c with a manual page foo.2, add the line: 4081.1Scgd 4091.9Scgd MAN= foo.2 4101.1Scgd 4111.1ScgdIf foo does not have a manual page at all, add the line: 4121.1Scgd 4131.1Scgd NOMAN= noman 4141.1Scgd 4151.1ScgdIf foo has multiple source files, add the line: 4161.1Scgd 4171.1Scgd SRCS= a.c b.c c.c d.c 4181.1Scgd 4191.1Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 4201.1Scgd 4211.1ScgdThe include file <bsd.subdir.mk> contains the default targets for building 4221.16Sjtcsubdirectories. It has the same eight targets as <bsd.prog.mk>: all, 4231.16Sjtcclean, cleandir, depend, includes, install, lint, and tags. For all of 4241.16Sjtcthe directories listed in the variable SUBDIRS, the specified directory 4251.16Sjtcwill be visited and the target made. There is also a default target which 4261.16Sjtcallows the command "make subdir" where subdir is any directory listed in 4271.16Sjtcthe variable SUBDIRS. 4281.21Schristos 4291.21Schristos=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 4301.21Schristos 4311.23SchristosThe include file <bsd.links.mk> handles the LINKS and SYMLINKS variables 4321.23Schristosand is included from from bsd.lib.mk and bsd.prog.mk. 4331.23Schristos 4341.23Schristos=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 4351.23Schristos 4361.23SchristosThe include file <bsd.files.mk> handles the FILES variables and is included 4371.23Schristosfrom bsd.lib.mk and bsd.prog.mk. 4381.21Schristos 4391.21Schristos=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 4401.21Schristos 4411.29ScjsThe include file <bsd.inc.mk> defines the includes target and uses two 4421.29Scjsvariables: 4431.21Schristos 4441.29ScjsINCS The list of include files 4451.21Schristos 4461.29ScjsINCSDIR The location to install the include files. 4471.39Scgd 4481.39Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 4491.39Scgd 4501.39ScgdThe include file <bsd.kinc.mk> defines the many targets (includes, 4511.39Scgdsubdirectories, etc.), and is used by kernel makefiles to handle 4521.39Scgdinclude file installation. It is intended to be included alone, by 4531.39Scgdkernel Makefiles. Please see bsd.kinc.mk for more details, and keep 4541.39Scgdthe documentation in that file up to date. 4551.13Schristos 4561.13Schristos=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 4571.13Schristos 4581.47StvThe include file <bsd.info.mk> is used to generate and install GNU Info 4591.47Stvdocumentation from respective Texinfo source files. It defines three 4601.47Stvimplicit targets (.txi.info, .texi.info, and .texinfo.info), and uses the 4611.47Stvfollowing variables: 4621.47Stv 4631.47StvTEXINFO List of Texinfo source files. Info documentation will 4641.47Stv consist of single files with the extension replaced by 4651.47Stv .info. 4661.47Stv 4671.47StvINFOFLAGS Flags to pass to makeinfo. [] 4681.47Stv 4691.47StvINSTALL_INFO Name of install-info program. [install-info] 4701.47Stv 4711.47StvMAKEINFO Name of makeinfo program. [makeinfo] 4721.47Stv 4731.47Stv=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 4741.47Stv 4751.13SchristosThe include file <bsd.sys.mk> is used by <bsd.prog.mk> and 4761.14Scgd<bsd.lib.mk>. It contains overrides that are used when building 4771.14Scgdthe NetBSD source tree. For instance, if "PARALLEL" is defined by 4781.14Scgdthe program/library Makefile, it includes a set of rules for lex and 4791.14Scgdyacc that allow multiple lex and yacc targets to be built in parallel. 4801.1Scgd 4811.1Scgd=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 4821.1Scgd 4831.1ScgdThe include file <bsd.lib.mk> has support for building libraries. It has 4841.16Sjtcthe same eight targets as <bsd.prog.mk>: all, clean, cleandir, depend, 4851.44Serhincludes, install, lint, and tags. Additionally, it has a checkver target 4861.44Serhwhich checks for installed shared object libraries whose version is greater 4871.44Serhthat the version of the source. It has a limited number of suffixes, 4881.16Sjtcconsistent with the current needs of the BSD tree. 4891.1Scgd 4901.1ScgdIt sets/uses the following variables: 4911.10Scgd 4921.10ScgdLIB The name of the library to build. 4931.1Scgd 4941.1ScgdLIBDIR Target directory for libraries. 4951.1Scgd 4961.1ScgdLINTLIBDIR Target directory for lint libraries. 4971.1Scgd 4981.1ScgdLIBGRP Library group. 4991.1Scgd 5001.1ScgdLIBOWN Library owner. 5011.1Scgd 5021.1ScgdLIBMODE Library mode. 5031.1Scgd 5041.1ScgdLDADD Additional loader objects. 5051.1Scgd 5061.15ScgdMAN The manual pages to be installed (use a .1 - .9 suffix). 5071.47Stv 5081.47StvMKLINKLIB If "no", act as "MKPICINSTALL=no MKPROFILE=no". 5091.47Stv Also: 5101.47Stv - don't install the .a libraries 5111.47Stv - don't install _pic.a libraries on PIC systems 5121.47Stv - don't build .a libraries on PIC systems 5131.47Stv - don't install the .so symlink on ELF systems 5141.47Stv I.e, only install the shared library (and the .so.major 5151.47Stv symlink on ELF). 5161.44Serh 5171.44SerhNOCHECKVER_<library> 5181.44SerhNOCHECKVER If set, disables checking for installed shared object 5191.44Serh libraries with versions greater than the source. A 5201.44Serh particular library name, without the "lib" prefix, may 5211.44Serh be appended to the variable name to disable the check for 5221.44Serh only that library. 5231.1Scgd 5241.1ScgdSRCS List of source files to build the library. Suffix types 5251.1Scgd .s, .c, and .f are supported. Note, .s files are preferred 5261.1Scgd to .c files of the same name. (This is not the default for 5271.1Scgd versions of make.) 5281.1Scgd 5291.1ScgdThe include file <bsd.lib.mk> includes the file named "../Makefile.inc" 5301.1Scgdif it exists, as well as the include file <bsd.man.mk>. 5311.1Scgd 5321.1ScgdIt has rules for building profiled objects; profiled libraries are 5331.1Scgdbuilt by default. 5341.1Scgd 5351.4ScgdLibraries are ranlib'd when made. 5361.30Sagc 5371.30Sagc=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 538