Main Content

rtw.connectivity.MakefileBuilder

Configure toolchain-based build process

Description

Control toolchain-based build process for the creation of a PIL application.

Creation

Description

rtw.connectivity.MakefileBuilder(componentArgs, targetApplicationFramework, exeExtension) creates an object with these arguments:

  • componentArgs - An rtw.connectivity.ComponentArgs object

  • TargetApplicationFramework - An rtw.pil.RtIOStreamApplicationFramework object. For example, myPIL.TargetFramework.

  • exeExtension - Name extension of executable file for target system. The extension depends on the toolchain defined by rtw.connectivity.ConfigRegistry. For an embedded target, the extension can be, for example, '.elf', '.abs', '.sre', or '.hex'. For a Windows® development computer target, the extension is '.exe'. For a UNIX® development computer target, the extension is empty, ''.

If you use the template makefile approach to build the PIL application, you must provide a template makefile that includes these tokens:

  • MAKEFILEBUILDER_TGT

  • STANDALONE_SUPPRESS_EXE

You can create the template makefile by customizing a copy of one of the supplied ERT template makefiles, for example, ert_unix.tmf or ert_vc64.tmf. You must associate the MAKEFILEBUILDER_TGT and STANDALONE_SUPPRESS_EXE tokens with corresponding makefile rules. For more information, see Customize Template Makefiles.

example

Examples

Using rtw.connectivity.MakefileBuilder in PIL Connectivity

For an example that shows how to use this object in setting up PIL connectivity, see:

Version History

Introduced in R2008b