Compiled from Source

Do you want to help out with Freeciv development? Then check out this forum.
Strategy Thinker
Posts: 9
Joined: Wed Feb 20, 2013 11:20 am

Compiled from Source

Postby Strategy Thinker » Sat May 18, 2013 2:44 pm

I did it! I did it! - I finally compiled the game from source and made a compiler for the gtk version. I am working on Windows 7, this is the first time I have ever compiled anything from source.

Is there a way to only recompile the parts of the code that I am going to edit - it took a very long time to compile everything.

P.S. I am not exactly sure where to post this.

cazfi
Elite
Posts: 1486
Joined: Tue Jan 29, 2013 6:54 pm

Re: Compiled from Source

Postby cazfi » Sat May 18, 2013 10:09 pm

Strategy Thinker wrote:Is there a way to only recompile the parts of the code that I am going to edit - it took a very long time to compile everything.

That's what 'make' does. It compares timestamps of files to build (object file in case of compiling) and their sources. It rebuilds only if source is newer than already existing target.

Do not reconfigure your tree (configure/autogen.sh) but run only 'make'.

Strategy Thinker
Posts: 9
Joined: Wed Feb 20, 2013 11:20 am

Re: Compiled from Source

Postby Strategy Thinker » Sun May 19, 2013 3:31 pm

Thank you, this makes sense - otherwise I am guessing that the Freeciv code would have never have gotten very far because it would take too long to compile.