User`s guide

Template Makefiles
3-29
Figure 3-7: Structure of a Template Makefile
#-- Section 1: Comments -------------------------------------------------------
#
# Description of what type of target and version of make this template makefile
# is for and any optional build arguments.
#
#-- Section 2: Macros read by make_rtw ----------------------------------------
#
# The following macros are read by the Real-Time Workshop build procedure:
#
# MAKE - This is the command used to invoke the make utility.
# HOST - What platform this template makefile is targeted for
# (i.e., PC or UNIX)
# BUILD - Invoke make from the Real-Time Workshop build procedure
# (yes/no)?
# SYS_TARGET_FILE - Name of system target file.
MAKE = make
HOST = UNIX
BUILD = yes
SYS_TARGET_FILE = system.tlc
#-- Section 3: Tokens expanded by make_rtw ------------------------------------
#
MODEL = |>MODEL_NAME<|
MODULES = |>MODEL_MODULES<|
MAKEFILE = |>MAKEFILE_NAME<|
MATLAB_ROOT = |>MATLAB_ROOT<|
...
COMPUTER = |>COMPUTER<|
BUILDARGS = |>BUILDARGS<|
#-- Section 4: Build rules ----------------------------------------------------
#