04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

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.

Compiler Command-line Options<br />

Example<br />

On a Windows system, compiling a file main.c containing the line:<br />

#include "..\include\header files\common.h"<br />

using the options --depend=depend.txt --depend_format=unix_escaped produces a<br />

dependency file depend.txt containing the entries:<br />

main.axf: main.c<br />

main.axf: ../include/header\ files/common.h<br />

See also<br />

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

• --depend_system_headers, --no_depend_system_headers<br />

• --depend_target=target on page 2-43<br />

• --ignore_missing_headers on page 2-72<br />

• -M on page 2-88<br />

• --md on page 2-89<br />

• --phony_targets on page 2-103<br />

2.1.44 --depend_system_headers, --no_depend_system_headers<br />

This option enables or disables the output of system include dependency lines when<br />

generating makefile dependency information using either the -M option or the --md<br />

option.<br />

Default<br />

The default is --depend_system_headers.<br />

Example<br />

/* hello.c */<br />

#include <br />

int main(void)<br />

{<br />

printf("Hello, world!\n");<br />

return 0;<br />

}<br />

Compiling this code with the option -M produces:<br />

__image.axf: hello.c<br />

__image.axf: ...\include\...\stdio.h<br />

2-42 Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. <strong>ARM</strong> DUI 0348C<br />

Non-Confidential,<br />

ID101213

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

Saved successfully!

Ooh no, something went wrong!