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.

+"string" suffix tokens b file portion of all path names, without suffix d directory portion of all<br />

path names f file portion of all path names, including suffix l all characters mapped to<br />

lowercase s/pat/string/ simple pattern substitution; any character can be used to separate<br />

the pattern from the substitution text suffix=string suffix replacement t"separator"<br />

tokenization with given separator. u all characters mapped to uppercase<br />

You may specify macro modifiers in either uppercase or lowercase.<br />

For example, the following macro assignment<br />

test = D1/D2/d3/a.out f.out d1/k.out<br />

produces the following expansions:<br />

$(test:d) -> D1/D2/d3 . d1<br />

$(test:b) -> a f k<br />

$(test:f) -> a.out f.out k.out<br />

${test:DB} -> D1/D2/d3/a f d1/k<br />

${test:s/out/in/} -> D1/D2/d3/a.in f.in d1/k.in<br />

$(test:f:t"+") -> a.out+f.out+k.out<br />

$(test:t"+") -> D1/D2/d3/a.out+f.out+d1/k.out<br />

$(test:u) -> D1/D2/D3/A.OUT F.OUT D1/K.OUT<br />

$(test:l) -> d1/d2/d3/a.out f.out d1/k.out<br />

$(test:^"/rd/") -> /rd/D1/D2/d3/a.out /rd/f.out /rd/d1/k.out<br />

$(test:+".Z") -> D1/D2/d3/a.out.Z f.out.Z d1/k.out.Z<br />

Run-time Macros<br />

Run-time macros can take on different values for each target.<br />

$@<br />

When building a normal target, this macro evaluates to the full name of the target. When<br />

building a library, it expands to the name of the archive library. For example, if the target is<br />

mylib(member)<br />

$@ expands to<br />

$%<br />

mylib.<br />

When building a normal target, this macro evaluates to the full name of the target. When<br />

building a library, it expands to the name of the archive member. For example, if the target is<br />

410 of 457

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

Saved successfully!

Ooh no, something went wrong!