Download TriCore C Compiler, Assembler, Linker User`s Manual

Transcript
TriCore User's Manual
8-14
If you do not specify a target, the first target in the makefile (in this
example all) is build. The target all depends on demo.elf and
final.elf so the second and third invocation have also the same effect
and the files demo.elf and final.elf are built.
In MS-Windows you can normally use colons to denote drive letters. The
following works as intended: c:foo.o : a:foo.c
If a target is defined in more than one target line, the dependencies are
added to form the target's complete dependency list:
all:
all:
demo.elf
final.elf
# These two lines are equivalent with:
# all: demo.elf final.elf
For target lines, macros and functions are expanded at the moment they
are read by the make utility. Normally macros are not expanded until the
moment they are actually used.
Special Targets
UTILITIES
There are a number of special targets. Their names begin with a period.
.DEFAULT:
If you call the make utility with a target that has no definition
in the makefile, this target is built.
.DONE:
When the make utility has finished building the specified
targets, it continues with the rules following this target.
.IGNORE:
Non-zero error codes returned from commands are ignored.
Encountering this in a makefile is the same as specifying the
option -i on the command line.
.INIT:
The rules following this target are executed before any other
targets are built.
.SILENT:
Commands are not echoed before executing them.
Encountering this in a makefile is the same as specifying the
option -s on the command line.
.SUFFIXES:
This target specifies a list of file extensions. Instead of
building a completely specified target, you now can build a
target that has a certain file extension. Implicit rules to build
files with a number of extensions are included in the system
makefile mktc.mk.