This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to specify a relative directory in makefile

How to specify a relative directory in makefile. My c51 compiler version is 5.10. Whether the directive"INCDIR" could be used in makefile? what format for it?

Thanks for any help in advance!

Parents
  • The manual explains how to use the compiler. The make utility you're using comes from elsewhere, so it shouldn't really surprise you that it's not covered by the Keil manual. You'll have to read the manual for that make, too.

    The problem with your posted makefile has nothing to do with the Keil tools.

    It doesn't use your defined INCLUDES variable because you simply never told it how. You'll have to put that variable into your commands yourself, e.g. by adding $(INCLUDES) to the definitions of ALL_FLAGS and/or A51FLAGS.

Reply
  • The manual explains how to use the compiler. The make utility you're using comes from elsewhere, so it shouldn't really surprise you that it's not covered by the Keil manual. You'll have to read the manual for that make, too.

    The problem with your posted makefile has nothing to do with the Keil tools.

    It doesn't use your defined INCLUDES variable because you simply never told it how. You'll have to put that variable into your commands yourself, e.g. by adding $(INCLUDES) to the definitions of ALL_FLAGS and/or A51FLAGS.

Children
  • Hi, Hans-Bernhard,

    Thanks for your response!

    Yes, You are right! The make utility I'm using is borland make(ver 5.20).
    I had done an experiment and the statements had been modified as follows:
    C51FLAGS = DB OE PR WL(1) NOAM $(INCLUDES)

    When make file was invoked by make utility, the error message ocurred "FATAL: unenable to execute command".

    I mean that I want to use the definition "INCUDES" for C51 compiler.
    what should I do?

    Anyone has the material on how to use borland make utility, please send me a copy or give me a link address.
    Thanks !

  • "Anyone has the material on how to use borland make utility"

    Err... Borland?!

    Have you read your Borland manuals, visited the Borland site, looked on the Borland forums?

  • "FATAL: unenable to execute command"

    That rather certainly means the command line became too long for Borland make to pass to a program without help. Learn about the use of response files.

    [And please redirect this inquiry to the proper place --- Borland does run a newsgroup server...]