02.05.2013 Views

Description - Mks.com

Description - Mks.com

Description - Mks.com

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.

SHELLMETAS<br />

Specifies a list of metacharacters that can appear in single recipe lines. If make finds any<br />

metacharacter, it invokes the recipe using the shell specified by SHELL; otherwise, it<br />

executes the recipe without the shell.<br />

.SILENT<br />

If this is assigned a non-empty value, make assigns the .SILENT attribute to every target.<br />

SWITCHAR<br />

The character currently being used to mark options in <strong>com</strong>mand lines.<br />

Making Libraries<br />

A library is a file containing a collection of object files. To make a library, you specify it as a target<br />

with the .LIBRARY attribute and list its prerequisites. The prerequisites should be the object<br />

members that are to go into the library. When make makes the library target, it looks for the<br />

prerequisites in the library if it cannot find an appropriate object file.<br />

When make finds lib(member), it declares the lib portion as a target with the .LIBRARY attribute<br />

and automatically declares the member portion as a prerequisite of the lib target. When make finds<br />

lib((entry)), it declares the lib portion as a target with the .LIBRARY attribute and automatically<br />

declares the module defining entry as lib's associated prerequisite.<br />

This autodependency can be turned off by the .NOAUTODEPEND special target. Since<br />

autodependency is not POSIX <strong>com</strong>patible, it is also disabled by the .POSIX special target.<br />

Conditionals<br />

Conditional expressions use the following form:<br />

.IF expression<br />

... if text ...<br />

{.ELSIF expression2<br />

... elsif text ...}<br />

[.ELSE<br />

... else text ...]<br />

.END<br />

You can nest the conditionals (that is, the text may contain another conditional). The .IF, .ELSE,<br />

.ELSIF, and .END must start in the first column of the line. expression or expression 2 can have<br />

one of three forms:<br />

string<br />

428 of 457

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

Saved successfully!

Ooh no, something went wrong!