29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>Compiler</strong> Command-line Options<br />

2.1.79 -M<br />

This option instructs the compiler to produce a list of make file dependency lines<br />

suitable for use by a make utility.<br />

The compiler executes only the preprocessor step of the compilation. By default, output<br />

is on the standard output stream.<br />

If you specify multiple source files, a single dependency file is created.<br />

If you specify the -o filename option, the dependency lines generated on standard<br />

output make reference to filename.o, and not to source.o. However, no object file is<br />

produced with the combination of -M -o filename.<br />

Use the --md option to generate dependency lines and object files for each source file.<br />

Example<br />

You can redirect output to a file by using standard UNIX and MS-DOS notation, for<br />

example:<br />

armcc -M source.c > Makefile<br />

See also<br />

• -C on page 2-13<br />

• --[no_]depend_system_headers on page 2-25<br />

• -E on page 2-33<br />

• --md<br />

• -o filename on page 2-65.<br />

2.1.80 --md<br />

This option instructs the compiler to compile the source and write make file dependency<br />

lines to a file.<br />

The output file is suitable for use by a make utility.<br />

The compiler names the file filename.d, where filename is the name of the source file.<br />

If you specify multiple source files, a dependency file is created for each source file.<br />

See also<br />

• --depend=filename on page 2-23<br />

• --depend_format=string on page 2-24<br />

• --[no_]depend_system_headers on page 2-25<br />

2-60 Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0348A<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!