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>Special targetsThere are a number of special targets. Their names begin with a period.Target.DEFAULT.DONE.INIT.PHONYDescriptionIf 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.The rules following this target are executed be<strong>for</strong>e any other targets are built.The prerequisites of this target are considered to be phony targets. A phony targetis a target that is not really the name of a file. The rules following a phony target areexecuted unconditionally, regardless of whether a file with that name exists or whatits last-modification time is.For example:.PHONY: cleanclean:rm *.obj10.3.2. Makefile DirectivesWith amk clean, the command is executed regardless of whether there is a filenamed clean.Directives inside makefiles are executed while reading the makefile. When a line starts with the word"include" or "-include" then the remaining arguments on that line are considered filenames whosecontents are to be inserted at the current line. "-include" will silently skip files which are not present.You can include several files. Include files may be nested.Example:include makefile2 makefile3White spaces (tabs or spaces) in front of the directive are allowed.10.3.3. Macro DefinitionsA macro is a symbol name that is replaced with its definition be<strong>for</strong>e the makefile is executed. Althoughthe macro name can consist of lowercase or uppercase characters, uppercase is an accepted convention.When a line does not start with white space and contains the assignment operator '=', ':=' or '+=' then theline is interpreted as a macro definition. White space around the assignment operator and white spaceat the end of the line is discarded. Single character macro evaluation happens by prefixing the name with'$'. To evaluate macros with names longer than one character put the name between parentheses '()' orcurly braces '{}'. Macro names may contain anything, even white space or other macro evaluations.Example:250

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

Saved successfully!

Ooh no, something went wrong!