-c c-file-name |
| Set output C file name to c-file-name. The default name is <conf-name>.c. |
-e exec-file-name |
| Set crunched binary executable file name to exec-file-name. The default name is <conf-name>. |
-f | Flush cache. Forces the recalculation of cached parameters. |
-l | List names. Lists the names this binary will respond to. |
-h makefile-header-name |
| Set the name of a file to be included at the beginning of the Makefile s generated by crunchgen. This is useful to define some make variables such as RELEASE_CRUNCH or similar, which might affect the behaviour of make(1) and are annoying to pass through environment variables. |
-m makefile-name |
| Set output Makefile name to makefile-name. The default name is <conf-name>.mk. |
-o | Add "make obj" rules to each program make target. |
-p obj-prefix |
| Set the pathname to be prepended to the srcdir when computing the objdir. If this option is not present, then the prefix used is the content of the MAKEOBJDIRPREFIX environment variable, or /usr/obj. |
-q | Quiet operation. Status messages are suppressed. |
|
To handle specialized situations, such as when the source is not available or not built via a conventional Makefile, the following special commands can be used to set crunchgen parameters for a component program.
special progname srcdir pathname |
| Set the source directory for progname. This is normally calculated by searching the specified srcdirs for a directory named progname. |
special progname objdir pathname |
| Set the obj directory for progname. The 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 MAKEOBJDIRPREFIX environment variable, or /usr/obj. If the directory is not found, the srcdir itself becomes the objdir. |
special progname buildopts buildopts |
| Define a set of build options that should be added to make(1) targets in addition to those specified using buildopts when processing progname. |
special progname objs object-file-name ... |
| Set the list of object files for program progname. This is normally calculated by constructing a temporary makefile that includes "srcdir / Makefile" and outputs the value of $(OBJS). |
special progname objpaths full-pathname-to-object-file ... |
| Sets the pathnames of the object files for program progname. This is normally calculated by prepending the objdir pathname to each file in the objs list. |
special progname objvar variable_name |
| Sets the name of the make(1) variable which holds the list of object files for program progname. This is normally OBJS but some Makefile s might like to use other conventions or prepend the programs name to the variable, e.g. SSHD_OBJS. |
special progname lib library-name ... |
| Specifies libraries to be linked with object files to produce progname .lo. This can be useful with libraries which redefine routines in the standard libraries, or poorly written libraries which reference symbols in the object files. |
special progname keep symbol-name ... |
| Add specified list of symbols to the keep list for program progname. An underscore (_) is prepended to each symbol and it becomes the argument to a -k option for the crunchide(1) phase. This option is to be used as a last resort as its use can cause a symbol conflict, however in certain instances it may be the only way to have a symbol resolve. |
special progname ident identifier |
| Set the Makefile / C identifier for progname. This is normally generated from a progname, mapping - to _ and ignoring all other non-identifier characters. This leads to programs named "foo.bar" and "foobar" to map to the same identifier. |
|