User`s guide
Generic Real-Time Templates
3-35
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="/I c:\appl\inc /I c:\support\inc"
grt_watc.tmf
The Real-Time Workshop provides a generic real-time template makefile
(
grt_watc.tmf) to create an executable for Windows 95, Windows 98, and
Windows NT using Watcom C/C++. This template makefile is designed to be
used with
nmake, which is bundled with Watcom C/C++.
The following options can be supplied to
grt_watc.tmf via arguments to the
make command, make_rtw. Note that the location of the quotes are different
from the other compilers and make utilities discussed in this chapter:
•
OPTS — User specific options, for example,
make_rtw "OPTS=−DMYDEFINE=1"
• OPT_OPTS — The default optimization option is −oxat.Toturnoff
optimization and add debugging symbols, specify the
−d2 compiler switch in
the
make command:
make_rtw "OPT_OPTS=−d2"