Main Content

Template makefile

Template makefile to use to generate makefile for specified system target file

Model Configuration Pane: Code Generation


The Template makefile parameter specifies the template makefile from which to generate the makefile.


This parameter appears when the model is configured to use a template makefile-based code generation system target file, as described in Configure Toolchain (ToolchainInfo) or Template Makefile Build Process.


This parameter is enabled by Generate makefile.


grt_default_tmf (default)

Determines which compiler runs, during the make phase of the build, to compile the generated code. You can specify a template makefile in the following ways:

  • Generate a value by selecting a system target file.

  • Explicitly enter the file name and extension of a custom template makefile. The file must be on the MATLAB® path.


  • If you do not include a filename extension for a custom template makefile, the code generator attempts to find and execute a MATLAB language file.

  • You can customize your build process by modifying an existing template makefile or by providing your own template makefile.

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: TemplateMakefile
Type: character vector
Value: valid template makefile filename
Default: 'grt_default_tmf'

Version History

Introduced in R2006a