make option to recompile only changed files

David Brown david@westcontrol.com
Fri Oct 22 12:11:00 GMT 2010


On 22/10/2010 09:29, charfi asma wrote:
> Hello,
>
> I only change my compiler (uml1.c) (uml is my new gcc front end)
> Is there a make option to tell compiler : recompile only uml1.c , all other
> files are kept unchanged ?
> every time I change the uml1.c file, I reconfigure, re make and re make install,
> it takes some times 10 minutes to do it.
>
> thank you for the help
>
> Asma
>

Have you tried using ccache?  It won't stop the rebuilds, but if files 
are unchanged and compiler options stay the same, it can get the 
compiled object code from the cache.




More information about the Gcc-help mailing list