User`s guide

3 Code Generation and the Build Process
3-4
Theshadedboxinthefigurebelowoutlinesthesesteps:
Figure 3-1: The Build Process
The task of creating a stand-alone program from the generated code is
simplified by automated program building.
Simulink
Model
Template
Makefile
Your
model.mk
Generate
Code
Generate
make –f model.mk
Model
model.c
Custom
Makefile
Makefile
system.tmf
make_rtw.m
Code
model.h
model.prm
model.reg
model.mk
model.exe
Program
Generate
Code
Generate
make –f model.mk
Model Code
model.c
Custom
Makefile
Makefile
system.tmf
make_rtw.m
model.h
User-Developed
Model and
Template Makefile
Automated Build
Process
Executable C
Program
model_export.h
model.prm
model.reg