-I
dir
cpp
program via the same -I
option.
When -r
option is in effect (either explicitely passed on the
command line, or configured by default during the build process), an
implicit -I
directive pointing to the directory of the input file
is appended to the end of the list of searched directories.
-D
macro[=value]1
or value if given,
in the same way as a #define
directive would do it. This option is
passed as-is to the cpp
program.
If you are invoking genom from the shell, you may have to use the shell quoting character to protect shell's special characters such as spaces.
An implicit macro __GENOM__
is always defined and contains the
version of the genom program. This can be used to divert some lines in
source files meant to be included by other tools that genom, and that
contain syntax that genom does not understand.
-E
cpp
is sent to the standard output. genom exits with a
non-zero status if there are any preprocessing errors, such as a
non-existent included file.
-n
--parse-only
-N
--dump
-l
--list
By default, the standard templates directory is searched, but any
-t
option will be taken into account.
-t
path--tmpldir=
pathThis option is useful only for templates not installed in the genom
standard directories, i.e. share/genom/<version>/templates
or
share/genom/site-templates
.
path is searched for files matching dir/*/template.tcl
,
where *
is the actual template name.
-s
dir--sysdir=
dir
share/genom/<version>/engines
.
dir should contain directories named after the engine name.
-T
dir--tmpdir=
dirTMPDIR
.
-r
--rename
cpp
programs cannot handle correctly files with a .gen
extension. This option will make genom call cpp with an input file ending
in .c
, linked to the real input file.
-v
--verbose
-d
--debug
--version
-h
--help