Main Content

target.MakefileBuilder Class

Namespace: target

Specify that toolchain is makefile-based

Since R2023a

Description

Use a target.MakefileBuilder object to:

  • Specify that the toolchain is makefile-based.

  • Specify the type of makefile that the toolchain generates (GNU® Make or NMAKE).

To create a target.MakefileBuilder object, use the target.create function. Create the object in a single step.

makefileBuilderObject = target.create('MakefileBuilder', option) 
option is the name of the target.MakeToolType object that you want to specify for the MakeToolType property of makefileBuilderObject. For example, 'GMake' or 'NMake'.

Properties

expand all

Type of makefile that the toolchain generates. Specify either GMake or NMake.

Attributes:

GetAccess
public
SetAccess
public

Examples

collapse all

This code snippet shows how you can use a target.MakefileBuilder object to specify that the toolchain is based on a GNU Make (gmake) makefile.

mingwtc.Builder = target.create('MakefileBuilder', 'GMake');

Version History

Introduced in R2023a