reduce compilation cost for changing a bit in headers
Ian Lance Taylor
iant@google.com
Thu Dec 1 18:40:00 GMT 2011
Alireza Haghdoost <haghdoost@gmail.com> writes:
> When ever I change a .h file, I have to make clean and recompile whole
> project. However only one object file need recompilation. Is there any
> way to make this process more efficient ? I mean is there any way that
> it find a change in a header file and only recompile it's depended
> object files ?
Use a Makefile and write proper dependencies?
If you use automake it will handle the dependencies for you.
Ian
More information about the Gcc-help
mailing list