Real-Time Workshop | ![]() ![]() |
Compiler-Specific Template Makefiles
This section documents the available compiler-specific template makefiles and common options you can use with each.
Template Makefiles for UNIX
The template makefiles for UNIX platforms are designed to be used with GNU Make. These makefile are set up to conform to the guidelines specified in the IEEE Std 1003.2-1992 (POSIX) standard.
You can supply options via arguments to the make
command.
OPTS
-- User-specific options, for example,
OPT_OPTS
-- Optimization options. The default optimization option is -O
. To turn off optimization and add debugging symbols, specify the -g
compiler switch in the make
command, for example,
For additional options, see the comments at the head of each template makefile.
Template Makefiles for Visual C/C++
Real-Time Workshop offers two sets of template makefiles designed for use with Visual C/C++.
To build an executable within Real-Time Workshop build process, use one of the target
_vc.tmf
template makefiles:
You can supply options via arguments to the make
command.
OPTS
-- User-specific options, for example,
OPT_OPTS
-- 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.
For additional options, see the comments at the head of each template makefile.
To create a Visual C/C++ project makefile (model
.mak
) without building an executable, use one of the target
_msvc.tmf
template makefiles:
These template makefiles are designed to be used with nmake
, which is bundled with Visual C/C++.
You can supply the following options via arguments to the nmake
command:
For additional options, see the comments at the head of each template makefile.
Template Makefiles for Watcom C/C++
drt_watc.tmf
ert_watc.tmf
grt_malloc_watc.tmf
grt_watc.tmf
rsim_watc.tmf
rtwsfcn_watc.tmf
win_watc.tmf
Real-Time Workshop provides template makefiles to create an executable for Windows using Watcom C/C++. These template makefiles are designed to be used with wmake
, which is bundled with Watcom C/C++.
You can supply options via arguments to the make
command. Note that the location of the quotes is different from the other compilers and make utilities discussed in this chapter:
OPTS
-- User specific options, for example,
OPT_OPTS
-- Optimization options. The default optimization option is -oxat
. To turn off optimization and add debugging symbols, specify the -d2
compiler switch in the make
command, for example,
For additional options, see the comments at the head of each template makefile.
Template Makefiles for Borland C/C++
Real-Time Workshop provides template makefiles to create an executable for Windows using Borland C/C++.
You can supply these options via arguments to the make
command:
OPTS
-- User-specific options, for example,
OPT_OPTS
-- Optimization options. Default is none. To turn off optimization and add debugging symbols, specify the -v
compiler switch in the make
command.
For additional options, see the comments at the head of each template makefile.
Template Makefiles for LCC
Real-Time Workshop provides template makefiles to create an executable for Windows using LCC compiler Version 2.4 and GNU Make (gmake
).
You can supply options
via arguments to the make
command:
OPTS
-- User-specific options, for example,
OPT_OPTS
-- Optimization options. Default is none. To enable debugging, specify -g4
in the make
command:
For additional options, see the comments at the head of each template makefile.
Template Makefile Structure
The detailed structure of template makefiles is documented in Template Makefiles. This information is provided for those who want to customize template makefiles.
![]() | Template Makefiles and Make Options | Configuring the Generated Code via TLC | ![]() |