Keil Logo

C51: SUPPORT FOR -I AND -D MAKEFILE COMMANDS


Information in this article applies to:

  • C51 Version 5.50

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:\UTILS\H, C:\FOO)

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

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

MORE INFORMATION

  • Refer to DEFINE in the Cx51 User's Guide.
  • Refer to INCDIR in the Cx51 User's Guide.

SEE ALSO

Last Reviewed: Wednesday, February 28, 2018


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.