ARM Technical Support Knowledge Articles

SUPPORT FOR -I AND -D MAKEFILE COMMANDS

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

We wish to call the compiler from a makefile and use the -l and -d options to specify include directories and define names. Can this be done?

ANSWER

The compiler does not support -l and -d, but it does have directives that achieve the same result.

To specify include directories, use the INCDIR directive. For example:

INCDIR (C:UTILSH, C:FOO)

To specify define names, use the DEFINE directive. For example:

DEFINE(_MSDOS = "1", BAR = "BAZ")

MORE INFORMATION

Article last edited on: 2005-07-15 12:53:56

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential