version 1.26, 2003/07/18 16:30:48 |
version 1.27, 2003/07/29 10:07:16 |
|
|
.\" Toolchain prefix for commands |
.\" Toolchain prefix for commands |
.ds toolprefix nb |
.ds toolprefix nb |
. |
. |
.Dd July 18, 2003 |
.Dd July 29, 2003 |
.Dt BUILDING 8 |
.Dt BUILDING 8 |
.Os NetBSD |
.Os NetBSD |
. |
. |
|
|
.Sy MAKEOBJDIRPREFIX |
.Sy MAKEOBJDIRPREFIX |
to |
to |
.Ar obj . |
.Ar obj . |
|
Unsets |
|
.Sy MAKEOBJDIR . |
. |
. |
.It Fl m Ar mach |
.It Fl m Ar mach |
Set the value of |
Set the value of |
Line 1109 that will place the built object files u |
|
Line 1111 that will place the built object files u |
|
For instance, a setting of |
For instance, a setting of |
.Sy /usr/obj |
.Sy /usr/obj |
will place build-time files under |
will place build-time files under |
.Sy /usr/obj/bin , /usr/obj/lib , |
.Sy /usr/obj/bin , |
|
.Sy /usr/obj/lib , |
|
.Sy /usr/obj/usr.bin , |
and so forth. |
and so forth. |
|
Unsets |
|
.Sy MAKEOBJDIRPREFIX . |
. |
. |
.It Fl o |
.It Fl o |
Set the value of |
Set the value of |
|
|
.Op Ar value |
.Op Ar value |
.Sm on |
.Sm on |
.Xc |
.Xc |
Set the variable |
Set the environment variable |
.Ar var |
.Ar var |
to |
to an optional |
.Ar value |
.Ar value . |
(which is optional). |
This is propagated to the |
|
.Sy \*[toolprefix]make |
|
wrapper. |
. |
. |
.It Fl w Ar wrapper |
.It Fl w Ar wrapper |
Create the \*[toolprefix]make wrapper script (see below) in a custom location, |
Create the |
|
.Sy \*[toolprefix]make |
|
wrapper script (see below) in a custom location, |
specified by |
specified by |
.Ar wrapper . |
.Ar wrapper . |
This allows, for instance, to place the wrapper in |
This allows, for instance, to place the wrapper in |
|
|
.Ar wrapper |
.Ar wrapper |
is the full name of the file, not just a directory name. |
is the full name of the file, not just a directory name. |
. |
. |
|
.It Fl Z Ar var |
|
Unset ("zap") the environment variable |
|
.Ar var . |
|
This is propagated to the |
|
.Sy \*[toolprefix]make |
|
wrapper. |
|
. |
.El |
.El |
. |
. |
.Ss The \*q\*[toolprefix]make-MACHINE\*q wrapper script |
.Ss The \*q\*[toolprefix]make-MACHINE\*q wrapper script |
Line 1207 with several key variables pre-set, incl |
|
Line 1224 with several key variables pre-set, incl |
|
.Sy MACHINE , MACHINE_ARCH , |
.Sy MACHINE , MACHINE_ARCH , |
and |
and |
.Sy TOOLDIR . |
.Sy TOOLDIR . |
|
.Sy build.sh |
|
will also set variables specified with |
|
.Fl V , |
|
and unset variables specified with |
|
.Fl Z . |
|
.Pp |
This script can be symlinked into a directory listed in |
This script can be symlinked into a directory listed in |
.Sy PATH , |
.Sy PATH , |
or called with an absolute path. |
or called with an absolute path. |