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

Condition compile output files

Hi there,
Is there a way to have the Keil IDE output different hex and map filenames based on some conditional #if defined(x) like in conditional compilations?

Thanks

Parents
  • This is cool. Maybe Keil can build a "Build All Targets" command? I do have some questions though.

    1. Can I add files to only one target and not the others?

    2. Is there a way to have all the targets show up on the project window so that I can just select the target and build it. Now I have to go to "Manage Componenets", then click on the target name, and the set it as the current target because the project window only shows the active target.

    Thanks
    Andy

Reply
  • This is cool. Maybe Keil can build a "Build All Targets" command? I do have some questions though.

    1. Can I add files to only one target and not the others?

    2. Is there a way to have all the targets show up on the project window so that I can just select the target and build it. Now I have to go to "Manage Componenets", then click on the target name, and the set it as the current target because the project window only shows the active target.

    Thanks
    Andy

Children
  • "1. Can I add files to only one target and not the others?"

    No: You Add files to the Project; however, you can set/clear the 'Include in Target Build' option for individual files and/or Groups on a per-Target basis.

    "2. Is there a way to have all the targets show up on the project window so that I can just select the target and build it."

    No.
    The Project window shows only the current Target - there's a drop-down on the toolbar where you choose the Target.