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.

CCS V4.2.3 makefile related questions

Hi TI experts,

I'm using CCS V4.2.3, CGT V4.9.0, uC:TMS570LS. My PC OS:Windows XP.
When i'm building my project(*.c and *.asm) in CCS IDE, it will automatically generate the makefile.

Question 1: In the auto-generated makefile, where does these macros(MAKECMDGOALS,S62_DEPS) defined and what's the purpose of these conditional directives?
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(S62_DEPS)),)
-include $(S62_DEPS)
endif
endif

Question 2: I want to know how this makefile generated? please describe the detailed steps and rules for generating this makefile?

Question 3: If i don't want to use CCS IDE generate this makefile, instead, i want to generate this makefile by using perl script, and run the whole build process in command line, how i generate this makefile? and what should i pay special attention to?

  • Hi,

    The makefile is created automatically when a Eclipse project is created and built (a CCS project, a Managed Make project, etc.) and the only exception is if you create a project of type Unmanaged Makefile project - in this case you provide the makefile yourself.

    Its internal makefile directives are originated from the variables exported by the Eclipse CDT managed make build system and probably the best reference to find additional information is directly from the Eclipse CDT documentation itself. Check the Programmer's Guide of the CDT Plug-in Developer Guide and you may find what you need there.

    Also, another reference mentions that these settings can also be found inside the .jar file named org.eclipse.cdt.make.core plugin, which is typically installed under <CCS_INSTALL_DIR>\ccsv5\eclipse\plugins, but I did not check that.

    If you don't plan to use CCS to generate its makefile, you can try GNU tools' automake. Check this forum thread.

    That said, all modifications and changes to the CCS/Eclipse internal build system are unsupported and its internal variables may change without previous notice.

    Hope this helps,

    Rafael

     

  • Dear Rafael,

    thanks for your kindness information.

    But i still didn't get the exact answers of the questions i raised above.

    And i want to build my project in cmd line, and generate makefile in perl script, maybe i need call APIs or CCS commands to generate the makefile in perl script. how do i get the APIs and commands ?

  • Hi,

    The only two answers we have for your problem are:

    • Use the CCS built-in features for project creation and build shown at this page.
    • Manually create the makefiles yourself and incorporate them into an Eclipse makefile project (or simply build everything from command line using gmake).

    We (TI) leave to Eclipse to auto-generate the makefiles necessary to build a project, therefore we don't provide or support any specific scripts that automatically generate these makefiles.

    If you are looking for a good example of a makefile that uses our tools and you could use as a base for your projects, please check the examples at  this page. I am afraid we do not have anything ready-to-run for TMS570, though.

    Hope this helps,

    Rafael

  • Dear rafael,

    thanks so much, if you have more links about this topic, please share it to me. Great thanks.

    and how about the question 1. do you have any comments for this question ?