Real-Time Workshop User's Guide | ![]() ![]() |
Template Makefiles and Make Options
The Real-Time Workshop includes a set of built-in template makefiles that are designed to build programs for specific targets.
There are two types of template makefiles:
By convention, compiler-specific template makefiles are named according to the target and compiler (or development system). For example, grt_vc.tmf
is the template makefile for building a generic real-time program under Visual C/C++; ert_lcc.tmf
is the template makefile for building a Real-Time Workshop Embedded Coder program under the LCC compiler.
Default template makefiles are named target
_default_tmf
. For example, grt_default_tmf
is the default template makefile for building a generic real-time program; ert_default_tmf
is the default template makefile building a Real-Time Workshop Embedded Coder program.
You can supply options to makefiles via arguments to the Make command field of the Target configuration category of the Real-Time Workshop page. Append the arguments after make_rtw
(or make_xpc
or other make
command), as in the following example.
make_rtw OPTS="-DMYDEFINE=1"
The syntax for make
command options differs slightly for different compilers.
![]() | Choosing and Configuring Your Compiler | Compiler-Specific Template Makefiles | ![]() |