Good morning,
I would kindly ask your advice on how to do (command line) incremental build+link ?
My setup is following:
Code Composer Studio
Version: 4.2.4.00033
Installation Dir = C:\Texas Instruments\...
I created (CCS/CCE Eclipse) project "test" under my workspace:
C:\dbiruski\ccs\workspace\test\
and I can Build/Run/Debug project from the GUI. This project is only a test case for how to do command line (DOS batch) build using:
C:\Texas Instruments\ccsv4\utils\gmake\gmake.exe
and run using:
C:\Texas Instruments\ccsv4\scripting\examples\loadti
For now, on a DOS console I can:
cd C:\dbiruski\ccs\workspace\test\Debug
and using as-is CCS generated build files (makefile + objects.mk + sources.mk + ...) I can:
gmake clean
gmake all
and the project builds fine (TI's gmake from command line).
Now, if I change only one test.c file (and the test project contains 2 or more C files), the above build setup would report error if I try (again from the command line):
gmake all
with error:
gmake: *** No rule to make target `C:/Texas', needed by `test.obj'. Stop.
gmake: Leaving directory `C:/dbiruski/ccs/workspace/test/Debug'
Workaround/solution is to again use:
gmake clean
gmake all
which unecessaary rebuilds other C files (although the have not changed).
Could you please advice on how to do the incremental build+link, i.e. how to modify the (pre-generated) makefile to rebuild only touch-ed files ? BTW, the same applies to GUI since:
Project/Build Active Project
and
Project/Rebuild Active Project
do the same unecessary clean.
The goal is to eventually replace Eclipse/TI 9 files:
.ccsproject
.cdtbuild
.cdtproject
.project
+
makefile
objects.mk
sources.mk
subdir_rules.mk
subdir_var.mk
with a single makefile.
thanks & regards,
Dubravko