User`s guide
Automatic Program Building
2-13
Automatic Program Building
Real-Time Workshop builds programs automatically for real-time
applications in a variety of host environments. Using the
make utility,
Real-Time Workshop controls how it compiles and links the generated source
code.
The following figure illustrates the complete process. The shaded box
highlights portions of the process that Real-Time Workshop executes.
Simulink
Model
Template
Makefile
Your
model.mk
Generate
Code
Generate
make –f mk
Model
c
Custom
Makefile
Makefile
system.tmf
make_rtw.m
Code
h
model
model.mk
model.exe
Program
Generate
Code
Generate
make -f model.mk
Model Code
model.c
Custom
Makefile
Makefile
system.tmf
User-developed model and
template makefile
Automated build process
Executable C program
model.h
model_private.h
...
Configuration
Set parameters