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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>mkarm test.absmkarm -fmymake.mak test.absBy default the make utility reads the file makefile so you do not need to specify it on the command line.If you want to use another name <strong>for</strong> the makefile, use the option -f.If you do not specify a target, mkarm uses the first target defined in the makefile. In this example it wouldbuild test.src instead of test.abs.Based on the sample invocation, the make utility now tries to build test.abs based on the makefile andper<strong>for</strong>ms the following steps:1. From the makefile the make utility reads that test.abs depends on test.obj.2. If test.obj does not exist or is out-of-date, the make utility first tries to build this file and reads fromthe makefile that test.obj depends on test.src.3. If test.src does exist, the make utility now creates test.obj by executing the rule <strong>for</strong> it: asarmtest.src.4. There are no other files necessary to create test.abs so the make utility now can use test.obj tocreate test.abs by executing the rule: lkarm test.obj -o test.abs ...The make utility has now built test.abs but it only used the assembler to update test.obj and thelinker to create test.abs.If you compare this to the control program:ccarm test.cThis invocation has the same effect but now all files are recompiled (assembled, linked and located).10.2.1. Calling the Make UtilityYou can only call the make utility from the command line. The invocation syntax is:mkarm [ [option]... [target]... [macro=def]... ]For example:mkarm test.abstargetmacro=defYou can specify any target that is defined in the makefile. A target can also be oneof the intermediate files specified in the makefile.Macro definition. This definition remains fixed <strong>for</strong> the mkarm invocation. It overridesany regular definitions <strong>for</strong> the specified macro within the makefiles and from theenvironment. It is inherited by subordinate mkarm's but act as an environment variable<strong>for</strong> these. That is, depending on the -e setting, it may be overridden by a makefiledefinition.238

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

Saved successfully!

Ooh no, something went wrong!