11638Srgrimes#	@(#)bsd.README	8.2 (Berkeley) 4/2/94
250476Speter# $FreeBSD: releng/10.3/share/mk/bsd.README 292812 2015-12-28 00:05:31Z ngie $
31638Srgrimes
4115103StrhodesThis is the README file for the "include" files for the FreeBSD
5115103Strhodessource tree.  The files are installed in /usr/share/mk, and are by
6115103Strhodesconvention, named with the suffix ".mk".  These files store several
7115103Strhodesbuild options and should be handled with caution.
83470Srgrimes
9115103StrhodesNote, this file is not intended to replace reading through the .mk
10115103Strhodesfiles for anything tricky.
111638Srgrimes
12115103StrhodesThere are two main types of make include files.  One type is the generally
13115103Strhodesusable make include files, such as bsd.prog.mk and bsd.lib.mk.  The other is
14115103Strhodesthe internal make include files, such as bsd.files.mk and bsd.man.mk, which
15115103Strhodescan not/should not be used directly but are used by the other make include
16115103Strhodesfiles.  In most cases it is only interesting to include bsd.prog.mk or
17115103Strhodesbsd.lib.mk.
18115103Strhodes
19115103Strhodesbsd.cpu.mk		- sets CPU/arch-related variables
20291786Sbdrewerybsd.crunchgen.mk	- building crunched binaries using crunchgen(1)
2123559Swoschbsd.dep.mk		- handle Makefile dependencies
2223559Swoschbsd.doc.mk		- building troff system documents
23115103Strhodesbsd.files.mk		- install of general purpose files
24115103Strhodesbsd.incs.mk		- install of include files
2523559Swoschbsd.info.mk		- building GNU Info hypertext system
26115103Strhodesbsd.init.mk		- initialization for the make include files
2723559Swoschbsd.kmod.mk		- building loadable kernel modules
2823559Swoschbsd.lib.mk		- support for building libraries
2923559Swoschbsd.libnames.mk		- define library names
30115103Strhodesbsd.links.mk		- install of links (sym/hard)
31115103Strhodesbsd.man.mk		- install of manual pages and their links
32115103Strhodesbsd.nls.mk		- build and install of NLS catalogs
3323559Swoschbsd.obj.mk		- creating 'obj' directories and cleaning up
3423559Swoschbsd.own.mk		- define common variables
3523559Swoschbsd.port.mk		- building ports
36115103Strhodesbsd.port.post.mk	- building ports
37115103Strhodesbsd.port.pre.mk		- building ports
3823559Swoschbsd.port.subdir.mk	- targets for building subdirectories for ports
3923559Swoschbsd.prog.mk		- building programs from source files
40152265Shartibsd.snmpmod.mk		- building modules for the SNMP daemon bsnmpd
4123559Swoschbsd.subdir.mk		- targets for building subdirectories
42115103Strhodesbsd.sys.mk		- common settings used for building FreeBSD sources
43264483Sjmmvbsd.test.mk		- building test programs from source files
44115103Strhodessys.mk			- default rules for all makes
4523559Swosch
46115103StrhodesThis file does not document bsd.port*.mk.  They are documented in ports(7).
4723559Swosch
48115103StrhodesSee also make(1), mkdep(1), style.Makefile(5) and `PMake - A
49115103StrhodesTutorial', located in /usr/share/doc/psd/12.make.
501638Srgrimes
51115103Strhodes=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
5223578Swosch
53115103StrhodesRandom things worth knowing about this document:
54115103Strhodes
55115103StrhodesIf appropriate when documenting the variables the default value is
56115103Strhodesindicated using square brackets e.g. [gzip].
57115103StrhodesIn some cases the default value depend on other values (e.g. system
58115103Strhodesarchitecture).  In these cases the most common value is indicated.
59115103Strhodes
60115103StrhodesThis document contains some simple examples of the usage of the BSD make
61115103Strhodesinclude files.  For more examples look at the makefiles in the FreeBSD
62115103Strhodessource tree.
63115103Strhodes
641638Srgrimes=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
651638Srgrimes
661638SrgrimesRANDOM THINGS WORTH KNOWING:
671638Srgrimes
68115103StrhodesThe files are like C-style #include files, and pretty much behave like
691638Srgrimesyou'd expect.  The syntax is slightly different in that a single '.' is
701638Srgrimesused instead of the hash mark, i.e. ".include <bsd.prog.mk>".
711638Srgrimes
721638SrgrimesOne difference that will save you lots of debugging time is that inclusion
731638Srgrimesof the file is normally done at the *end* of the Makefile.  The reason for
741638Srgrimesthis is because .mk files often modify variables and behavior based on the
751638Srgrimesvalues of variables set in the Makefile.  To make this work, remember that
761638Srgrimesthe FIRST target found is the target that is used, i.e. if the Makefile has:
771638Srgrimes
781638Srgrimes	a:
791638Srgrimes		echo a
801638Srgrimes	a:
811638Srgrimes		echo a number two
821638Srgrimes
831638Srgrimesthe command "make a" will echo "a".  To make things confusing, the SECOND
841638Srgrimesvariable assignment is the overriding one, i.e. if the Makefile has:
851638Srgrimes
861638Srgrimes	a=	foo
871638Srgrimes	a=	bar
881638Srgrimes
891638Srgrimes	b:
901638Srgrimes		echo ${a}
911638Srgrimes
921638Srgrimesthe command "make b" will echo "bar".  This is for compatibility with the
931638Srgrimesway the V7 make behaved.
941638Srgrimes
951638SrgrimesIt's fairly difficult to make the BSD .mk files work when you're building
96208420Smaximmultiple programs in a single directory.  It's a lot easier to split up
97208420Smaximthe programs than to deal with the problem.  Most of the agony comes from
98208420Smaximmaking the "obj" directory stuff work right, not because we switch to a new
99208420Smaximversion of make.  So, don't get mad at us, figure out a better way to handle
100208420Smaximmultiple architectures so we can quit using the symbolic link stuff.
101208417Smaxim(Imake doesn't count.)
1021638Srgrimes
1031638SrgrimesThe file .depend in the source directory is expected to contain dependencies
1041638Srgrimesfor the source files.  This file is read automatically by make after reading
1051638Srgrimesthe Makefile.
1061638Srgrimes
1071638SrgrimesThe variable DESTDIR works as before.  It's not set anywhere but will change
1081638Srgrimesthe tree where the file gets installed.
1091638Srgrimes
1101638SrgrimesThe profiled libraries are no longer built in a different directory than
1111638Srgrimesthe regular libraries.  A new suffix, ".po", is used to denote a profiled
1121638Srgrimesobject.
1131638Srgrimes
1141638Srgrimes=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
1151638Srgrimes
1161638SrgrimesThe include file <sys.mk> has the default rules for all makes, in the BSD
1171638Srgrimesenvironment or otherwise.  You probably don't want to touch this file.
1181638Srgrimes
1191638Srgrimes=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
1201638Srgrimes
1211638SrgrimesThe include file <bsd.man.mk> handles installing manual pages and their
1221638Srgrimeslinks.
1231638Srgrimes
12483075SruIt has three targets:
1251638Srgrimes
12683075Sru	all-man:
12783075Sru		build manual pages.
1281638Srgrimes	maninstall:
12983075Sru		install the manual pages and their links.
13083075Sru	manlint:
13183075Sru		verify the validity of manual pages.
1321638Srgrimes
1331638SrgrimesIt sets/uses the following variables:
1341638Srgrimes
1351638SrgrimesMANDIR		Base path for manual installation.
1361638Srgrimes
1371638SrgrimesMANGRP		Manual group.
1381638Srgrimes
1391638SrgrimesMANOWN		Manual owner.
1401638Srgrimes
1411638SrgrimesMANMODE		Manual mode.
1421638Srgrimes
1431638SrgrimesMANSUBDIR	Subdirectory under the manual page section, i.e. "/vax"
1441638Srgrimes		or "/tahoe" for machine specific manual pages.
1451638Srgrimes
14674942SruMAN		The manual pages to be installed (use a .1 - .9 suffix).
1471638Srgrimes
14858494SruMLINKS		List of manual page links (using a .1 - .9 suffix).  The
1491638Srgrimes		linked-to file must come first, the linked file second,
1501638Srgrimes		and there may be multiple pairs.  The files are soft-linked.
1511638Srgrimes
15274942SruThe include file <bsd.man.mk> includes a file named "../Makefile.inc" if
15374942Sruit exists.
1541638Srgrimes
1551638Srgrimes=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
1561638Srgrimes
1571638SrgrimesThe include file <bsd.own.mk> contains the owners, groups, etc. for both
1581638Srgrimesmanual pages and binaries.
1591638Srgrimes
1601638SrgrimesIt has no targets.
1611638Srgrimes
1621638SrgrimesIt sets/uses the following variables:
1631638Srgrimes
1641638SrgrimesBINGRP		Binary group.
1651638Srgrimes
1661638SrgrimesBINOWN		Binary owner.
1671638Srgrimes
1681638SrgrimesBINMODE		Binary mode.
1691638Srgrimes
1701638SrgrimesMANDIR		Base path for manual installation.
1711638Srgrimes
1721638SrgrimesMANGRP		Manual group.
1731638Srgrimes
1741638SrgrimesMANOWN		Manual owner.
1751638Srgrimes
1761638SrgrimesMANMODE		Manual mode.
1771638Srgrimes
1781638SrgrimesThis file is generally useful when building your own Makefiles so that
1791638Srgrimesthey use the same default owners etc. as the rest of the tree.
1801638Srgrimes
1811638Srgrimes=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
1821638Srgrimes
1831638SrgrimesThe include file <bsd.prog.mk> handles building programs from one or
1841638Srgrimesmore source files, along with their manual pages.  It has a limited number
1851638Srgrimesof suffixes, consistent with the current needs of the BSD tree.
1861638Srgrimes
1871638SrgrimesIt has seven targets:
1881638Srgrimes
1891638Srgrimes	all:
1901638Srgrimes		build the program and its manual page
1911638Srgrimes	clean:
192159721Syar		remove the program and any object files.
1931638Srgrimes	cleandir:
1941638Srgrimes		remove all of the files removed by the target clean, as
1951638Srgrimes		well as .depend, tags, and any manual pages.
1961638Srgrimes	depend:
1971638Srgrimes		make the dependencies for the source files, and store
1981638Srgrimes		them in the file .depend.
1991638Srgrimes	install:
2001638Srgrimes		install the program and its manual pages; if the Makefile
2011638Srgrimes		does not itself define the target install, the targets
2021638Srgrimes		beforeinstall and afterinstall may also be used to cause
2031638Srgrimes		actions immediately before and after the install target
2041638Srgrimes		is executed.
2051638Srgrimes	lint:
2061638Srgrimes		run lint on the source files
2071638Srgrimes	tags:
2081638Srgrimes		create a tags file for the source files.
2091638Srgrimes
2101638SrgrimesIt sets/uses the following variables:
2111638Srgrimes
2121638SrgrimesBINGRP		Binary group.
2131638Srgrimes
2141638SrgrimesBINOWN		Binary owner.
2151638Srgrimes
2161638SrgrimesBINMODE		Binary mode.
2171638Srgrimes
21816437SphkCLEANFILES	Additional files to remove and
21916437SphkCLEANDIRS	additional directories to remove during clean and cleandir
22016437Sphk		targets.  "rm -f" and "rm -rf" used respectively.
2211638Srgrimes
222133653SruCFLAGS		Flags to the compiler when creating C objects.
2231638Srgrimes
22488055SruFILES		A list of non-executable files.
22588055Sru		The installation is controlled by the FILESNAME, FILESOWN,
22688055Sru		FILESGRP, FILESMODE, FILESDIR variables that can be
22788055Sru		further specialized by FILES<VAR>_<file>.
22888055Sru
2291638SrgrimesLDADD		Additional loader objects.  Usually used for libraries.
2301638Srgrimes		For example, to load with the compatibility and utility
2311638Srgrimes		libraries, use:
2321638Srgrimes
233235928Smarcel			LDADD=-lutil -lcompat
2341638Srgrimes
2351638SrgrimesLDFLAGS		Additional loader flags.
2361638Srgrimes
2371638SrgrimesLINKS		The list of binary links; should be full pathnames, the
2381638Srgrimes		linked-to file coming first, followed by the linked
2391638Srgrimes		file.  The files are hard-linked.  For example, to link
2401638Srgrimes		/bin/test and /bin/[, use:
2411638Srgrimes
2421638Srgrimes			LINKS=	${DESTDIR}/bin/test ${DESTDIR}/bin/[
2431638Srgrimes
24474942SruMAN		Manual pages (should end in .1 - .9).  If no MAN variable
24574942Sru		is defined, "MAN=${PROG}.1" is assumed.
2461638Srgrimes
2471638SrgrimesPROG		The name of the program to build.  If not supplied, nothing
2481638Srgrimes		is built.
2491638Srgrimes
25094424SruPROG_CXX	If defined, the name of the program to build.  Also
25194424Sru		causes <bsd.prog.mk> to link the program with the
25294424Sru		standard C++ library.  PROG_CXX overrides the value
25394424Sru		of PROG if PROG is also set.
25494424Sru
255289052SbdreweryPROGS		When used with <bsd.progs.mk>, allow building multiple
256289052SbdreweryPROGS_CXX	PROG and PROGS_CXX in one Makefile.  To define
257289052Sbdrewery		individual variables for each program the VAR.prog
258289052Sbdrewery		syntax should be used.  For example:
259289052Sbdrewery
260289052Sbdrewery		PROGS=		foo bar
261289052Sbdrewery		SRCS.foo=	foo_src.c
262289052Sbdrewery		LDADD.foo=	-lutil
263289052Sbdrewery		SRCS.bar=	bar_src.c
264289052Sbdrewery
265289052Sbdrewery		The supported variables are BINDIR BINGRP BINMODE BINOWN
266289052Sbdrewery		CFLAGS CPPFLAGS CXXFLAGS DPADD DPLIBS DPSRCS LDADD
267289052Sbdrewery		LDFLAGS MAN MLINKS PROGNAME SRCS.
268289052Sbdrewery
26975083SruPROGNAME	The name that the above program will be installed as, if
27075083Sru		different from ${PROG}.
27175083Sru
27253965SmharoSRCS		List of source files to build the program.  If SRCS is not
27394424Sru		defined, it's assumed to be ${PROG}.c or, if PROG_CXX is
27494424Sru		defined, ${PROG_CXX}.cc.
2751638Srgrimes
2761638SrgrimesDPADD		Additional dependencies for the program.  Usually used for
2771638Srgrimes		libraries.  For example, to depend on the compatibility and
2781638Srgrimes		utility libraries use:
2791638Srgrimes
280235928Smarcel			DPADD=${LIBCOMPAT} ${LIBUTIL}
2811638Srgrimes
28214701Sbde		There is a predefined identifier for each (non-profiled,
28314701Sbde		non-shared) library and object.  Library file names are
28414701Sbde		transformed to identifiers by removing the extension and
28514701Sbde		converting to upper case.
2861638Srgrimes
28714701Sbde		There are no special identifiers for profiled or shared
28814701Sbde		libraries or objects.  The identifiers for the standard
28914701Sbde		libraries are used in DPADD.  This works correctly iff all
29014701Sbde		the libraries are built at the same time.  Unfortunately,
29114701Sbde		it causes unnecessary relinks to shared libraries when
29214701Sbde		only the static libraries have changed.  Dependencies on
29314701Sbde		shared libraries should be only on the library version
29414701Sbde		numbers.
2951638Srgrimes
2961638SrgrimesSTRIP		The flag passed to the install program to cause the binary
297125493Sru		to be stripped.  This is to be used when building your
298125493Sru		own install script so that the entire system can be made
299125493Sru		stripped/not-stripped using a single nob.
3001638Srgrimes
3011638SrgrimesSUBDIR		A list of subdirectories that should be built as well.
3021638Srgrimes		Each of the targets will execute the same target in the
3031638Srgrimes		subdirectories.
3041638Srgrimes
30575284SruSCRIPTS		A list of interpreter scripts [file.{sh,csh,pl,awk,...}].
30675284Sru		The installation is controlled by the SCRIPTSNAME, SCRIPTSOWN,
30775284Sru		SCRIPTSGRP, SCRIPTSMODE, SCRIPTSDIR variables that can be
30875284Sru		further specialized by SCRIPTS<VAR>_<script>.
30975284Sru
31074942SruThe include file <bsd.prog.mk> includes the file named "../Makefile.inc"
31174942Sruif it exists, as well as the include file <bsd.man.mk>.
3121638Srgrimes
3131638SrgrimesSome simple examples:
3141638Srgrimes
3151638SrgrimesTo build foo from foo.c with a manual page foo.1, use:
3161638Srgrimes
3171638Srgrimes	PROG=	foo
3181638Srgrimes
3191638Srgrimes	.include <bsd.prog.mk>
3201638Srgrimes
3211638SrgrimesTo build foo from foo.c with a manual page foo.2, add the line:
3221638Srgrimes
323156743Sru	MAN=	foo.2
3241638Srgrimes
3251638SrgrimesIf foo does not have a manual page at all, add the line:
3261638Srgrimes
327276486Sngie	MAN=
3281638Srgrimes
3291638SrgrimesIf foo has multiple source files, add the line:
3301638Srgrimes
3311638Srgrimes	SRCS=	a.c b.c c.c d.c
3321638Srgrimes
3331638Srgrimes=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
3341638Srgrimes
3351638SrgrimesThe include file <bsd.subdir.mk> contains the default targets for building
3361638Srgrimessubdirectories.  It has the same seven targets as <bsd.prog.mk>: all, clean,
3371638Srgrimescleandir, depend, install, lint, and tags.  For all of the directories
3381638Srgrimeslisted in the variable SUBDIRS, the specified directory will be visited
3391638Srgrimesand the target made.  There is also a default target which allows the
3401638Srgrimescommand "make subdir" where subdir is any directory listed in the variable
3411638SrgrimesSUBDIRS.
3421638Srgrimes
3431638Srgrimes=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
3441638Srgrimes
3451638SrgrimesThe include file <bsd.lib.mk> has support for building libraries.  It has
3461638Srgrimesthe same seven targets as <bsd.prog.mk>: all, clean, cleandir, depend,
3471638Srgrimesinstall, lint, and tags.  It has a limited number of suffixes, consistent
3481638Srgrimeswith the current needs of the BSD tree.
3491638Srgrimes
3501638SrgrimesIt sets/uses the following variables:
3511638Srgrimes
352281056SbdreweryLIB		The name of the library to build.
353281056Sbdrewery
354281056SbdreweryLIB_CXX		The name of the library to build. It also causes
355281056Sbdrewery		<bsd.lib.mk> to link the library with the
356281056Sbdrewery		standard C++ library.  LIB_CXX overrides the value
357281056Sbdrewery		of LIB if LIB is also set.
358281056Sbdrewery
3591638SrgrimesLIBDIR		Target directory for libraries.
3601638Srgrimes
3611638SrgrimesLINTLIBDIR	Target directory for lint libraries.
3621638Srgrimes
3631638SrgrimesLIBGRP		Library group.
3641638Srgrimes
3651638SrgrimesLIBOWN		Library owner.
3661638Srgrimes
3671638SrgrimesLIBMODE		Library mode.
3681638Srgrimes
3691638SrgrimesLDADD		Additional loader objects.
3701638Srgrimes
37174942SruMAN		The manual pages to be installed (use a .1 - .9 suffix).
3721638Srgrimes
3731638SrgrimesSRCS		List of source files to build the library.  Suffix types
3741638Srgrimes		.s, .c, and .f are supported.  Note, .s files are preferred
3751638Srgrimes		to .c files of the same name.  (This is not the default for
3761638Srgrimes		versions of make.)
3771638Srgrimes
378235122SjlhSHLIB_LDSCRIPT	Template file to generate shared library linker script.
379235122Sjlh		Unless used, a simple symlink is created to the real
380235122Sjlh		shared object.
381235122Sjlh
382245561SbrooksLIBRARIES_ONLY	Do not build or install files other than the library.
383245561Sbrooks
38474942SruThe include file <bsd.lib.mk> includes the file named "../Makefile.inc"
38574942Sruif it exists, as well as the include file <bsd.man.mk>.
3861638Srgrimes
3871638SrgrimesIt has rules for building profiled objects; profiled libraries are
3881638Srgrimesbuilt by default.
3891638Srgrimes
3901638SrgrimesLibraries are ranlib'd before installation.
391264483Sjmmv
392264483Sjmmv=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
393264483Sjmmv
394264483SjmmvThe include file <bsd.test.mk> handles building one or more test programs
395264483Sjmmvintended to be used in the FreeBSD Test Suite under /usr/tests/.
396264483Sjmmv
397264483SjmmvIt has seven targets:
398264483Sjmmv
399264483Sjmmv	all:
400264483Sjmmv		build the test programs.
401264483Sjmmv	clean:
402264483Sjmmv		remove the test programs and any object files.
403264483Sjmmv	cleandir:
404264483Sjmmv		remove all of the files removed by the target clean, as
405264483Sjmmv		well as .depend and tags.
406264483Sjmmv	depend:
407264483Sjmmv		make the dependencies for the source files, and store
408264483Sjmmv		them in the file .depend.
409264483Sjmmv	install:
410264483Sjmmv                install the test programs and their data files; if the
411264483Sjmmv                Makefile does not itself define the target install, the
412264483Sjmmv                targets beforeinstall and afterinstall may also be used
413264483Sjmmv                to cause actions immediately before and after the
414264483Sjmmv                install target is executed.
415264483Sjmmv	lint:
416264483Sjmmv		run lint on the source files.
417264483Sjmmv	tags:
418264483Sjmmv		create a tags file for the source files.
419264483Sjmmv	test:
420264483Sjmmv		runs the test programs from the object directory; if the
421264483Sjmmv		Makefile does not itself define the target test, the
422264483Sjmmv		targets beforetest and aftertest may also be used to
423264483Sjmmv		cause actions immediately before and after the test
424264483Sjmmv		target is executed.
425264483Sjmmv
426264483SjmmvIt sets/uses the following variables, among many others:
427264483Sjmmv
428292278SngieTESTSBASE	Installation prefix for tests. Defaults to /usr/tests
429292278Sngie
430292278SngieTESTSDIR	Path to the installed tests.  Must be a subdirectory of
431264483Sjmmv		TESTSBASE and the subpath should match the relative
432264483Sjmmv		location of the tests within the src tree.
433264483Sjmmv
434292278Sngie		The value of TESTSDIR defaults to
435292278Sngie		${TESTSBASE}/${RELDIR:H} , e.g. /usr/tests/bin/ls when
436292278Sngie		included from bin/ls/tests .
437292278Sngie
438264483SjmmvKYUAFILE	If 'auto' (the default), generate a Kyuafile out of the
439264483Sjmmv		test programs defined in the Makefile.  If 'yes', then a
440264483Sjmmv		manually-crafted Kyuafile must be supplied with the
441264483Sjmmv		sources.  If 'no', no Kyuafile is installed (useful for
442264483Sjmmv		subdirectories providing helper programs or data files
443264483Sjmmv		only).
444264483Sjmmv
445292812SngieLOCALBASE	The --prefix for the kyua package.
446292812Sngie
447292812Sngie		The value of LOCALBASE defaults to /usr/local .
448292812Sngie
449264483SjmmvATF_TESTS_C	The names of the ATF C test programs to build.
450264483Sjmmv
451264483SjmmvATF_TESTS_CXX	The names of the ATF C++ test programs to build.
452264483Sjmmv
453264483SjmmvATF_TESTS_SH	The names of the ATF sh test programs to build.
454264483Sjmmv
455264483SjmmvPLAIN_TESTS_C	The names of the plain (legacy) programs to build.
456264483Sjmmv
457264483SjmmvPLAIN_TESTS_CXX	The names of the plain (legacy) test programs to build.
458264483Sjmmv
459264483SjmmvPLAIN_TESTS_SH	The names of the plain (legacy) test programs to build.
460264483Sjmmv
461264483SjmmvTAP_PERL_INTERPRETER
462264483Sjmmv		Path to the Perl interpreter to be used for
463264483Sjmmv		TAP-compliant test programs that are written in Perl.
464264483Sjmmv		Refer to TAP_TESTS_PERL for details.
465264483Sjmmv
466264483SjmmvTAP_TESTS_C	The names of the TAP-compliant C test programs to build.
467264483Sjmmv
468264483SjmmvTAP_TESTS_CXX	The names of the TAP-compliant C++ test programs to
469264483Sjmmv		build.
470264483Sjmmv
471264483SjmmvTAP_TESTS_PERL	The names of the TAP-compliant Perl test programs to
472264483Sjmmv		build.  The corresponding source files should end with
473264483Sjmmv		the .pl extension; the test program is marked as
474264483Sjmmv		requiring Perl; and TAP_PERL_INTERPRETER is used in the
475264483Sjmmv		built scripts as the interpreter of choice.
476264483Sjmmv
477264483SjmmvTAP_TESTS_SH	The names of the TAP-compliant sh test programs to
478264483Sjmmv		build.
479264483Sjmmv
480264483SjmmvTESTS_SUBDIRS	List of subdirectories containing tests into which to
481264483Sjmmv		recurse.  Differs from SUBDIR in that these directories
482264483Sjmmv		get registered into the automatically-generated
483264483Sjmmv		Kyuafile (if any).
484264483Sjmmv
485264483SjmmvNOT_FOR_TEST_SUITE
486264483Sjmmv		If defined, none of the built test programs get
487264483Sjmmv		installed under /usr/tests/ and no Kyuafile is
488264483Sjmmv		automatically generated.  Should not be used within the
489264483Sjmmv		FreeBSD source tree but is provided for the benefit of
490264483Sjmmv		third-parties.
491264483Sjmmv
492264483SjmmvThe actual building of the test programs is performed by <bsd.prog.mk>.
493264483SjmmvPlease see the documentation above for this other file for additional
494264483Sjmmvdetails on the behavior of <bsd.test.mk>.
495