All that you have to do is tell gmake to use your makefile. The default command for Code Composer Studio is ${CCS_UTILS_DIR}/bin/gmake
. Simply tell gmake to use your own makefile (e.g. sri.mk
). We do this with the -f option. So the default command would become ${CCS_UTILS_DIR}/bin/gmake -f ../sri.mk
Note that Code Composer Studio is Eclipse based.
Here are the instructions:
- project->properties->C/C++ Build
- click on the 'Builder' tab
- Un-select 'Use default build command"
- Change the command to
${CCS_UTILS_DIR}/bin/gmake -f ../sri.mk
Note that the build is kicked off from the Debug
directory. The Debug
directory contains the makefiles that are generated by Eclipse. I put my makefile in the top level directory of the project so that's why I put ../
in -f ../sri.mk
.