Real-Time Workshop    

3. Generate a Customized Makefile

The third step in the build procedure is to generate a customized makefile, model.mk. The generated makefile instructs the make utility to compile and link source code generated from the model, as well as any required harness program, libraries, or user-provided modules.

Real-Time Workshop creates model.mk from a system template makefile, system.tmf (where system stands for the selected target name). The system template makefile is designed for your target environment. The template makefile allows you to specify compilers, compiler options, and additional information used during the creation of the executable.

The model.mk file is created by copying the contents of system.tmf and expanding lexical tokens (symbolic names) that describe your model's configuration.

Real-Time Workshop provides many system template makefiles, configured for specific target environments and development systems. The System Target File Browser of the Real-Time Workshop documentation lists all template makefiles that are bundled with Real-Time Workshop.

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


  2. Call the Target Language Compiler to Generate Code 4. Create the Executable