Changeset View
Changeset View
Standalone View
Standalone View
head/share/mk/bsd.README
Show First 20 Lines • Show All 373 Lines • ▼ Show 20 Lines | |||||
LINKGRP Group of links created with LINKS [${BINGRP}]. | LINKGRP Group of links created with LINKS [${BINGRP}]. | ||||
LINKMODE Mode of links created with LINKS [${BINMODE}]. | LINKMODE Mode of links created with LINKS [${BINMODE}]. | ||||
MAN Manual pages. If no MAN variable is defined, | MAN Manual pages. If no MAN variable is defined, | ||||
"MAN=${PROG}.1" is assumed. See bsd.man.mk for more details. | "MAN=${PROG}.1" is assumed. See bsd.man.mk for more details. | ||||
NEED_COMPAT Build and link targeting a compatability ABI or fail if it | |||||
is not available. Supported values are "32", "soft", and | |||||
"any" being a wildcard. | |||||
PROG The name of the program to build. If not supplied, nothing | PROG The name of the program to build. If not supplied, nothing | ||||
is built. | is built. | ||||
PROGNAME The name that the above program will be installed as, if | PROGNAME The name that the above program will be installed as, if | ||||
different from ${PROG}. | different from ${PROG}. | ||||
PROG_CXX If defined, the name of the program to build. Also | PROG_CXX If defined, the name of the program to build. Also | ||||
causes <bsd.prog.mk> to link the program with the | causes <bsd.prog.mk> to link the program with the | ||||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | STRIP The flag passed to the install program to cause the binary | ||||
to be stripped. This is to be used when building your | to be stripped. This is to be used when building your | ||||
own install script so that the entire system can be made | own install script so that the entire system can be made | ||||
stripped/not-stripped using a single nob. | stripped/not-stripped using a single nob. | ||||
SUBDIR A list of subdirectories that should be built as well. | SUBDIR A list of subdirectories that should be built as well. | ||||
Each of the targets will execute the same target in the | Each of the targets will execute the same target in the | ||||
subdirectories. | subdirectories. | ||||
WANT_COMPAT Similar to NEED_COMPAT, but build with the base ABI if | |||||
the specified ABI is not available. | |||||
The include file <bsd.prog.mk> includes the file named "../Makefile.inc" | The include file <bsd.prog.mk> includes the file named "../Makefile.inc" | ||||
if it exists, as well as the include file <bsd.man.mk>. | if it exists, as well as the include file <bsd.man.mk>. | ||||
Some simple examples: | Some simple examples: | ||||
To build foo from foo.c with a manual page foo.1, use: | To build foo from foo.c with a manual page foo.1, use: | ||||
PROG= foo | PROG= foo | ||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> | ||||
To build foo from foo.c with a manual page foo.2, add the line: | To build foo from foo.c with a manual page foo.2, add the line: | ||||
MAN= foo.2 | MAN= foo.2 | ||||
If foo does not have a manual page at all, add the line: | If foo does not have a manual page at all, add the line: | ||||
MAN= | MAN= | ||||
If foo has multiple source files, add the line: | If foo has multiple source files, add the line: | ||||
SRCS= a.c b.c c.c d.c | SRCS= a.c b.c c.c d.c | ||||
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | |||||
The include file, <bsd.compat.mk>, allows programs (built with | |||||
<bsd.prog.mk>) to be built for one the ABI(s) supported by the | |||||
top-level Makefile.libcompat. It requires that <bsd.prog.mk> also be | |||||
included. | |||||
NEED_COMPAT Build and link targeting a compatibility ABI or fail if it | |||||
is not available. Supported values are "32", "soft", and | |||||
"any" being a wildcard. | |||||
WANT_COMPAT Similar to NEED_COMPAT, but build with the base ABI if | |||||
the specified ABI is not available. | |||||
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | ||||
The include file, <bsd.snmpmod.mk>, handles building MIB modules for bsnmpd | The include file, <bsd.snmpmod.mk>, handles building MIB modules for bsnmpd | ||||
from one or more source files, along with their manual pages. It has a | from one or more source files, along with their manual pages. It has a | ||||
limited number of suffixes, consistent with the current needs of the BSD | limited number of suffixes, consistent with the current needs of the BSD | ||||
tree. | tree. | ||||
▲ Show 20 Lines • Show All 259 Lines • Show Last 20 Lines |