diff options
author | luigi <luigi@FreeBSD.org> | 2000-11-30 21:14:54 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2000-11-30 21:14:54 +0000 |
commit | ddef5da232a1a6e5c45ac581986e45f400cccfc1 (patch) | |
tree | c166261dd80c53464dd631c7a4649815c8f465ff /usr.sbin/crunch/crunchgen/crunchgen.1 | |
parent | bc8bc2bb756da863c7147b27a756b6a0bef9849f (diff) | |
download | FreeBSD-src-ddef5da232a1a6e5c45ac581986e45f400cccfc1.zip FreeBSD-src-ddef5da232a1a6e5c45ac581986e45f400cccfc1.tar.gz |
Make crunchgen aware of obj directories. Formerly it had
/usr/obj hardwired in the code, now you can override it
with a command line option or MAKEOBJDIRPREFIX env. variable.
The above is useful to build picobsd-specific objects in some other
place than /usr/obj
While at it, fix documentation and change a few sprintf -> snprintf.
Diffstat (limited to 'usr.sbin/crunch/crunchgen/crunchgen.1')
-rw-r--r-- | usr.sbin/crunch/crunchgen/crunchgen.1 | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/usr.sbin/crunch/crunchgen/crunchgen.1 b/usr.sbin/crunch/crunchgen/crunchgen.1 index 4235707..070d41c 100644 --- a/usr.sbin/crunch/crunchgen/crunchgen.1 +++ b/usr.sbin/crunch/crunchgen/crunchgen.1 @@ -35,6 +35,7 @@ .Op Fl foql .Op Fl h Ar makefile-header-name .Op Fl m Ar makefile-name +.Op Fl p Ar obj-prefix .Op Fl c Ar c-file-name .Op Fl e Ar exec-file-name .Op Ar conf-file @@ -145,6 +146,16 @@ The default name is Add .Dq Li make obj rules to each program make target. +.It Fl p Ar obj-prefix +Set the pathname to be prepended to the +.Dq srcdir +when computing the +.Dq objdir . +If this option is not present, then the prefix used +is the content of the +.Dq MAKEOBJDIRPREFIX +environment variable, or +.Dq /usr/obj . .It Fl q Quiet operation. Status messages are suppressed. @@ -224,11 +235,17 @@ Set the .Dq obj directory for .Ar progname . -This is normally calculated by looking for a directory named -.Pa obj -under the -.Ic srcdir , -and if that is not found, the +The +.Dq obj +directory is normally calculated by looking for a directory +whose name is that of the source directory prepended by +one of the following components, in order of priority: +the -p argument passed to the command line; or, +the value of the +.Dq MAKEOBJDIRPREFIX +environment variable, or +.Dq /usr/obj . +If the directory is not found, the .Ic srcdir itself becomes the .Ic objdir . |