Table 2-2: mbuild Options on UNIX
Option
|
Description
|
-c
|
Compile only; do not link.
|
-D<name>[=<def>]
|
Define C preprocessor macro <name> [as having value <def> ].
|
-f <optionsfile>
|
Use <file> to override the default options file; <file> is a full pathname if it is not in the current directory.
|
-g
|
Build an executable with debugging symbols included.
|
-h[elp]
|
Help; prints a description of mbuild and the list of options.
|
-I<pathname>
|
Include <pathname> in the list of directories to search for header files.
|
-inline
|
Inlines matrix accessor functions (mx*). The generated MEX function may not be compatible with future versions of MATLAB.
|
-l<file>
|
Link against library lib<file> .
|
-L<pathname>
|
Include <pathname> in the list of directories to search for libraries.
|
-lang <language>
|
Override language choice implied by file extension.
<language> =
c for C
cpp for C++ This option is necessary when you use an unsupported file extension, or when you pass all .o files and libraries.
|
<name>=<def>
|
Override options file setting for variable <name> . If <def> contains spaces, enclose it in single quotes, for example, CFLAGS='opt1 opt2' . The definition, <def> , can reference other variables defined in the options file. To reference a variable in the options file, prepend the variable name with a $ , for example, CFLAGS='$CFLAGS opt2' .
|
-n
|
No execute flag. Using this option displays the commands that compile and link the target but does not execute them.
|
-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 <name>
|
Create an executable named <name> . (An appropriate executable extension is automatically appended.)
|
-O
|
Build an optimized executable.
|
-setup
|
Set up the default compiler and libraries. This option should be the only argument passed.
|
-U<name>
|
Undefine C preprocessor macro <name> .
|
-v
|
Verbose; print all compiler and linker settings.
|