User`s guide

Generic Real-Time Templates
3-37
OPTS — User-specific options, for example,
make_rtw OPTS="DMYDEFINE=1"
OPT_OPTS grt_bc.tmf optimization options. To turn off optimization and
add debugging symbols, specify the
v compiler switch in the make command:
make_rtw OPT_OPTS="v"
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 (
c:\appl\inc and c:\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="Ic:\appl\inc Ic:\support\inc"