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.

Using the UtilitiesDINNER = $(FOOD) and $(BEVERAGE)FOOD = pizzaBEVERAGE = sparkling waterFOOD += with cheeseWith the += operator you can add a string to an existing macro. An extra space is inserted be<strong>for</strong>e theadded string automatically.Macros are evaluated recursively. Whenever $(DINNER) or ${DINNER} is mentioned after the above,it will be replaced by the text "pizza with cheese and sparkling water". The left hand side ina macro definition is evaluated be<strong>for</strong>e the definition takes place. Right hand side evaluation depends onthe assignment operator:=:=Evaluate the macro at the moment it is used.Evaluate the replacement text be<strong>for</strong>e defining the macro.Subsequent '+=' assignments will inherit the evaluation behavior from the previous assignment. If thereis none, then '+=' is the same as '='.The default value <strong>for</strong> any macro is taken from the environment. Macrodefinitions inside the makefile overrule environment variables. Macro definitions on the amk commandline will be evaluated first and overrule definitions inside the makefile.Predefined macrosMacro$@*

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

Saved successfully!

Ooh no, something went wrong!