The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: weirdnose on September 21, 2008, 04:37:54 pm

Title: Compiling only parts of Simutrans
Post by: weirdnose on September 21, 2008, 04:37:54 pm
Hey,

I'd like to compile only parts of Simutrans. I am trying to get used to the code and so I'm making frequent changes and re-compiles. Is there a way to speed up the compile roundabout?

All I do at this time is:
Code: [Select]
make clean
make

And wait.


Regards,

Tobi
Title: Re: Compiling only parts of Simutrans
Post by: whoami on September 21, 2008, 05:34:58 pm
"make clean" removes the intermediate results, so just omit that. It is needed only in cases where something is changed that the build process cannot recognize, but where object files (.o/.obj) have to be re-generated. If you change a header file, most .c/.cc files' compilations will be invalidated automatically.
Title: Re: Compiling only parts of Simutrans
Post by: VS on September 21, 2008, 09:07:10 pm
I don't know a thing about this, but a while ago I heard something about something called ccache - it should speed up compiling in some cases. Might be worth at least googling...