06.02.2013 Views

C166/ST10 Cross-Assembler, Linker/Locator, Utilities ... - Tasking

C166/ST10 Cross-Assembler, Linker/Locator, Utilities ... - Tasking

C166/ST10 Cross-Assembler, Linker/Locator, Utilities ... - Tasking

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.

10−60<br />

UTILITIES<br />

Chapter 10<br />

To reconstruct a target, mk166 expands macros and functions, strips off<br />

initial white space, and either executes the rules directly, or passes each to<br />

a shell or COMMAND.COM for execution.<br />

For target lines, macros and functions are expanded on input. All other<br />

lines have expansion delayed until absolutely required (i.e. macros and<br />

functions in rules are dynamic).<br />

Special Targets<br />

.DEFAULT: If you call the make utility with a target that has no definition<br />

in the make file, this target is built.<br />

.DONE: When the make utility has finished building the specified<br />

targets, it continues with the rules following this target.<br />

.IGNORE: Non−zero error codes returned from commands are ignored.<br />

Encountering this in a makefile is the same as specifying the<br />

option −i on the command line.<br />

.INIT: The rules following this target are executed before any other<br />

targets are built.<br />

.SILENT: Commands are not echoed before executing them.<br />

Encountering this in a makefile is the same as specifying the<br />

option −s on the command line.<br />

.SUFFIXES: This target specifies a list of file extensions. Instead of<br />

building a completely specified target, you now can build a<br />

target that has a certain file extension. Implicit rules to build<br />

files with a number of extensions are included in the system<br />

makefile mk166.mk.<br />

If you specify this target with dependencies, these are added<br />

to the existing .SUFFIXES target in mk166.mk. If you<br />

specify this target without dependencies, the existing list is<br />

cleared.<br />

.PRECIOUS: Dependency files mentioned for this target are never<br />

removed. Normally, if a command in a rule returns an error<br />

or when the target construction is interrupted, the make<br />

utility removes that target file. You can use the −p command<br />

line option to make all target files precious.

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

Saved successfully!

Ooh no, something went wrong!