diff options
author | joe <joe@FreeBSD.org> | 2000-11-10 15:21:37 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2000-11-10 15:21:37 +0000 |
commit | 0797349d74187f5275b90e1975294eb0a93cf6c4 (patch) | |
tree | e4a8d4ca7da1b22df1d8d5668fc1974485fceede /usr.sbin/crunch/crunchgen/crunchgen.1 | |
parent | 449468044456ac7a8de4144457fc1010589735b9 (diff) | |
download | FreeBSD-src-0797349d74187f5275b90e1975294eb0a93cf6c4.zip FreeBSD-src-0797349d74187f5275b90e1975294eb0a93cf6c4.tar.gz |
Define a new special type: buildopts.
This allows build flags to be specified for a particular program from
within the crunch.conf file, eg:
prog ppp
special ppp buildopts -DNOKLDLOAD -DNOINET6 -DNONAT -DNOATM
This adds '-DNOKLDLOAD -DNOINET6 -DNONAT -DNOATM' to make targets
related to ppp when determining which object files to build and
when calculating dependencies and building the targets.
Diffstat (limited to 'usr.sbin/crunch/crunchgen/crunchgen.1')
-rw-r--r-- | usr.sbin/crunch/crunchgen/crunchgen.1 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.sbin/crunch/crunchgen/crunchgen.1 b/usr.sbin/crunch/crunchgen/crunchgen.1 index 4356077..e5ec1f9 100644 --- a/usr.sbin/crunch/crunchgen/crunchgen.1 +++ b/usr.sbin/crunch/crunchgen/crunchgen.1 @@ -197,6 +197,10 @@ and if that is not found, the .Ar srcdir itself becomes the .Ar objdir . +.It Nm special Ar progname Nm buildopts Ar buildopts +Define a set of build options that should be added to make targets +when processing +.Ar progname . .It Nm special Ar progname Nm objs Ar object-file-name ... Set the list of object files for program .Ar progname . @@ -272,11 +276,14 @@ input conf file, named srcdirs /usr/src/bin /usr/src/sbin progs test cp echo sh fsck halt init mount umount myinstall + progs anotherprog ln test [ # test can be invoked via [ ln sh -sh # init invokes the shell with "-sh" in argv[0] special myprog objpaths /homes/leroy/src/myinstall.o # no sources + special anotherprog -DNO_FOO WITHOUT_BAR=YES + libs -lutil -lcrypt .fi .Pp @@ -287,6 +294,10 @@ specified directly with the .Nm special line. .Pp +Additionally when ``anotherprog'' is built the arguments +.Ar -DNO_FOO WITHOUT_BAR=YES +are added to all build targets. +.Pp The crunched binary ``kcopy'' can be built as follows: .Pp .nf |