User`s guide
Template Makefiles
3-27
then the make command that will be invoked is:
mymake −f model.mk
HOST
— What platform this template makefile is targeted for. This can be
HOST=PC, UNIX, computer_name (see the MATLAB computer command), or
ANY.
BUILD — This tells make_rtw whetherornot(BUILD=yes or no) it should
invoke
make from the Real-Time Workshop build procedure.
SYS_TARGET_FILE — Name of the system target file. This is used for
consistency checking by
make_rtw to verify that the correct system target file
was specified in the Real-Time Workshop page of the
Simulation
Parameters
dialog box.
BUILD_SUCCESS — An optional macro that you can use to specify the build
success string to be used when looking for successful completion on the PC.
For example:
BUILD_SUCCESS = ### Successful creation of
BUILD_ERROR
— An optional macro that you can use to specify the build error
message to be displayed when an error is encountered during the
make
procedure. For example,
BUILD_ERROR = ['Error while building ', modelName]
DOWNLOAD
— An optional macro that you can specify as yes or no. If specified
as yes (and
BUILD=yes), then make is invoked a second time with the
download target:
make −f model.mk download
DOWNLOAD_SUCCESS
— An optional macro that you can use to specify the
download success string to be used when looking for a successful download.
For example:
DOWNLOAD_SUCCESS = ### Downloaded
DOWNLOAD_ERROR
— An optional macro that you can use to specify the
download error message to be displayed when an error is encountered during
the download. For example,
DOWNLOAD_ERROR = ['Error while downloading ', modelName]