13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>target ... : [dependency ...] [; rule][rule]...Target lines must always start at the beginning of a line, leading white spaces (tabs or spaces) are notallowed. A target line consists of one or more targets, a semicolon and a set of files which are requiredto build the target (dependencies). The target itself can be one or more filenames or symbolic names:all:demo.abs final.abs:demo.abs final.abstest.obj demo.obj final.objYou can now can specify the target you want to build to the make utility. The following three invocationsall have the same effect:mkarmmkarm allmkarm demo.abs final.absIf you do not specify a target, the first target in the makefile (in this example all) is built. The target alldepends on demo.abs and final.abs so the second and third invocation have the same effect andthe files demo.abs and final.abs are built.You can normally use colons to denote drive letters. The following works as intended:c:foo.obj : a:foo.cIf a target is defined in more than one target line, the dependencies are added to <strong>for</strong>m the target's completedependency list:all: demo.abs # These two lines are equivalent with:all: final.abs # all: demo.abs final.absSpecial targetsThere are a number of special targets. Their names begin with a period.Target.DEFAULT.DONE.IGNORE.INIT.PRECIOUSDescriptionIf you call the make utility with a target that has no definition in the makefile, thistarget is built.When the make utility has finished building the specified targets, it continues withthe rules following this target.Non-zero error codes returned from commands are ignored. Encountering this in amakefile is the same as specifying the option -i on the command line.The rules following this target are executed be<strong>for</strong>e any other targets are built.Dependency files mentioned <strong>for</strong> this target are never removed. Normally, if acommand in a rule returns an error or when the target construction is interrupted,the make utility removes that target file. You can use the option -p on the commandline to make all targets precious.236

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!