User`s guide

mcc
7-44
would set up the search path so that directory1 is searched first for M-files,
followed by
directory2. This option is important for stand-alone compilation
where the MATLAB path is not available.
-o <outputfile>. Specify t he basename of the f inalexecutable output (MEX- file or
application) of the Compiler. A suitable, possibly platform-dependent,
extension is ad d ed to the specifie d basename (e.g.,
.exe for PC stand-alone
applications,
.mexsol for Solaris MEX-f iles).
-t (Translate M to C/C++). Translate M-files specified on the command line to C/
C++ files.
-T <target> (Output Stage). Specify the desired output stage. This table gives t he
poss ible val ues of
target.
-v (Verbose). Display the steps in compilation, including:
The Compiler version number
The source filenames as they are processed
The names of the generated output files as they are created
The invocation of
mex or mbuild
Table 7-10: Output Stage Options
<Target> Description
codegen
Translate s M-files to C/C++ files. The default is
codegen.
compile:<bin>
Translates M-files to C/C++ files; compiles to object
form.
link:<bin>
Translates M-files to C/C++ files; compiles to object
form; links to executable form (MEX or stand-alone
application.)
where
<bin> can be mexlibrary, mex, exe,orlib. mex and mexlibrary
use the mex script to build a MEX-file; exe uses the mbuild script to
build an executable;
lib uses mbuild to build a shared library.