dependencies - dependency generation for non-gnu compiler -


I am using non-GNU compiler which does not support dependency generation options (MM in GCC) .

In this software, they are not using makefiles, they are using some ancient windows batch files in the compiler and link the code.

These batch files do not have incremental buildings. I have searched the batch files and I think that in the end it executes these commands:

compiler.exe -option1 -option2 * .c linker.exe -foo -bar * .obj

The compilation takes a little bit of time, because you have to compile all the files again, even if you do not have any modified files!

I am searching for a standalone tool that produces dependency from files. But I could not find any.

EDIT: It seems that I was not enough. I can not convert batch files to makefiles, it's something big I just want a minor change to support incremental buildings.

EDIT: The essential tool is a standalone tool that generates dependencies from C files.

You have two dependencies in your project

  1. C files OBJ files are compiled.
  2. C files include header files Changed header files require the compilation of files, including C.

The first message can be written with an estimate rule in your message file. This allows us to calculate the OBJ files, which is used for linking.

The second topic is to include the header file which is included. I do not know a standalone device but you can write your own using C preprocessor. You need to parse the output of this command:

  cl -E-I & lt; Your_include_path & gt; *. C | | "#line"  

Finds the filename dependency around the quotation marks. If the name of the file is If it ends with it then it is a goal otherwise it is a dependency.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -