Real-Time Workshop User's Guide | ![]() ![]() |
Making an Executable
After completing code generation, the build process determines whether or not to continue and compile and link an executable program. This decision is governed by the following parameters:
When this option is selected, the build process always omits the make phase.
The Visual C/C++ Project Makefile versions of the grt
, grt_malloc
, and Real-Time Workshop Embedded Coder target configurations generate a Visual C/C++ project makefile (model
.mak
). To build an executable, you must open model.mak
in the Visual C/C++ IDE and compile and link the model code.
HOST
template makefile variableThe template makefile variable HOST
identifies the type of system upon which your executable is intended to run. The HOST
variable can take on one of three possible values: PC
, UNIX
, or ANY
.
By default, HOST
is set to UNIX
in template makefiles designed for use with UNIX (such as grt_unix.tmf
), and to PC
in the template makefiles designed for use with development systems for the PC (such as grt_vc.tmf
).
If Simulink is running on the same type of system as that specified by the HOST
variable, then the executable is built. Otherwise:
HOST = ANY
, an executable is still built. This option is useful when you want to cross-compile a program for a system other than the one Simulink is running on.### Make will not be invoked - template makefile is for a different
host
![]() | Target Language Compiler Variables and Options | Directories Used in the Build Process | ![]() |