User`s guide
mbuild
7-22
-lang <language>
Specify compiler language. <language> can be c
or
cpp. By default, mbuild determines which
compiler (C or C++) to use by inspection of the
source file’s extension. This option overrides
that mechanism. This option is necessary when
you use an unsupported file extension, or when
you pass in all
.o files and libraries.
-n
No execute mode. Print out any commands that
mbuild would execute, but do not actually
execute any of them.
-nohg
Do not link against the MATLAB C/C++
Graphics Library (Handle Graphics).
-O
Optimize the object code by including the
optimization flags listed in the options file. If
this option is specified,
mbuild appends the
value of options file variables ending in
OPTIMFLAGS with their corresponding base
variable. Note that optimizations are enabled by
default, are disabled by the
-g option, but are
reenabled by
-O.
-outdir <dirname>
Place any generated object, resource, or
executable files in the directory
<dirname>. Do
not combine this option with
-output if the
-output option gives a full pathname.
-output <resultname>
Create an executable named <resultname>. An
appropriate executable extension is
automatically appended. Overrides the
mbuild
default executable naming mechanism.
Table 7-1: mbuild Options (Continued)
Option Description