This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Makefile to project

Hi,

I'm trying to convert a CCS project with makefile to .project file

Any pointers on how to do this?

Regards

Vaish

  • Hi Vaish,

    Vaishnavi Ramachandran said:
    I'm trying to convert a CCS project with makefile

    I'm not sure I understand.... is this a standard Eclipse makefile project or is this a CCS Project? A CCS project has a .project file.

    Thanks

    ki

  • Vaish,

    We don't have a formal document on how to do this, as this procedure is heavily dependent on the makefile and the compiler tools you have and is entirely manual. However a few key points will help you with this conversion:

    - Inspect each *.obj rule for the compiler options used and make sure that all of them are set in the project compiler options: right-click on the project --> Properties --> CCS Build --> Compiler. Include directories must be also specified (under Include Options), but keep in mind that a CCS Project already contains some default include directories for the compiler, XDC, BIOS, etc - these don't need to be replicated.

    - Inspect the *.out rule for the linker options used and, just like the compiler options above, make sure that all linker options are set in the project linker options: right-click on the project --> Properties --> CCS Build --> Linker. As above, library include directories must be specified (under File Search Path) but some are already preset. In this rule, also carefully inspect the names of the libraries included in the project.

    - If your project has a BIOS or XDC component, check the corresponding rule (probably something *.tcf) and set any options in your project just like before. Typically the only option is the -Dconfig.importPath, but there may be others.

    - Also, keep in mind that CCS Projects by default set some useful compiler options to warn about certain potential pitfalls (--diag_warning=225 or --warn_sections) and additional options for newer versions of the compiler (--abi=coffabi).

    - At last, the Console view in CCS is great to check for any details and build options you may have missed.

    These are some of the details I would watch during this conversion. I will reply if I get any additional ideas, ok?

    Hope this helps,

    Rafael

  • Ki,

    This is the standard eclipse makefile. The problem I'm facing is to run this as a complete CCS project without the makefile, since CCS allows you to only build a makefile project. I need to reconfigure this project and use it without the makefile

    - Vaish

  • Rafael,

    Thanks for the pointers. I'm currently modifying the properties to add all the parameters and settings from the makefile manually.

    Let me know if there is a way CCS can automatically do this

    -Vaish

  • Vaish,

    Sorry, there is no way to do this automatically... I couldn't find anything online either.

    Cheers,

    Rafael