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.

${COMPILER} variable in makefile



I have a project that uses driverlib. Works great! Now, I want to build another project that uses the same library. However, when I build it, make tells me no rules to make said file!

In the project that works, it builds the file at D:\\Projects\\Stellarisware\\driverlib\\adc.c

In the one that fails, it's looking for the file at D:\\driverlib\\adc.c. Somehow it's lost the prefix that is filled in by the ${COMPILER} variable in the makefile. Where is this defined in the project? (I noted that this is also the path generated in subdirs.mk, but I have no idea how/where this is generated!)

Note: Following another post, I changed SW_ROOT in Windows->Preferences->C++->ManagedBuild and that had no effect.

Thanks for the pointers...

 

  • In trying to recreate my problem, I think I found the solution. Earlier, I had done an Import->CCS->Existing CCS/CCE Eclipse project and it gave me this problem.

    Just now, I tried Import->General->Existing Projects into Workspace. Now, when I build, everything seems OK.

    However, a problem reported previously is now cropping up. Every time I build, the usblib wants to rebuild even thouogh nothing has changed in that section.