I am using non-gnu C compiler which doesn't support dependency generation option (-MM in gcc).
In this software, they are not using makefiles. They are using some ancient windows batch files to compiler and link the code.
These batch files doesn't have incremental building. I traced the batch files and I find that at the end it execute these commands:
compiler.exe -option1 -option2 *.c linker.exe -foo -bar *.obj
compilation takes loong time, because you have to compile all the files again even if you don't have any modified files!
I am searching for a stand-alone tool which generate dependencies from C files. But I didn't find any one.
EDIT: It seems that I wasn't clear enough. I can't change the batch files to makefiles, this is something BIG. I just want minor change to support incremental building.
EDIT: The required tool is a stand-alone tool which generates dependencies from c files.