User`s guide

Generic Real-Time Templates
3-33
USER_SRCS Additional user sources, such as files needed by S-functions.
For example, suppose you have an S-function called
my_sfcn.c,whichis
built with
sfcn_lib1.c,andsfcn_lib2.c. (library routines for use with
many S-functions). You can build
my_sfcn.c using:
mex my_sfcn.c sfcn_lib1.c sfcn_lib2.c
In this case, the make command for the Real-Time Workshop should be
specified as:
make_rtw USER_SRCS="sfcn_lib1.c sfcn_lib2.c"
You can avoid using USER_SRCS by specifying
set_param('block','SFunctionModules','sfcn_lib1 sfcn_lib2')
See “Using S-Functions with the Real-Time Workshop” in Chapter 3 of
Writing S-Functions.
USER_INCLUDES — Additional include paths. For example, suppose you have
two include paths (
/appl/inc and /support/inc) that are required for the
sfcn_lib1.c and sfcn_lib2.c files in the above example. The make
command would be specified as:
make_rtw USER_SRCS="sfcn_lib1.c sfcn_lib2.c"
USER_INCLUDES="I/appl/inc I/support/inc"
grt_vc.tmf
The Real-Time Workshop provides a generic real-time template makefile
(
grt_vc.tmf) to create an executable for Windows 95, Windows 98, and
Windows NT using Microsoft Visual C/C++. This template makefile is designed
to be used with
nmake, which is bundled with Microsoft’s Visual C/C++.
You can supply these options to
grt_vc.tmf via arguments to the make
command, make_rtw:
OPTS — User-specific options, for example,
make_rtw OPTS="DMYDEFINE=1"
OPT_OPTS grt_vc.tmf optimization options. The default optimization
option is
Ot. To turn off optimization and add debugging symbols, specify
the
Zd compiler switch in the make command:
make_rtw OPT_OPTS="Zd"