User`s guide
Template Makefiles
3-23
Template Makefiles
This section contains a description of how to work with and modify the
template makefiles that are used with the Real-Time Workshop. Template
makefiles are essentially makefiles in which certain tokens are expanded to
create a makefile for your model (
model.mk). model.mk is created from the
template makefile specified in the Real-Time Workshop page of the
Simulation Parameters dialog box by copying each line from the template
makefile and expanding the tokens of Table 3-4.
Figure 3-6: Creation of model.mk
model.mk
is created from your target systems template makefile by copying
line for line the contents of it and expanding the Real-Time Workshop tokens.
This table lists the Real-Time Workshop tokens and their expansions.
Table 3-4: Template Makefile Tokens Expanded by make_rtw
Token Expansion
|>COMPUTER<| Computer type. See the MATLAB
computer command.
|>MAKEFILE_NAME<| model.mk — The name of the makefile
that was created from the template
makefile.
|>MATLAB_ROOT<| Path to where MATLAB is installed.
|>MATLAB_BIN<| Location of the MATLAB executable.
|>MEM_ALLOC<|
Either RT_MALLOC or RT_STATIC —
indicates how memory is to be allocated.
Template
Makefile
Makefile:
model.mk
system.tmf