02.05.2013 Views

The Source Integrity Professional Edition User Guide - MKS

The Source Integrity Professional Edition User Guide - MKS

The Source Integrity Professional Edition User Guide - MKS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Getting Started With <strong>MKS</strong> Make<br />

any number of lines. Each and every line in the recipe must begin<br />

with a character. A line that does not begin with a <br />

signals the start of a new rule.<br />

Note A common cause of syntax errors results from makefiles with<br />

leading blank characters at the beginning recipe lines.<br />

In the interests of efficiency, <strong>MKS</strong> Make executes most recipe lines<br />

itself. However, a recipe line may contain a character special to your<br />

command interpreter or shell (for example, the > and < redirection<br />

symbols). In these cases, <strong>MKS</strong> Make calls the command interpreter or<br />

shell to execute the line, so the special characters are handled<br />

properly.<br />

File Names Containing a Colon<br />

Occasionally, the names of target files may contain a colon.<br />

a:file<br />

Usually, <strong>MKS</strong> Make interprets a colon as a rule operator—the mark<br />

separating the target names from the prerequisite list. To avoid<br />

confusion, use quotes to enclose any file name that contains a colon:<br />

"a:program.exe" : "a:main.obj" func1.obj…<br />

recipe<br />

Usually, however, you specify all file names relative to the current<br />

directory, so you do not need to include a drive specifier (or colon).<br />

White Space<br />

White space consists of one or more blanks or characters.<br />

White space separates the names of items in a target or prerequisite<br />

list. You can also surround the colon between the target list and the<br />

prerequisite list with white space; however, you do not have to.<br />

You can also insert blank lines wherever you want in a makefile. make<br />

ignores blank lines when it reads the makefile.<br />

<strong>User</strong> <strong>Guide</strong> 249

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

Saved successfully!

Ooh no, something went wrong!