summaryrefslogtreecommitdiffstats
path: root/usr.sbin/crunch/crunchgen/crunchgen.1
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2000-02-05 10:29:19 +0000
committerluigi <luigi@FreeBSD.org>2000-02-05 10:29:19 +0000
commitde5e1b620a0b99a65cbd75dfc5f1708b5535b8ee (patch)
treec6eaf9d2952a4feb832c089328b9ec53c95cc7fa /usr.sbin/crunch/crunchgen/crunchgen.1
parent1ed4e27f18edf2f6a9610dca3466a4819ecb375f (diff)
downloadFreeBSD-src-de5e1b620a0b99a65cbd75dfc5f1708b5535b8ee.zip
FreeBSD-src-de5e1b620a0b99a65cbd75dfc5f1708b5535b8ee.tar.gz
Add a few features to crunchgen to simplify the use of existing
makefiles (for use with picobsd among other things). See the manpage for details, but: * -h makefile-include-name can be used to specify a file to include in the makefiles generated by crunchgen . This is a good place to specify make variables such as RELEASE_CRUNCH, NOTHIS, NOTHAT and the like. * special progname objvar variable_name in the crunch config file declares a different variable than OBJS to be used to get the list of objects. * crunchgen now looks first for Makefile.<progname> in the current directory to override the makefile in <progname> source dir. This in many cases avoids the need to patch the original makefile if the above two features are still not enough. Approved-By: jordan
Diffstat (limited to 'usr.sbin/crunch/crunchgen/crunchgen.1')
-rw-r--r--usr.sbin/crunch/crunchgen/crunchgen.118
1 files changed, 18 insertions, 0 deletions
diff --git a/usr.sbin/crunch/crunchgen/crunchgen.1 b/usr.sbin/crunch/crunchgen/crunchgen.1
index f01ee2a..0aec659 100644
--- a/usr.sbin/crunch/crunchgen/crunchgen.1
+++ b/usr.sbin/crunch/crunchgen/crunchgen.1
@@ -33,6 +33,7 @@
.Sh SYNOPSIS
.Nm \&crunchgen
.Op Fl fql
+.Op Fl h Ar makefile-header-name
.Op Fl m Ar makefile-name
.Op Fl c Ar c-file-name
.Op Fl e Ar exec-file-name
@@ -89,6 +90,14 @@ The default name is ``<conf-name>''.
Flush cache. Forces the recalculation of cached parameters.
.It Fl l
List names. Lists the names this binary will respond to.
+.It Fl h Ar makefile-header-name
+Set the name of a file to be included at the beginning of the
+Makefiles generated by
+.Nm crunchgen .
+This is useful to define some make variables such as
+.Ar RELEASE_CRUNCH
+or similar, which might affect the behaviour of make and
+are annoying to pass through environment variables.
.It Fl m Ar makefile-name
Set output Makefile name to
.Ar makefile-name .
@@ -179,6 +188,15 @@ This is normally calculated by prepending the
pathname to each file in the
.Nm objs
list.
+.It Nm special Ar progname Nm objvar Ar variable_name
+Sets the name of the Make variable which holds the list of
+object files for program
+.Ar progname .
+This is normally
+.Nm OBJS
+but some Makefiles might like to use other conventions or
+prepend the program's name to the variable, e.g.
+.Nm SSHD_OBJS .
.It Nm special Ar progname Nm keep Ar symbol-name ...
Add specified list of symbols to the keep list for program
.Ar progname .
OpenPOWER on IntegriCloud