User`s guide

mcc
7-45
Table 7-11: Output Stage Options
<Target> Description
codegen
Translates M-files to C/C++ files and generates a
wrapper file. The default is
codegen.
compile:mex
Same as codegen plus compiles C/C++ files to
object form suitable for linking into a Simulink
S-function MEX-file.
compile:mexlibrary
Same as codegen plus compiles C/C++ files to
object form suitable for linking into an ordinary
(non-S-function) MEX-file.
compile:exe
Same as codegen plus compiles C/C++ files to
object form suitable for linking into a standalone
executable.
compile:lib
Same as codegen plus compiles C/C++ files to
object form suitable for linking into a shared
library/DLL.
link:mex
Same as compile:mex plus links object files into a
Simulink S-function MEX-file.
link:mexlibrary
Same as compile:mexlibrary plus links object
files into an ordinary (non-S-function) MEX-file.
link:exe
Same as compile:exe plus links object files into a
standalone executable.
link:lib
Same as compile:lib plus links object files into a
shared library/DLL.
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.