DS-5 How to create makefiles

In the process of updating our build tool to work with DS-5.  I am able to use the DS-5 generated make files to compile and link using the ARM tools.  Assuming I start in a clean directory structure will all the source files, how can I get DS-5 to generate all the various make files using a command-line?

Thanks

  • Hi Topsy,

    Are you trying to create make files using DS-5/Eclipse in headless/command line mode? or are you trying to launch these make files (generated from DS-5/Eclipse in GUI mode) using command line?

    Would you kindly provide us with more information about your use case?

    Thanks,

    Mahanth

  • In reply to Mahanth Gouda:

    I would like to know how to create the make files using DS-5/Eclipse in command line mode.  I know how to launch the files once they exist.

    The flow of my build tool (very generalized)

    1.  Get the source code and DS-5/Eclipse project files from the source control system

    2.  Generate the make files                       <-- don't know how to do this

    3.  Use the make files to compile and link  <-- I can already do this

    Thanks for the help

  • In reply to Larry:

    Hi Topsy,

    Thank you coming back to us with the helpful information.


    > I would like to know how to create the make files using DS-5/Eclipse in command line mode.

    I'm afraid, we don't have this feature in our ARM DS-5 today, so will have to rely on the Managed Builder within Eclipse to create these makefiles manually, and then use them in automation.

    Sorry about this.

    Thanks,

    Mahanth

  • In reply to Mahanth Gouda:

    Once I open DS-5, is there a manual method to force DS-5/Eclipse to generate the make files (other than starting to compile the project)?

  • In reply to Larry:

    Hi again,

    Spare me a couple of days and I will get back to you on this.

    Thanks,

    Mahanth

  • In reply to Mahanth Gouda:

    Hi Topsy,


    > Once I open DS-5, is there a manual method to force DS-5/Eclipse to generate the make files (other than starting to compile the project)?

    Yes, there is a way to force DS-5/Eclipse to generate the makefiles without actually building the project.

    When you create a project in DS-5 and use the option "build project" it will build it by default, but by changing the "Builder Settings" you can choose options to just create makefile  and not compile it.

    But, with this method, it is difficult to validate the makefile, you will not know whether or not the makefile is correct until you actually build/compile it, either using the command line or GUI.

    Here are the steps, can you please try these and let me know if this helps?

    -----------------------------------------------------------------------------------------------------------

    1. Launch Eclipse for DS-5.

    2. From the menu bar click on File >> New >> Project >> C/C++ >> C Project.

    3. Enter project name and select project type as Bare Metal Executable.

    4. Select the hello world project or any other

    5. Click Finish.

    6. Add C sources files and other libraries (static) to the project if any.

    7. Add the static library archive file path to the linker settings in the Managed Builder ( this step required if you have any static libraries being added to the project).

    8. Now right mouse click on the project, go to "Properties >> C/C++ Build", untick the "use default build command" and delete the "make" command from the field "Build command".

    9. Under "Makefile generation", select the box "Generate Makefile automatically" if it's not already selected.

    Now, building this project will generate the Makefile under the Debug directory without actually building the project.

    You can then use this makefile to run on command line, you can try running this make using the "DS-5 command prompt".

    Hope this helps.

    Please revert back if you need more assistance on this.

    Thanks,

    Mahanth

  • In reply to Mahanth Gouda:

    Thanks, I will give it a try in the next few days