User`s guide
mbuild
7-25
7mbuild
Purpose Compile and link source files that call functions in the MATLAB C/C++ Math
Library or MATLAB C/C++ Graphics Library into a stand-alone executable or
shared library.
Syntax mbuild [option1 ... optionN] sourcefile1 [... sourcefileN]
[objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]
[exportfile1 ... exportfileN]
Description mbuild is a script that supports various options that allow you to customize th e
building and linking of your cod e. This table lists the
mbuild options. If no
platform is listed, the option is available on both UNIX and Microsoft Windows.
Option Description
-<arch>
(UNIX) Assume local host has
architecture
<arch>. Possible values for
<arch> include sol2, hpux, hp700, alpha,
ibm_rs, sgi,andglnx86.
@<response_file>
(Windows) Replace @<response_file> on
the
mbuild command line with the
contents of the text file,
response_file.
-c
Compile only. Do not link. Creates an
object file but not an executable.
-D<name>
Define a symbol name t o the C/C++
preprocessor. Equivalent to a
#define <name> directive in the source.
-D<name>#<value>
Define a symbol name and value to the C/
C++ preprocessor. Equivalent to a
#define <name> <value> directive in the
source.
-D<name>=<value>
(UNIX) Define a symbol name a nd value
to the C preprocessor. Equivalent to a
#define <name> <value> directive in the
source.